ERROR:root:code for hash md5 was not found

Steven D'Aprano steve+comp.lang.python at
Wed Jan 11 18:28:10 EST 2012

On Wed, 11 Jan 2012 05:54:29 -0800, mike wrote:

> I did some more digging and found that our class imports a ""
> that uses
> import re, types, sys, cStringIO, hashlib, os.path
> so it has hashlib.
> seems to be an old version 1.3 ( I found 2.3 -->).
> Reading about hashlib it seems to be dependent on os installation of
> OpenSSL but I cannot find out how.

It shouldn't be. It will use OpenSSL if available, otherwise it will fall 
back on its own code.

> br,
> //mike
> ===============
> # ply:
[snip over TWO THOUSAND lines of code]

Mike, what lead you to believe that an error in hashlib could be solved 
by posting the ENTIRE two thousand lines of Please do not post 
such huge chunks of code unless asked. It is unnecessary and annoying.

Try this. Open a terminal window and enter "python" at the prompt to 
start a clean interactive session. Then enter the following commands:

import sys
import hashlib
import _md5

and copy and paste (do not retype) the full output of these commands.

Thank you.


More information about the Python-list mailing list