Path: csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!gegeweb.org!de-l.enfer-du-nord.net!feeder1.enfer-du-nord.net!feeds.phibee-telecom.net!newsfeed.xs4all.nl!newsfeed6.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.000 X-Spam-Evidence: '*H*': 1.00; '*S*': 0.00; 'below).': 0.07; 'broken.': 0.07; 'received:verizon.net': 0.07; 'subject:code': 0.07; 'terry': 0.07; 'python': 0.08; 'interpreter.': 0.09; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:80.91.229.12': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'received:lo.gmane.org': 0.09; 'valueerror:': 0.09; 'am,': 0.12; 'library': 0.13; 'subject:was': 0.15; 'hashlib': 0.16; 'name)': 0.16; 'openssl': 0.16; 'reedy': 0.16; 'sha1': 0.16; 'wrote:': 0.18; 'jan': 0.19; 'suggest': 0.20; '(most': 0.21; 'subject:not': 0.21; 'header:In-Reply-To:1': 0.22; 'traceback': 0.24; 'says': 0.25; 'skip:_ 20': 0.26; 'raise': 0.28; 'depends': 0.28; 'skip:" 30': 0.28; 'module.': 0.29; 'error': 0.29; 'lines': 0.30; 'hash': 0.30; 'redhat': 0.30; 'hi,': 0.32; 'header:User-Agent:1': 0.33; 'header:X-Complaints-To:1': 0.33; 'to:addr:python-list': 0.34; 'to?': 0.34; 'last):': 0.34; 'running': 0.35; 'file': 0.36; '...': 0.36; 'executing': 0.37; 'mike': 0.38; 'received:org': 0.38; 'should': 0.39; 'to:addr:python.org': 0.40; 'might': 0.40; 'type': 0.61; 'your': 0.61; 'our': 0.64; 'due': 0.66; 'hand,': 0.76; 'br,': 0.84; 'subject::': 0.87; 'subject:found': 0.91 X-Injected-Via-Gmane: http://gmane.org/ To: python-list@python.org From: Terry Reedy Subject: Re: ERROR:root:code for hash md5 was not found Date: Wed, 11 Jan 2012 13:25:16 -0500 References: Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Gmane-NNTP-Posting-Host: pool-74-109-121-73.phlapa.fios.verizon.net User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:8.0) Gecko/20111105 Thunderbird/8.0 In-Reply-To: X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 42 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1326306356 news.xs4all.nl 6911 [2001:888:2000:d::a6]:45567 X-Complaints-To: abuse@xs4all.nl Xref: x330-a1.tempe.blueboxinc.net comp.lang.python:18842 On 1/11/2012 6:19 AM, mike wrote: > 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? > > br, > > //mike > > /pysibelius/lib/common/ > DataTypes.py > Overwriten ... > ERROR:root:code for hash md5 was not found. These 3 lines do not come from the interpreter. It might come from the hashlib module. > Traceback (most recent call last): > File "/python/lib/python2.7/hashlib.py", line 139, in > globals()[__func_name] = __get_hash(__func_name) > File "/python/lib/python2.7/hashlib.py", line 91, in > __get_builtin_constructor > raise ValueError('unsupported hash type %s' % name) > ValueError: unsupported hash type md5 This is a standard traceback from the interpreter. The manual says that md5 should always be available. On the other hand, hashlib depends on the OpenSSL library on your system. Perhaps RedHat removed md5 because it has been broken. I suggest you ask them or check your OpenSSL doc. The Python manual may need to be changed. > ERROR:root:code for hash sha1 was not found -- Terry Jan Reedy