Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #18820
| From | Laurent Claessens <moky.math@gmail.com> |
|---|---|
| Newsgroups | comp.lang.python |
| Subject | Re: ERROR:root:code for hash md5 was not found |
| Date | 2012-01-11 12:28 +0100 |
| Organization | A poorly-installed InterNetNews site |
| Message-ID | <4F0D7274.9080905@gmail.com> (permalink) |
| References | <f777e948-02ca-45d3-a858-73e0003d7bcc@t13g2000vbt.googlegroups.com> |
Le 11/01/2012 12:19, mike a écrit :
> Hi,
>
> 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?
On my computer hashlib has "md5" :
Python 2.6.6 (r266:84292, Sep 15 2010, 16:22:56)
[GCC 4.4.5] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import hashlib
>>> h=hashlib.new("md5")
>>> h.update("Hello")
>>> h.hexdigest()
'd992641f1b2b9c08b569c0a17c4e7cb8'
While if I ask for a hash method that hashlib does not know, I get the
same error as you :
>>> g=hashlib.new("bla")
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/lib/python2.6/hashlib.py", line 101, in __hash_new
return __get_builtin_constructor(name)(string)
File "/usr/lib/python2.6/hashlib.py", line 80, in
__get_builtin_constructor
raise ValueError, "unsupported hash type"
ValueError: unsupported hash type
You should give us a more comprehensive example of your problem.
Laurent
Back to comp.lang.python | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
ERROR:root:code for hash md5 was not found mike <mikaelpetterson1@gmail.com> - 2012-01-11 03:19 -0800
Re: ERROR:root:code for hash md5 was not found Laurent Claessens <moky.math@gmail.com> - 2012-01-11 12:28 +0100
Re: ERROR:root:code for hash md5 was not found mike <mikaelpetterson1@gmail.com> - 2012-01-11 05:54 -0800
Re: ERROR:root:code for hash md5 was not found Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2012-01-11 23:28 +0000
Re: ERROR:root:code for hash md5 was not found mike <mikaelpetterson1@gmail.com> - 2012-01-11 22:13 -0800
Re: ERROR:root:code for hash md5 was not found mike <mikaelpetterson1@gmail.com> - 2012-01-11 23:25 -0800
Re: ERROR:root:code for hash md5 was not found Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2012-01-13 03:34 +0000
Re: ERROR:root:code for hash md5 was not found alex23 <wuwei23@gmail.com> - 2012-01-12 20:41 -0800
Re: ERROR:root:code for hash md5 was not found mike <mikaelpetterson1@gmail.com> - 2012-01-13 06:14 -0800
Re: ERROR:root:code for hash md5 was not found Michael Torrie <torriem@gmail.com> - 2012-01-13 09:49 -0700
Re: ERROR:root:code for hash md5 was not found Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2012-01-14 04:30 +0000
Re: ERROR:root:code for hash md5 was not found Marc Christiansen <usenet@solar-empire.de> - 2012-01-14 13:33 +0100
Re: ERROR:root:code for hash md5 was not found Dennis Lee Bieber <wlfraed@ix.netcom.com> - 2012-01-11 12:12 -0500
Re: ERROR:root:code for hash md5 was not found Terry Reedy <tjreedy@udel.edu> - 2012-01-11 13:25 -0500
Re: ERROR:root:code for hash md5 was not found Dennis Lee Bieber <wlfraed@ix.netcom.com> - 2012-01-11 21:23 -0500
csiph-web