Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #18968
| From | Marc Christiansen <usenet@solar-empire.de> |
|---|---|
| Newsgroups | comp.lang.python |
| Subject | Re: ERROR:root:code for hash md5 was not found |
| Date | 2012-01-14 13:33 +0100 |
| Message-ID | <8998u8-c73.ln1@pluto.solar-empire.de> (permalink) |
| References | (4 earlier) <f6b6d343-4706-494b-8eae-42c15f0592c3@u20g2000yqb.googlegroups.com> <4f0fa650$0$29984$c3e8da3$5496439d@news.astraweb.com> <13ebaf39-49d6-48d9-8a32-deab1f6f6bab@iv6g2000pbc.googlegroups.com> <cc82ecac-6e66-4950-8c64-deb34428260c@a11g2000vbz.googlegroups.com> <4f1104e0$0$29988$c3e8da3$5496439d@news.astraweb.com> |
Steven D'Aprano <steve+comp.lang.python@pearwood.info> wrote:
> On Fri, 13 Jan 2012 06:14:50 -0800, mike wrote:
>> pysibelius is a lib that we use.
>>
>> I am not sure that is the problem since the python program works on SuSE
>> but not on RH server. And AFAIK
>> the only difference ( well that I can see) is the OpenSSL version.
>
> OpenSSL is irrelevant. If it isn't available, or doesn't provide md5,
> then the hashlib library will use its own implementation. But the _md5
> module is missing in the pysibelius Python on your RedHat system.
>
> As I said, your Python installation is seriously broken. Required modules
> are just *gone*.
>
> pysibelius appears to have patched Python in some way, because strange
> unexpected error messages are being printed that do not happen on a
> normal unpatched Python, e.g.:
>
> ERROR:root:code for hash sha224 was not found.
>
> That is not a normal Python error message. That looks like something
> added by pysibelius.
Steven, I think you're wrong with regard to the error message.
Straight from the tarball, Python-2.7.2/Lib/hashlib.py line 135ff:
for __func_name in __always_supported:
# try them all, some may not work due to the OpenSSL
# version not supporting that algorithm.
try:
globals()[__func_name] = __get_hash(__func_name)
except ValueError:
import logging
logging.exception('code for hash %s was not found.', __func_name)
Of course this does not invalidate the fact (is that even possible?) of
the brokenness of the installation.
Ciao
Marc
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