Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

crash with Python 3.3 on Arch Linux #885

Closed
oconnor663 opened this issue Mar 18, 2016 · 3 comments
Closed

crash with Python 3.3 on Arch Linux #885

oconnor663 opened this issue Mar 18, 2016 · 3 comments

Comments

@oconnor663
Copy link

If I install Python 3.3 from the Arch Linux AUR and then try to open a virtualenv, I get this crash:

$ virtualenv -p python3.3 /tmp/foo
Running virtualenv with interpreter /usr/bin/python3.3
Using base prefix '/usr'
New python executable in /tmp/foo/bin/python3.3
Also creating executable in /tmp/foo/bin/python
Installing setuptools, pip, wheel...
  Complete output from command /tmp/foo/bin/python3.3 - setuptools pip wheel:
  Traceback (most recent call last):
  File "<stdin>", line 7, in <module>
  File "/usr/lib/python3.5/site-packages/virtualenv_support/pip-8.1.0-py2.py3-none-any.whl/pip/__init__.py", line 15, in <module>
  File "/usr/lib/python3.5/site-packages/virtualenv_support/pip-8.1.0-py2.py3-none-any.whl/pip/vcs/subversion.py", line 9, in <module>
  File "/usr/lib/python3.5/site-packages/virtualenv_support/pip-8.1.0-py2.py3-none-any.whl/pip/index.py", line 30, in <module>
  File "/usr/lib/python3.5/site-packages/virtualenv_support/pip-8.1.0-py2.py3-none-any.whl/pip/wheel.py", line 39, in <module>
  File "/usr/lib/python3.5/site-packages/virtualenv_support/pip-8.1.0-py2.py3-none-any.whl/pip/_vendor/distlib/scripts.py", line 14, in <module>
  File "/usr/lib/python3.5/site-packages/virtualenv_support/pip-8.1.0-py2.py3-none-any.whl/pip/_vendor/distlib/compat.py", line 66, in <module>
ImportError: cannot import name HTTPSHandler
----------------------------------------
...Installing setuptools, pip, wheel...done.
Traceback (most recent call last):
  File "/usr/lib/python3.5/site-packages/virtualenv.py", line 2311, in <module>
    main()
  File "/usr/lib/python3.5/site-packages/virtualenv.py", line 703, in main
    symlink=options.symlink)
  File "/usr/lib/python3.5/site-packages/virtualenv.py", line 936, in create_environment
    download=download,
  File "/usr/lib/python3.5/site-packages/virtualenv.py", line 892, in install_wheel
    call_subprocess(cmd, show_stdout=False, extra_env=env, stdin=SCRIPT)
  File "/usr/lib/python3.5/site-packages/virtualenv.py", line 787, in call_subprocess
    % (cmd_desc, proc.returncode))
OSError: Command /tmp/foo/bin/python3.3 - setuptools pip wheel failed with error code 1

There's some discussion in the comments on that AUR package about different build flags related to SSL. I get the impression that the package itself needs to be fixed somehow, so this crash is not virtualenv's fault. However, it would be nice if virtualenv was aware of this potential error, and was able to print a helpful message. Something like "The SomethingSomething package is missing, probably because your version of Python was built without BlahBlahSSL. Virtualenv doens't support that."

@mPyth
Copy link

mPyth commented Apr 17, 2016

I've got exactly the same error as @oconnor663 described with Python 3.4 installed from Arch Linux AUR (current/default version of Python is 3.5).
I've tried to install virtualenv directly from Arch Linux repo and using 'pip', but in both cases the same error is reported.
Here is command:
$ virtualenv -p /usr/bin/python3.4 python34virtEnv

@yan12125
Copy link

yan12125 commented May 28, 2016

Should be fixed by https://bitbucket.org/pypa/distlib/commits/a258e3bdd6f8205f3815e173a55ffe857e743995.

UPDATE 2018/01/20: fixed in distlib 0.2.4, pip 9.0.0 (pypa/pip@c8e8a99), and landed in virtualenv 15.1.0 (e944bdc)

@hugovk
Copy link
Contributor

hugovk commented Jan 20, 2018

This is old issue can be closed now because EOL Python 3.3 was dropped n #1089.

@pypa pypa locked and limited conversation to collaborators Jan 14, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants