前提・実現したいこと
python2.7のファイルをコンパイルしようとして以下のエラーが発生しました。
発生している問題・エラーメッセージ
ERROR:root:code for hash md5 was not found.
Traceback (most recent call last):
File "/Users/kokuboev60017/.pyenv/versions/2.7.16/lib/python2.7/hashlib.py", line 147, in <module>
globals()[__func_name] = __get_hash(__func_name)
File "/Users/kokuboev60017/.pyenv/versions/2.7.16/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 "/Users/kokuboev60017/.pyenv/versions/2.7.16/lib/python2.7/hashlib.py", line 147, in <module>
globals()[__func_name] = __get_hash(__func_name)
File "/Users/kokuboev60017/.pyenv/versions/2.7.16/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 "/Users/kokuboev60017/.pyenv/versions/2.7.16/lib/python2.7/hashlib.py", line 147, in <module>
globals()[__func_name] = __get_hash(__func_name)
File "/Users/kokuboev60017/.pyenv/versions/2.7.16/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 "/Users/kokuboev60017/.pyenv/versions/2.7.16/lib/python2.7/hashlib.py", line 147, in <module>
globals()[__func_name] = __get_hash(__func_name)
File "/Users/kokuboev60017/.pyenv/versions/2.7.16/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 "/Users/kokuboev60017/.pyenv/versions/2.7.16/lib/python2.7/hashlib.py", line 147, in <module>
globals()[__func_name] = __get_hash(__func_name)
File "/Users/kokuboev60017/.pyenv/versions/2.7.16/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 "/Users/kokuboev60017/.pyenv/versions/2.7.16/lib/python2.7/hashlib.py", line 147, in <module>
globals()[__func_name] = __get_hash(__func_name)
File "/Users/kokuboev60017/.pyenv/versions/2.7.16/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 "/Users/kokuboev60017/Downloads/openacoustics20190924-2/openacoustics/examples/fdtd/sampleFDTD3.py", line 28, in <module>
from pylab import *
File "/Users/kokuboev60017/.pyenv/versions/2.7.16/lib/python2.7/site-packages/pylab.py", line 1, in <module>
from matplotlib.pylab import *
File "/Users/kokuboev60017/.pyenv/versions/2.7.16/lib/python2.7/site-packages/matplotlib/pylab.py", line 252, in <module>
from matplotlib import cbook, mlab, pyplot as plt
File "/Users/kokuboev60017/.pyenv/versions/2.7.16/lib/python2.7/site-packages/matplotlib/pyplot.py", line 31, in <module>
import matplotlib.colorbar
File "/Users/kokuboev60017/.pyenv/versions/2.7.16/lib/python2.7/site-packages/matplotlib/colorbar.py", line 36, in <module>
import matplotlib.contour as contour
File "/Users/kokuboev60017/.pyenv/versions/2.7.16/lib/python2.7/site-packages/matplotlib/contour.py", line 25, in <module>
import matplotlib.texmanager as texmanager
File "/Users/kokuboev60017/.pyenv/versions/2.7.16/lib/python2.7/site-packages/matplotlib/texmanager.py", line 48, in <module>
from hashlib import md5
ImportError: cannot import name md5
どうしたら解決できますか?
回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。