AssertionError: EGG-INFO/PKG-INFO is not a subpath ... #129
Comments
Original comment by qwcode (Bitbucket: qwcode, GitHub: qwcode): the associated virtualenv issue is pypa/virtualenv#524 @pmoore suspects it's a bug with the assertion in this virtualenv release is very different in that it's adding 2 whl/zip files (for setuptools and pip) to the pythonpath, and then using pip to do the pip/setuptools install from wheels |
Original comment by qwcode (Bitbucket: qwcode, GitHub: qwcode): to recreate easily outside of virtualenv, just add a pip or setuptools wheel file to your pythonpath, and then EDITED: this is not generally true, it's only true if you add the pip or setuptools wheel as installed in the virtualenv Egg |
Original comment by mbiber (Bitbucket: mbiber, GitHub: mbiber): I have the problem also:
|
Original comment by qwcode (Bitbucket: qwcode, GitHub: qwcode): what's happening:
still trying to sort out where exactly it goes wrong. |
Original comment by qwcode (Bitbucket: qwcode, GitHub: qwcode): ok, I have a fix locally, that seems ok. the problematic code is here: https://bitbucket.org/pypa/setuptools/src/735202ca6848d58bc59022f85cde10af64a61a7e/pkg_resources.py?at=default#cl-1383 this is what incorrectly constructs the path using the wrong root. my fix is to override If I can figure out PRs in bitbucket, maybe I'll log it. |
Original comment by qwcode (Bitbucket: qwcode, GitHub: qwcode): opened PR https://bitbucket.org/pypa/setuptools/pull-request/32 |
Original comment by flyte (Bitbucket: flyte, GitHub: flyte): Is this the same issue I'm having? It's caused by installing virtualenv with easy_install instead of pip, but gives a different traceback:
Happens with the following versions
|
Original comment by swamy_dkv (Bitbucket: swamy_dkv, GitHub: Unknown): I have also observed the same with the following packages. python3.3, I have posted the error in Askubuntu and launchpad as well the links are given below. Trying to create a python virtual environment but getting OSError Trying to create a python virtual environment but getting OSError |
Original comment by flyte (Bitbucket: flyte, GitHub: flyte): Thanks for fixing this. I don't mean to rush you, but can you estimate how long before this fix is on pypi? I need to weigh up whether it's worth me writing workarounds into our deployment scripts or if I should just wait until this is released. |
Original comment by mdboom (Bitbucket: mdboom, GitHub: mdboom): Is there going to be a new release of virtualenv to fix this? I realize the fix itself is in setuptools here: https://bitbucket.org/pypa/setuptools/pull-request/32/convert-find_in_zip-into-find_eggs_in_zip/diff but virtualenv 1.11 still includes the setuptools 2.0.1 wheel which doesn't contain the fix. |
Original comment by adeslat (Bitbucket: adeslat, GitHub: adeslat): Great -- the following steps worked fine -- which implicitly set up the pip install -- sorry not a python maven....Note for other novices, 'myenv' is a string I add and the local install happens in a subdirectory created with the same name here. >virtualenv --system-site-packages myenv###>virtualenv myvirtualenv### This worked for me. Thanks. |
Original comment by apatrushev (Bitbucket: apatrushev, GitHub: apatrushev): The problem still exists:
python 2.7 |
convert "find_in_zip" into "find_eggs_in_zip" to prevent it from walking whl files. Fixes #129
Originally reported by: ionelmc (Bitbucket: ionelmc, GitHub: ionelmc)
With the latest virtualenv I get this:
The text was updated successfully, but these errors were encountered: