[Python-modules-team] Bug#617941: [python-virtualenv] virtualenv falis with if other user has run it before
Mikhail Lukyanchenko
ml at uptimebox.ru
Sat Mar 12 18:34:58 UTC 2011
Package: python-virtualenv
Version: 1.4.9-3
Severity: normal
Tags: patch
--- Please enter the report below this line. ---
virtualenv leaves distribute tarball in /tmp with restrictive
permissions. When other user tries to create or clean environment
virtualenv fails with the following traceback:
$ virtualenv ./bla
New python executable in ./bla/bin/python
Installing distribute...Traceback (most recent call last):
File "/usr/bin/virtualenv", line 3, in <module>
virtualenv.main()
File "/usr/lib/pymodules/python2.6/virtualenv.py", line 534, in main
use_distribute=options.use_distribute)
File "/usr/lib/pymodules/python2.6/virtualenv.py", line 624, in
create_environment
install_distribute(py_executable, unzip=unzip_setuptools)
File "/usr/lib/pymodules/python2.6/virtualenv.py", line 365, in
install_distribute
_install_req(py_executable, unzip, distribute=True)
File "/usr/lib/pymodules/python2.6/virtualenv.py", line 332, in _install_req
shutil.copy(source, target)
File "/usr/lib/python2.6/shutil.py", line 84, in copy
copyfile(src, dst)
File "/usr/lib/python2.6/shutil.py", line 51, in copyfile
with open(dst, 'wb') as fdst:
IOError: [Errno 13] Permission denied: '/tmp/distribute-0.6.8.tar.gz'
This bug is known and fixed upstream. Patch can be found here:
https://bitbucket.org/ianb/virtualenv/changeset/8be37c509fe5/raw/virtualenv-8be37c509fe5.diff
More information about the Python-modules-team
mailing list