-
Notifications
You must be signed in to change notification settings - Fork 68
Open
Description
Doing pythonz install 2.7.9 on Ubuntu 18 comes without ssl support:
ERROR:root:code for hash md5 was not found.
Traceback (most recent call last):
File "/home/user/.pythonz/pythons/CPython-2.7.9/lib/python2.7/hashlib.py", line 147, in <module>
globals()[__func_name] = __get_hash(__func_name)
File "/home/user/.pythonz/pythons/CPython-2.7.9/lib/python2.7/hashlib.py", line 97, in __get_builtin_constructor
raise ValueError('unsupported hash type ' + name)
ValueError: unsupported hash type md5
ERROR:root:code for hash sha1 was not found.
Traceback (most recent call last):
File "/home/user/.pythonz/pythons/CPython-2.7.9/lib/python2.7/hashlib.py", line 147, in <module>
globals()[__func_name] = __get_hash(__func_name)
File "/home/user/.pythonz/pythons/CPython-2.7.9/lib/python2.7/hashlib.py", line 97, in __get_builtin_constructor
raise ValueError('unsupported hash type ' + name)
ValueError: unsupported hash type sha1
ERROR:root:code for hash sha224 was not found.
Traceback (most recent call last):
File "/home/user/.pythonz/pythons/CPython-2.7.9/lib/python2.7/hashlib.py", line 147, in <module>
globals()[__func_name] = __get_hash(__func_name)
File "/home/user/.pythonz/pythons/CPython-2.7.9/lib/python2.7/hashlib.py", line 97, in __get_builtin_constructor
raise ValueError('unsupported hash type ' + name)
ValueError: unsupported hash type sha224
ERROR:root:code for hash sha256 was not found.
Traceback (most recent call last):
File "/home/user/.pythonz/pythons/CPython-2.7.9/lib/python2.7/hashlib.py", line 147, in <module>
globals()[__func_name] = __get_hash(__func_name)
File "/home/user/.pythonz/pythons/CPython-2.7.9/lib/python2.7/hashlib.py", line 97, in __get_builtin_constructor
raise ValueError('unsupported hash type ' + name)
ValueError: unsupported hash type sha256
ERROR:root:code for hash sha384 was not found.
Traceback (most recent call last):
File "/home/user/.pythonz/pythons/CPython-2.7.9/lib/python2.7/hashlib.py", line 147, in <module>
globals()[__func_name] = __get_hash(__func_name)
File "/home/user/.pythonz/pythons/CPython-2.7.9/lib/python2.7/hashlib.py", line 97, in __get_builtin_constructor
raise ValueError('unsupported hash type ' + name)
ValueError: unsupported hash type sha384
ERROR:root:code for hash sha512 was not found.
Traceback (most recent call last):
File "/home/user/.pythonz/pythons/CPython-2.7.9/lib/python2.7/hashlib.py", line 147, in <module>
globals()[__func_name] = __get_hash(__func_name)
File "/home/user/.pythonz/pythons/CPython-2.7.9/lib/python2.7/hashlib.py", line 97, in __get_builtin_constructor
raise ValueError('unsupported hash type ' + name)
ValueError: unsupported hash type sha512
Traceback (most recent call last):
File "./bootstrap.py", line 92, in <module>
exec(urlopen('https://bootstrap.pypa.io/ez_setup.py').read(), ez)
File "/home/user/.pythonz/pythons/CPython-2.7.9/lib/python2.7/urllib2.py", line 154, in urlopen
return opener.open(url, data, timeout)
File "/home/user/.pythonz/pythons/CPython-2.7.9/lib/python2.7/urllib2.py", line 431, in open
response = self._open(req, data)
File "/home/user/.pythonz/pythons/CPython-2.7.9/lib/python2.7/urllib2.py", line 454, in _open
'unknown_open', req)
File "/home/user/.pythonz/pythons/CPython-2.7.9/lib/python2.7/urllib2.py", line 409, in _call_chain
result = func(*args)
File "/home/user/.pythonz/pythons/CPython-2.7.9/lib/python2.7/urllib2.py", line 1265, in unknown_open
raise URLError('unknown url type: %s' % type)
urllib2.URLError: <urlopen error unknown url type: https>https://askubuntu.com/a/1043529
If the python version you are trying to install is equal or lower than 2.7.12, it does not support OpenSSL1.1.0, so you would need to replace libssl-dev with libssl1.0-dev.
Ubuntu 18.04 is the first official release to switch to OpenSSL1.1.0 which is why you might not have been impacted with this in the past.
In homebrew in macOS we have --with-openssl option. For Ubuntu, do we have something similar for pythonz installation? Or am I stuck downloading the tar.gz of the old installation and messing up with https://superuser.com/a/1346305 or https://stackoverflow.com/a/5939170?
Metadata
Metadata
Assignees
Labels
No labels