Public bug reported: Hi!
Upgraded my Ubuntu from 10.10 to 11.04 last night, so also went from Python 2.6 to Python 2.7. Afterwards, I can't use virtualenv at all. Even doing virtualenv --version is broken: jpipes@serialcoder:~/repos/glance/bug713154$ virtualenv --version Traceback (most recent call last): File "/usr/local/bin/virtualenv", line 5, in from pkg_resources import load_entry_point File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 2675, in parse_requirements(requires), Environment() File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 552, in resolve raise DistributionNotFound(req) pkg_resources.DistributionNotFound: virtualenv==1.4.8 Filed a bug over at virtualenv's GitHub Issues: https://github.com/pypa/virtualenv/issues/148 Tried uninstalling and then reinstalling, but no luck: jpipes@serialcoder:~/repos/glance/bug713154$ cat /usr/local/bin/virtualenv #!/usr/bin/python # EASY-INSTALL-ENTRY-SCRIPT: 'virtualenv==1.4.8','console_scripts','virtualenv' __requires__ = 'virtualenv==1.4.8' import sys from pkg_resources import load_entry_point if __name__ == '__main__': sys.exit( load_entry_point('virtualenv==1.4.8', 'console_scripts', 'virtualenv')() ) jpipes@serialcoder:~/repos/glance/bug713154$ sudo apt-get remove python-virtualenv [sudo] password for jpipes: Reading package lists... Done Building dependency tree Reading state information... Done The following package was automatically installed and is no longer required: python-pip Use 'apt-get autoremove' to remove them. The following packages will be REMOVED: python-virtualenv 0 upgraded, 0 newly installed, 1 to remove and 0 not upgraded. After this operation, 1,737 kB disk space will be freed. Do you want to continue [Y/n]? Y (Reading database ... 240617 files and directories currently installed.) Removing python-virtualenv ... Processing triggers for python-support ... Processing triggers for man-db ... jpipes@serialcoder:~/repos/glance/bug713154$ sudo apt-get install python-virtualenv Reading package lists... Done Building dependency tree Reading state information... Done The following NEW packages will be installed: python-virtualenv 0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded. Need to get 0 B/1,504 kB of archives. After this operation, 1,737 kB of additional disk space will be used. Selecting previously deselected package python-virtualenv. (Reading database ... 240595 files and directories currently installed.) Unpacking python-virtualenv (from .../python-virtualenv_1.4.9-3ubuntu1_all.deb) ... Processing triggers for man-db ... Setting up python-virtualenv (1.4.9-3ubuntu1) ... Processing triggers for python-support ... jpipes@serialcoder:~/repos/glance/bug713154$ virtualenv --version Traceback (most recent call last): File "/usr/local/bin/virtualenv", line 5, in <module> from pkg_resources import load_entry_point File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 2675, in <module> parse_requirements(__requires__), Environment() File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 552, in resolve raise DistributionNotFound(req) pkg_resources.DistributionNotFound: virtualenv==1.4.8 However, uninstalling the apt-get installed version (1.4.9) and installing 1.6.1 via easy_install DOES work: jpipes@serialcoder:~/repos/glance/bug713154$ sudo easy_install virtualenv Searching for virtualenv Reading http://pypi.python.org/simple/virtualenv/ Reading http://www.virtualenv.org Reading http://virtualenv.openplans.org Best match: virtualenv 1.6.1 Downloading http://pypi.python.org/packages/source/v/virtualenv/virtualenv-1.6.1.tar.gz#md5=1a475df2219457b6b4febb9fe595d915 Processing virtualenv-1.6.1.tar.gz Running virtualenv-1.6.1/setup.py -q bdist_egg --dist-dir /tmp/easy_install-jiS4Nv/virtualenv-1.6.1/egg-dist-tmp-NISPdu warning: no previously-included files matching '.' found under directory 'docs/_templates' Adding virtualenv 1.6.1 to easy-install.pth file Installing virtualenv script to /usr/local/bin Installed /usr/local/lib/python2.7/dist-packages/virtualenv-1.6.1-py2.7.egg Processing dependencies for virtualenv Finished processing dependencies for virtualenv jpipes@serialcoder:~/repos/glance/bug713154$ virtualenv --version 1.6.1 ** Affects: python-virtualenv (Ubuntu) Importance: Undecided Status: New -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/806527 Title: virtualenv 1.4.9 installed in 11.04 broken To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/python-virtualenv/+bug/806527/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs