Package: python-virtualenv
Version: 1.7.1.2-1
Severity: important
Dear Maintainer,
Here is the step to reproduce the bug:
chaica@sid2:/tmp$ virtualenv mytest
New python executable in mytest/bin/python
Installing
distribute.............................................................................................................................................................................................done.
Installing pip...............done.
chaica@sid2:/tmp$ cd mytest/
chaica@sid2:/tmp/mytest$ source bin/activate
(mytest)chaica@sid2:/tmp/mytest$ pip install tornado
Traceback (most recent call last):
File "/tmp/mytest/bin/pip", line 9, in <module>
load_entry_point('pip==1.1', 'console_scripts', 'pip')()
File
"/tmp/mytest/local/lib/python2.7/site-packages/distribute-0.6.24-py2.7.egg/pkg_resources.py",
line 337, in load_entry_point
return get_distribution(dist).load_entry_point(group, name)
File
"/tmp/mytest/local/lib/python2.7/site-packages/distribute-0.6.24-py2.7.egg/pkg_resources.py",
line 2279, in load_entry_point
return ep.load()
File
"/tmp/mytest/local/lib/python2.7/site-packages/distribute-0.6.24-py2.7.egg/pkg_resources.py",
line 1989, in load
entry = __import__(self.module_name, globals(),globals(), ['__name__'])
File
"/tmp/mytest/local/lib/python2.7/site-packages/pip-1.1-py2.7.egg/pip/__init__.py",
line 11, in <module>
from pip.basecommand import command_dict, load_command, load_all_commands,
command_names
File
"/tmp/mytest/local/lib/python2.7/site-packages/pip-1.1-py2.7.egg/pip/basecommand.py",
line 12, in <module>
from pip.download import urlopen
File
"/tmp/mytest/local/lib/python2.7/site-packages/pip-1.1-py2.7.egg/pip/download.py",
line 15, in <module>
from pip.vcs import vcs
File
"/tmp/mytest/local/lib/python2.7/site-packages/pip-1.1-py2.7.egg/pip/vcs/__init__.py",
line 81, in <module>
vcs = VcsSupport()
File
"/tmp/mytest/local/lib/python2.7/site-packages/pip-1.1-py2.7.egg/pip/vcs/__init__.py",
line 22, in __init__
urlparse.uses_fragment.extend(self.schemes)
AttributeError: 'module' object has no attribute 'uses_fragment'
Explanation:
The embedded pip in virtualenv crashes with Python >= 2.7.3, 3.2.3. This
situation has been solved in the python-pip Debian package (See #677801 and the
upstream bug [1]) but the python-virtualenv Debian package has an unpatched pip
1.1 source tarball in /usr/share/python-virtualenv which is used by virtualenv
inside a virtual environment.
[1]: https://github.com/pypa/pip/issues/552
I'm not sure yet what the good solution is. Maybe to patch the files in this
pip 1.1 source tarball.
Regards,
Carl Chenet
-- System Information:
Debian Release: wheezy/sid
APT prefers unstable
APT policy: (500, 'unstable')
Architecture: i386 (i686)
Kernel: Linux 2.6.32-5-686 (SMP w/1 CPU core)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash
Versions of packages python-virtualenv depends on:
ii python 2.7.3~rc2-1
ii python-pkg-resources 0.6.24-1
ii python-setuptools 0.6.24-1
ii python2.6 2.6.7-4
ii python2.7 2.7.3-1
Versions of packages python-virtualenv recommends:
ii python-pip 1.1-3
python-virtualenv suggests no packages.
-- no debconf information
_______________________________________________
Python-modules-team mailing list
[email protected]
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/python-modules-team