X-Received: by 10.224.17.140 with SMTP id s12mr13460077qaa.3.1360077004318; Tue, 05 Feb 2013 07:10:04 -0800 (PST) X-Received: by 10.49.81.72 with SMTP id y8mr2132070qex.42.1360077004280; Tue, 05 Feb 2013 07:10:04 -0800 (PST) Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!news.glorb.com!p13no12875599qai.0!news-out.google.com!k2ni8440qap.0!nntp.google.com!p13no12875593qai.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: comp.lang.python Date: Tue, 5 Feb 2013 07:10:04 -0800 (PST) In-Reply-To: <4F0D7274.9080905@gmail.com> Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=194.119.212.51; posting-account=4-4HMgoAAAAGQVheM17rseAIAyorYYMw NNTP-Posting-Host: 194.119.212.51 References: <4F0D7274.9080905@gmail.com> User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: Subject: Re: ERROR:root:code for hash md5 was not found From: bidzina_kapanadze@iliauni.edu.ge Cc: mike Injection-Date: Tue, 05 Feb 2013 15:10:04 +0000 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Xref: csiph.com comp.lang.python:38198 On Wednesday, January 11, 2012 12:28:52 PM UTC+1, Laurent Claessens wrote: > Le 11/01/2012 12:19, mike a =EF=BF=BDcrit : >=20 > > Hi, >=20 > > >=20 > > We are running are running Python program on Redhat 5.5. >=20 > > >=20 > > When executing our program we get the following error ( see below). >=20 > > >=20 > > Any ideas what this is due to? >=20 >=20 >=20 > On my computer hashlib has "md5" : >=20 >=20 >=20 >=20 >=20 >=20 >=20 > Python 2.6.6 (r266:84292, Sep 15 2010, 16:22:56) >=20 > [GCC 4.4.5] on linux2 >=20 > Type "help", "copyright", "credits" or "license" for more information. >=20 > >>> import hashlib >=20 > >>> h=3Dhashlib.new("md5") >=20 > >>> h.update("Hello") >=20 > >>> h.hexdigest() >=20 > 'd992641f1b2b9c08b569c0a17c4e7cb8' >=20 >=20 >=20 > While if I ask for a hash method that hashlib does not know, I get the=20 >=20 > same error as you : >=20 >=20 >=20 > >>> g=3Dhashlib.new("bla") >=20 > Traceback (most recent call last): >=20 > File "", line 1, in >=20 > File "/usr/lib/python2.6/hashlib.py", line 101, in __hash_new >=20 > return __get_builtin_constructor(name)(string) >=20 > File "/usr/lib/python2.6/hashlib.py", line 80, in=20 >=20 > __get_builtin_constructor >=20 > raise ValueError, "unsupported hash type" >=20 > ValueError: unsupported hash type >=20 >=20 >=20 >=20 >=20 > You should give us a more comprehensive example of your problem. >=20 >=20 >=20 > Laurent Dear Laurent, I have encountered similar problem and your suggestion was helpful. Thanks = a lot! Sincerely, Bidzina Kapanadze, Abastumani Astrophysical Observatory, Ilia State University, Tbilisi, Georgia