ERROR:root:code for hash md5 was not found
tjreedy at udel.edu
Wed Jan 11 13:25:16 EST 2012
On 1/11/2012 6:19 AM, mike wrote:
> We are running are running Python program on Redhat 5.5.
> When executing our program we get the following error ( see below).
> Any ideas what this is due to?
> Overwriten ...
> ERROR:root:code for hash md5 was not found.
These 3 lines do not come from the interpreter.
It might come from the hashlib module.
> Traceback (most recent call last):
> File "/python/lib/python2.7/hashlib.py", line 139, in<module>
> globals()[__func_name] = __get_hash(__func_name)
> File "/python/lib/python2.7/hashlib.py", line 91, in
> raise ValueError('unsupported hash type %s' % name)
> ValueError: unsupported hash type md5
This is a standard traceback from the interpreter.
The manual says that md5 should always be available.
On the other hand, hashlib depends on the OpenSSL library on your
system. Perhaps RedHat removed md5 because it has been broken.
I suggest you ask them or check your OpenSSL doc. The Python manual may
need to be changed.
> ERROR:root:code for hash sha1 was not found
Terry Jan Reedy
More information about the Python-list