-
-
Notifications
You must be signed in to change notification settings - Fork 1k
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
Failure to install wheel when using --always-copy #985
Comments
That's not the only weirdness with |
I am seeing the same error with virtualenv 15.1.0 on suse leap 42.2 and sles 12 sp2 |
https://github.com/pypa/virtualenv/pull/1010/commits |
@spacefito 's solution works for me too on centos |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Just add a comment if you want to keep it open. Thank you for your contributions. |
The linked pull request seems like a better solution than mine, and since it appears to have fixed this issue for others, I think this can be considered fixed. Therefore, I will close this. Thanks! |
This is on Python 2.7.12 and virtualenv 15.0.3, both installed on CentOS 5 and packaged by the IUS Community project.
When I try to create a virtualenv with
--always-copy
, it fails with the following error:Tracking this down in virtualenv.py, this is caused by
install_wheel()
running an embedded script using a munged pythonpath (assembled here and containing only the paths of the wheels found byfind_wheels()
). The problem with this is that the embedded python script whichinstall_wheel()
wants to run importstempfile
, which eventually needs to import_io.so
from/usr/lib64/python2.7/lib-dynload
.I was able to get it fixed with this commit, but rather than just opening a PR I thought I'd post my findings here and see if there isn't a more elegant solution from someone more experienced with this codebase.
The text was updated successfully, but these errors were encountered: