[Python-modules-team] Bug#677801: it's doesn't work in virtualenv

Roman Sakal sakalr at gmail.com
Sun Jun 24 16:39:27 UTC 2012


Example of call from virtualenv:

sakal at sakal:~$ cd /tmp
sakal at sakal:/tmp$ virtualenv test_pip
New python executable in test_pip/bin/python
Installing distribute.............................................................................................................................................................................................done.
Installing pip...............done.
sakal at sakal:/tmp$ cd ./test_pip/
sakal at sakal:/tmp/test_pip$ source ./bin/activate
(test_pip)sakal at sakal:/tmp/test_pip$ pip search zlib
Traceback (most recent call last):
  File "/tmp/test_pip/bin/pip", line 9, in <module>
    load_entry_point('pip==1.1', 'console_scripts', 'pip')()
  File "/tmp/test_pip/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/test_pip/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/test_pip/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/test_pip/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/test_pip/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/test_pip/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/test_pip/local/lib/python2.7/site-packages/pip-1.1-py2.7.egg/pip/vcs/__init__.py",
line 81, in <module>
    vcs = VcsSupport()
  File "/tmp/test_pip/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'
(test_pip)sakal at sakal:/tmp/test_pip$


And example of call from non virtualenv:

sakal at sakal:/tmp$ pip search zlib
zc.zlibstorage            - ZODB storage wrapper for zlib compression
of database records
zstream                   - streaming/generator interface for zlib in Cython
sakal at sakal:/tmp$


Information about packages:

sakal at sakal:/tmp$ dpkg -s python-pip
Package: python-pip
Status: install ok installed
Priority: optional
Section: python
Installed-Size: 457
Maintainer: Debian Python Modules Team
<python-modules-team at lists.alioth.debian.org>
Architecture: all
Version: 1.1-3
Depends: python2.6, python (>= 2.6.6-7~), python (<< 2.8),
python-pkg-resources, python-setuptools (>= 0.6c1)
Recommends: python-dev-all (>= 2.6), build-essential
Description: alternative Python package installer
 pip is a replacement for easy_install, and is intended to be an improved
 Python package installer.  It integrates with virtualenv, doesn't do partial
 installs, can save package state for replaying, can install from non-egg
 sources, and can install from version control repositories.
Homepage: http://pip.openplans.org/


sakal at sakal:/tmp$ dpkg -s python-virtualenv
Package: python-virtualenv
Status: install ok installed
Priority: optional
Section: python
Installed-Size: 2269
Maintainer: Debian Python Modules Team
<python-modules-team at lists.alioth.debian.org>
Architecture: all
Version: 1.7.1.2-1
Depends: python-pkg-resources, python-setuptools, python2.7 |
python2.6, python (>= 2.6.6-7~), python (<< 2.8)
Recommends: python-pip (>= 0.7.2)
Description: Python virtual environment creator
 The virtualenv utility creates virtual Python instances, each invokable
 with its own Python executable.  Each instance can have different sets
 of modules, installable via easy_install.  Virtual Python instances can
 also be created without root access.
Homepage: http://pypi.python.org/pypi/virtualenv
sakal at sakal:/tmp$


sakal at sakal:/tmp$ lsb_release -a
LSB Version:
core-2.0-amd64:core-2.0-noarch:core-3.0-amd64:core-3.0-noarch:core-3.1-amd64:core-3.1-noarch:core-3.2-amd64:core-3.2-noarch:core-4.0-amd64:core-4.0-noarch:core-4.1-amd64:core-4.1-noarch:cxx-3.0-amd64:cxx-3.0-noarch:cxx-3.1-amd64:cxx-3.1-noarch:cxx-3.2-amd64:cxx-3.2-noarch:cxx-4.0-amd64:cxx-4.0-noarch:cxx-4.1-amd64:cxx-4.1-noarch:desktop-3.1-amd64:desktop-3.1-noarch:desktop-3.2-amd64:desktop-3.2-noarch:desktop-4.0-amd64:desktop-4.0-noarch:desktop-4.1-amd64:desktop-4.1-noarch:graphics-2.0-amd64:graphics-2.0-noarch:graphics-3.0-amd64:graphics-3.0-noarch:graphics-3.1-amd64:graphics-3.1-noarch:graphics-3.2-amd64:graphics-3.2-noarch:graphics-4.0-amd64:graphics-4.0-noarch:graphics-4.1-amd64:graphics-4.1-noarch:languages-3.2-amd64:languages-3.2-noarch:languages-4.0-amd64:languages-4.0-noarch:languages-4.1-amd64:languages-4.1-noarch:multimedia-3.2-amd64:multimedia-3.2-noarch:multimedia-4.0-amd64:multimedia-4.0-noarch:multimedia-4.1-amd64:multimedia-4.1-noarch:printing-3.2-amd64:printing-3.2-noarch:printing-4.0-amd64:printing-4.0-noarch:printing-4.1-amd64:printing-4.1-noarch:qt4-3.1-amd64:qt4-3.1-noarch:security-4.0-amd64:security-4.0-noarch:security-4.1-amd64:security-4.1-noarch
Distributor ID: Debian
Description:    Debian GNU/Linux unstable (sid)
Release:        unstable
Codename:       sid





More information about the Python-modules-team mailing list