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
Generated wrapper scripts fail when Python executable path contains spaces #104
Comments
Original comment by Takayuki Shimizukawa (Bitbucket: shimizukawa, GitHub: shimizukawa). I got a same issue. With distlib-0.2.5, generated exe works well.
|
Original comment by Atsushi Odagiri (Bitbucket: aodag, GitHub: aodag). os windows10 64bit I removed double quotes from that shebang, and ran that executable.
|
Original comment by Atsushi Odagiri (Bitbucket: aodag, GitHub: aodag). @pmoore I confirm about cli launcher on my branch https://bitbucket.org/aodag/distlib/commits/990601027056cf5c57282d58c800918f4047a7a5. |
Original comment by Atsushi Odagiri (Bitbucket: aodag, GitHub: aodag). I created PR at https://bitbucket.org/pypa/distlib/pull-requests/36/fix-for-104/diff. |
I just saw this issue. Will cut a release as soon as I can. I won't actually merge the PR (since the actual sources which build the executable are in a separate upstream project - I'll fix it there) and then fixup distlib with the updated launchers. |
Aaargh. A recent Windows update seems to have borked my Visual Studio installation - it now complains that it can't find .NET Framework v4.0 (no idea why that's needed in a C/C++ project). Working on it... |
Original comment by Atsushi Odagiri (Bitbucket: aodag, GitHub: aodag). I used windows sdk for windows server 2008 and .NET Framework 3.5. https://www.microsoft.com/en-us/download/details.aspx?id=11310 |
Sure. I hadn't consciously changed anything on my machine, but a Windows update seems to have changed something. Anyway, it looks like the problem is only with the IDE - so trying to build with MSBuild on the command line should work. |
I've rebuilt and updated the launchers. Please try the distlib from changeset 7f9d6a9 and report back if replacing the |
Original comment by Takayuki Shimizukawa (Bitbucket: shimizukawa, GitHub: shimizukawa). Thanks! It worked on my environment.
|
OK, started on it. |
Should be fixed in f5fc13a. |
Original changes by Vinay Sajip (Bitbucket: vinay.sajip, GitHub: vsajip). changed state from "new" to "resolved" |
Original report by Paul Moore (Bitbucket: pmoore, GitHub: pmoore).
See pypa/pip#5223. This is a priority issue, as it means that the wrapper
pip.exe
executable generated by pip 10 won't work for a Python installation in a directory containing a space (e.g.C:\Program Files
)To reproduce, create a virtualenv with a space in the name. I'm here using the copy of distlib vendored with pip 10 (which is distlib 0.2.6), as that's where the bug was first reported.
The file "a.py" below simply contains
To reproduce the issue:
This creates a.exe, which when run, gives an error as follows:
The text was updated successfully, but these errors were encountered: