Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Doesn't work on Windows? #6

Closed
peetw opened this issue Feb 23, 2017 · 3 comments
Closed

Doesn't work on Windows? #6

peetw opened this issue Feb 23, 2017 · 3 comments

Comments

@peetw
Copy link

peetw commented Feb 23, 2017

Hi, first up - this looks like an awesome tool :) However, I'm trying to run it on Windows and I'm running into the following error:

Traceback (most recent call last):
  File "c:\progra~3\minico~1\lib\runpy.py", line 174, in _run_module_as_main
    "__main__", fname, loader, pkg_name)
  File "c:\progra~3\minico~1\lib\runpy.py", line 72, in _run_code
    exec code in run_globals
  File "C:\PROGRA~3\MINICO~1\Scripts\migra.exe\__main__.py", line 5, in <module>

  File "c:\progra~3\minico~1\lib\site-packages\migra\__init__.py", line 5, in <m
odule>
    from .migra import Migration
  File "c:\progra~3\minico~1\lib\site-packages\migra\migra.py", line 3, in <modu
le>
    from sqlbag import raw_execute
  File "c:\progra~3\minico~1\lib\site-packages\sqlbag\__init__.py", line 23, in
<module>
    from .createdrop import \
  File "c:\progra~3\minico~1\lib\site-packages\sqlbag\createdrop.py", line 6, in
 <module>
    import pwd
ImportError: No module named pwd

Unfortunately the pwd module is only available on UNIX platforms...

@djrobstep
Copy link
Owner

djrobstep commented Feb 24, 2017

Hey, appreciate the report :) Testing has been very limited (zero in fact!) on windows so far.

This is actually a problem in sqlbag which is a migra dependency.

I've created an issue in that project (djrobstep/sqlbag#2), and will fix shortly.

@djrobstep
Copy link
Owner

I've now removed the pwd dependency. Haven't tested directly on windows yet but things may work better for you if you upgrade and try again?

@peetw
Copy link
Author

peetw commented Mar 1, 2017

Great, thanks! After updating sqlbag, migra seems to be working as intended :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants