virtualenv -p pypy fails with ZipImportError: cannot import name 'CertificateError'

Bug #1398058 reported by Marius Gedminas
26
This bug affects 5 people
Affects Status Importance Assigned to Milestone
python-urllib3 (Ubuntu)
Fix Released
High
Unassigned

Bug Description

I'm trying to create a virtualenv with PyPy, using pypy 2.3.1+dfsg-1 from utopic/universe. This fails:

    $ virtualenv -p pypy /tmp/pypy
    Running virtualenv with interpreter /usr/bin/pypy
    New pypy executable in /tmp/pypy/bin/pypy
    Installing setuptools, pip...
      Complete output from command /tmp/pypy/bin/pypy -c "import sys, pip; sys...d\"] + sys.argv[1:]))" setuptools pip:
      Traceback (most recent call last):
      File "app_main.py", line 75, in run_toplevel
      File "app_main.py", line 581, in run_it
      File "<string>", line 1, in <module>
    ZipImportError: cannot import name 'CertificateError'
    ----------------------------------------
    ...Installing setuptools, pip...done.
    Traceback (most recent call last):
      File "app_main.py", line 75, in run_toplevel
      File "/usr/lib/python3/dist-packages/virtualenv.py", line 2378, in <module>
        main()
      File "/usr/lib/python3/dist-packages/virtualenv.py", line 830, in main
        symlink=options.symlink)
      File "/usr/lib/python3/dist-packages/virtualenv.py", line 1032, in create_environment
        install_wheel(to_install, py_executable, search_dirs)
      File "/usr/lib/python3/dist-packages/virtualenv.py", line 975, in install_wheel
        'PIP_NO_INDEX': '1'
      File "/usr/lib/python3/dist-packages/virtualenv.py", line 917, in call_subprocess
        % (cmd_desc, proc.returncode))
    OSError: Command /tmp/pypy/bin/pypy -c "import sys, pip; sys...d\"] + sys.argv[1:]))" setuptools pip failed with error code 1

ProblemType: Bug
DistroRelease: Ubuntu 14.10
Package: python-virtualenv 1.11.6-2
ProcVersionSignature: Ubuntu 3.16.0-26.34-generic 3.16.7-ckt1
Uname: Linux 3.16.0-26-generic x86_64
ApportVersion: 2.14.7-0ubuntu8
Architecture: amd64
CurrentDesktop: GNOME
Date: Mon Dec 1 17:59:41 2014
EcryptfsInUse: Yes
InstallationDate: Installed on 2012-07-25 (859 days ago)
InstallationMedia: Ubuntu 12.04 LTS "Precise Pangolin" - Release amd64 (20120425)
PackageArchitecture: all
SourcePackage: python-virtualenv
UpgradeStatus: Upgraded to utopic on 2014-10-24 (38 days ago)

Revision history for this message
Marius Gedminas (mgedmin) wrote :
Revision history for this message
Marius Gedminas (mgedmin) wrote :

For the record, upstream virtualenv 1.11.6 (same version as in Ubuntu!) succeeds with pypy (but fails with Python 3.x).

Revision history for this message
Vladimir Wetzel (wetzel) wrote :

Hi Marius,

you can download new deb Files from vivid and install it.

http://packages.ubuntu.com/vivid/all/python-urllib3-whl/download
http://packages.ubuntu.com/vivid/all/python-urllib3/download
http://packages.ubuntu.com/vivid/all/python3-urllib3/download

Befor you test it again "virtualenv --python pypy pypytest" please remove the following folder:
"rm -rf pypytest .tox ve"

Bugreport on Debian-Bugtracker:
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=763389

Bugfix:

From: Daniele Tricoli <email address hidden>
To: <email address hidden>
Subject: Bug#763389: fixed in python-urllib3 1.9.1-3
Date: Thu, 20 Nov 2014 15:19:21 +0000

Source: python-urllib3
Source-Version: 1.9.1-3

We believe that the bug you reported is fixed in the latest version of
python-urllib3, which is due to be installed in the Debian FTP archive.

I hope this help you

affects: python-virtualenv (Ubuntu) → python-urllib3 (Ubuntu)
Changed in python-urllib3 (Ubuntu):
status: New → Confirmed
Revision history for this message
Marius Gedminas (mgedmin) wrote :

I'm currently using 'pip install --user virtualenv' as a workaround.

Changed in python-urllib3 (Ubuntu):
importance: Undecided → High
Revision history for this message
Tin Tvrtkovic (tinchester) wrote :

Thee three packages from #3 solved my issue, as far as I can see.

Revision history for this message
James Page (james-page) wrote :

This bug refers to software versions in an unsupported Ubuntu release - comment #5 indicates that the vivid version (also unsupported now) resolves the issue so marking Fix Released.

Changed in python-urllib3 (Ubuntu):
status: Confirmed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.