Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Python > ERROR:root:code for hash md5 was not found

Reply
Thread Tools

ERROR:root:code for hash md5 was not found

 
 
alex23
Guest
Posts: n/a
 
      01-13-2012
On Jan 13, 1:34*pm, Steven D'Aprano <steve
+comp.lang.pyt...@pearwood.info> wrote:
> What is pysibelius? I can't find it on the web. Does it have anything to
> do with Sibelius the music composition software?


Yes, please provide more information about the pysibelius package,
especially if this is the case.

The few tenuous Python/Sibelius links I found didn't have anything on
pysibelius, unfortunately.

 
Reply With Quote
 
 
 
 
mike
Guest
Posts: n/a
 
      01-13-2012
On Jan 13, 5:41*am, alex23 <wuwe...@gmail.com> wrote:
> On Jan 13, 1:34*pm, Steven D'Aprano <steve
>
> +comp.lang.pyt...@pearwood.info> wrote:
> > What is pysibelius? I can't find it on the web. Does it have anything to
> > do with Sibelius the music composition software?

>
> Yes, please provide more information about the pysibelius package,
> especially if this is the case.
>
> The few tenuous Python/Sibelius links I found didn't have anything on
> pysibelius, unfortunately.


Hi,

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.

According to code it uses openssl:

<built-in function openssl_md5>

So I need to find a way to convince the linux sys admin to install
same version of openssl on both servers.

Thanks a lot for your valuable time.

//mike
 
Reply With Quote
 
 
 
 
Michael Torrie
Guest
Posts: n/a
 
      01-13-2012
On 01/13/2012 07:14 AM, 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.
>
> According to code it uses openssl:
>
> <built-in function openssl_md5>
>
> So I need to find a way to convince the linux sys admin to install
> same version of openssl on both servers.


Unfortunately that's going to be fairly difficult, as they would have to
install a new version of openssl alongside the existing system version,
which you can't just replace. Or it might be possible to copy the
openssl libraries from SuSE over. Either way you will have to use the
LD_LIBRARY_PATH or the LD_LIBRARY_PRELOAD environment variables to get
PySibelius to load that version instead of the system one.
 
Reply With Quote
 
Steven D'Aprano
Guest
Posts: n/a
 
      01-14-2012
On Fri, 13 Jan 2012 06:14:50 -0800, mike wrote:

> On Jan 13, 5:41Â*am, alex23 <wuwe...@gmail.com> wrote:
>> On Jan 13, 1:34Â*pm, Steven D'Aprano <steve
>>
>> +comp.lang.pyt...@pearwood.info> wrote:
>> > What is pysibelius? I can't find it on the web. Does it have anything
>> > to do with Sibelius the music composition software?

>>
>> Yes, please provide more information about the pysibelius package,
>> especially if this is the case.
>>
>> The few tenuous Python/Sibelius links I found didn't have anything on
>> pysibelius, unfortunately.

>
> Hi,
>
> 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
 
Reply With Quote
 
Klaus
Guest
Posts: n/a
 
      09-27-2012
I had that problem after moving my Python installation into another directory. Reinstalling Python helped.
 
Reply With Quote
 
bidzina_kapanadze@iliauni.edu.ge
Guest
Posts: n/a
 
      02-05-2013
On Wednesday, January 11, 2012 12:28:52 PM UTC+1, Laurent Claessens wrote:
> 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


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
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Re: ERROR:root:code for hash md5 was not found dieter Python 0 02-04-2013 08:25 AM
Re: ERROR:root:code for hash md5 was not found Ibad Kureshi U0850037 Python 0 02-03-2013 10:29 AM
hash of hash of hash of hash in c++ rp C++ 1 11-10-2011 04:45 PM
create a md5 / md5 passwd with a salt Peter Woodsky Ruby 6 11-21-2008 09:08 AM
md5 from python different then md5 from command line ursache.marius@gmail.com Python 9 05-07-2006 11:49 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57