-
Notifications
You must be signed in to change notification settings - Fork 57
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
Strange error with multiple tracebacks #19
Comments
Same problem here
It has started to do some stuff, it created the dir:
Ubuntu 14.04.3 LTS (GNU/Linux 3.13.0-66-generic x86_64) |
more info, the script has done something weird to the path in the original virtualenv if I edit def exists(path):
"""Test whether a path exists. Returns False for broken symbolic links"""
try:
os.stat(path)
except os.error:
return False
+ except TypeError as e:
+ print path
+ raise
return True then I see this: $ /data/jenkins/.virtualenvs/master-branch/bin/python
/data/jenkins/.virtualenvs/duplicated-master/src/txstatsd/data/jenkins/.virtualenvs/duplicated-master/src/pyelasticsearch/data/jenkins/.virtualenvs/duplicated-master/src/django-dirtyfields/src/data/jenkins/.virtualenvs/duplicated-master/src/django-oauth2-provider/data/jenkins/.virtualenvs/duplicated-master/src/neomodelimport sys; new=sys.path[sys.__plen:]; del sys.path[sys.__plen:]; p=getattr(sys,'__egginsert',0); sys.path[p:p]=new; sys.__egginsert = p+len(new)
Traceback (most recent call last):
File "/data/jenkins/.virtualenvs/master-branch/lib/python2.7/site.py", line 703, in <module>
main()
File "/data/jenkins/.virtualenvs/master-branch/lib/python2.7/site.py", line 683, in main
paths_in_sys = addsitepackages(paths_in_sys)
File "/data/jenkins/.virtualenvs/master-branch/lib/python2.7/site.py", line 282, in addsitepackages
addsitedir(sitedir, known_paths)
File "/data/jenkins/.virtualenvs/master-branch/lib/python2.7/site.py", line 204, in addsitedir
addpackage(sitedir, name, known_paths)
File "/data/jenkins/.virtualenvs/master-branch/lib/python2.7/site.py", line 177, in addpackage
if not dircase in known_paths and os.path.exists(dir):
File "/data/jenkins/.virtualenvs/master-branch/lib/python2.7/genericpath.py", line 26, in exists
os.stat(path)
TypeError: must be encoded string without NULL bytes, not str note the messed up path printed at the top, referencing the duplicated virtualenv, though I have no virtualenv activated and I am trying to run python from my original virtualenv |
the packages from my pip requirements installed as editable seem like they may be implicated somehow e.g.
in my requirements.txt file same for all the other parts in the bad path |
I'm trying to clone python2 virtual env.
The text was updated successfully, but these errors were encountered: