-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
ImportError: No module named gyp
under MSYS2
#740
Comments
Annotating gyp_main.py shows that for some reason If I change: (I then hit a later issue, but that looks unrelated and hopefully easy to solve: |
Any MSYS users find a way around this? cc @edmorley |
Issue still exists for me. The workaround didn't work either.
Tried to install "discord.js". |
@mkscrg @Sogomn I know this is a year old but for what it's worth, I ran into this problem at work just today. Basically, if you've put the MSYS2 bin directories in your PATH (I had I believe it is because with the bin dirs of MSYS2 visible, the os.path module of python seems to think it's on a unix box, with |
@strawhatguy My solution was to use the Python executable from the "Windows build tools". I previously used the one I downloaded with MSYS which seemed to cause the error. |
I solve the issue by using the command in msys2
And I also have some issues in the build phase and solved by installing the latest npm
Hope this will help :) |
I have this exact problem too. I fixed it by installing windows build tools like this:
Then adding the correct python path:
|
@strawhatguy I simply switched to Linux which makes things magically work. |
Yeah I'm missing Linux in my current job |
Going to give this a close since it seems like the issue was an incorrectly configured Python installation |
When trying to install karma on Windows 8.1 x64 on MSYS2, using node x64 v4.1.0, npm v2.14.3, MSYS2's python v2.7.10, GNU Make v4.1 (x86_64-pc-msys), gcc 4.9.2, Visual Studio express 2013, I get:
The verbose output contains:
I have visual studio express 2013 installed - though since I'm using MSYS2's python package (installed via pacman) some things try and use MSYS2's gcc instead - not sure which node-gyp should be using, or at least is trying to use.
If I'm missing a dependency or something isn't set, it would be really helpful if node-gyp failed early with an informative error message, rather than the above.
Also, after the errors are shown, karma still ends up installed (though presumably in a broken state) - npm/karma/... bug?
The text was updated successfully, but these errors were encountered: