when type in j in shell, we will receive error message like this
ERROR:root:code for hash md5 was not found.
Traceback (most recent call last): File "/usr/local/Cellar/python@2/2.7.15_1/Frameworks/", line 147, in <module> globals()[__func_name] = __get_hash(__func_name) File "/usr/local/Cellar/python@2/2.7.15_1/Frameworks/", 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 "/usr/local/Cellar/python@2/2.7.15_1/Frameworks/", line 147, in <module> globals()[__func_name] = __get_hash(__func_name) File "/usr/local/Cellar/python@2/2.7.15_1/Frameworks/", 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 "/usr/local/Cellar/python@2/2.7.15_1/Frameworks/", line 147, in <module> globals()[__func_name] = __get_hash(__func_name) File "/usr/local/Cellar/python@2/2.7.15_1/Frameworks/", 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 "/usr/local/Cellar/python@2/2.7.15_1/Frameworks/", line 147, in <module> globals()[__func_name] = __get_hash(__func_name) File "/usr/local/Cellar/python@2/2.7.15_1/Frameworks/", 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 "/usr/local/Cellar/python@2/2.7.15_1/Frameworks/", line 147, in <module> globals()[__func_name] = __get_hash(__func_name) File "/usr/local/Cellar/python@2/2.7.15_1/Frameworks/", 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 "/usr/local/Cellar/python@2/2.7.15_1/Frameworks/", line 147, in <module> globals()[__func_name] = __get_hash(__func_name) File "/usr/local/Cellar/python@2/2.7.15_1/Frameworks/", line 97, in __get_builtin_constructor raise ValueError('unsupported hash type ' + name)
ValueError: unsupported hash type sha512 1 2 Answers
The problem is that python2 was EOL since Jan 1st, 2020.
On the other hand, brew no longer support python@2 as well. (, )
trying to uninstall python2 with brew uninstall python@2 is an option.
$ brew uninstall python@2
Uninstalling /usr/local/Cellar/python@2/2.7.15_1... (4,169 files, 76.0MB) 3 What solved for me was linking openssl back to 1.02 to make python2.7 working again. Check if openssl 1.0.2 is intalled:
ls /usr/local/Cellar/opensslwhich should show: 1.0.2r
Now link openssl to 1.0.2r:
brew switch openssl 1.0.2r 5