Velocity Reviews - Computer Hardware Reviews

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

Reply
Thread Tools

Re: ERROR:root:code for hash md5 was not found

 
 
Ibad Kureshi U0850037
Guest
Posts: n/a
 
      02-03-2013
Hello,

I am bit new to python and am struggling to install NumPy and SciPy on to Python 2.7. Based on my understanding I believe that the problem is with my Python install rather than the way I am installing NumPy. I have seen only two other threads that deal with this issue but both threads just end with no solutions.

I am on a CENTOS 5.8 system. With python 2.7 installed from source in a self contained folder. I am using environment modules to manage the different versions of python.

When I invoke the NumPy installer I get the following:


python setup.py build --fcompiler=gnu95
Running from numpy source directory.ERROR:root:code for hash md5 was not found.
Traceback (most recent call last):
File "/apps/libs/python/2.7.3/lib/python2.7/hashlib.py", line 139, in <module>
globals()[__func_name] = __get_hash(__func_name)
File "/apps/libs/python/2.7.3/lib/python2.7/hashlib.py", line 91, in __get_builtin_constructor
raise ValueError('unsupported hash type %s' % name)
ValueError: unsupported hash type md5
ERROR:root:code for hash sha1 was not found.
...
...
AttributeError: 'module' object has no attribute 'md5'

If I start python and try to call the file I see the following:


python
Python 2.7.3 (default, Oct 11 2012, 14:00:07)
[GCC 4.4.6 20110731 (Red Hat 4.4.6-3)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import sys

print(sys.version)
import hashlib
print(hashlib.__file__)
print(hashlib.md5)
import _md5
print(_md5.__file__) >>> 2.7.3 (default, Oct 11 2012, 14:00:07)
[GCC 4.4.6 20110731 (Red Hat 4.4.6-3)]
>>> ERROR:root:code for hash md5 was not found.

Traceback (most recent call last):
File "/apps/libs/python/2.7.3/lib/python2.7/hashlib.py", line 139, in <module>
globals()[__func_name] = __get_hash(__func_name)
File "/apps/libs/python/2.7.3/lib/python2.7/hashlib.py", line 91, in __get_builtin_constructor
raise ValueError('unsupported hash type %s' % name)
ValueError: unsupported hash type md5
ERROR:root:code for hash sha1 was not found.
Traceback (most recent call last):
File "/apps/libs/python/2.7.3/lib/python2.7/hashlib.py", line 139, in <module>
globals()[__func_name] = __get_hash(__func_name)
File "/apps/libs/python/2.7.3/lib/python2.7/hashlib.py", line 91, in __get_builtin_constructor
raise ValueError('unsupported hash type %s' % name)
ValueError: unsupported hash type sha1
ERROR:root:code for hash sha224 was not found.
Traceback (most recent call last):
File "/apps/libs/python/2.7.3/lib/python2.7/hashlib.py", line 139, in <module>
globals()[__func_name] = __get_hash(__func_name)
File "/apps/libs/python/2.7.3/lib/python2.7/hashlib.py", line 91, in __get_builtin_constructor
raise ValueError('unsupported hash type %s' % name)
ValueError: unsupported hash type sha224
ERROR:root:code for hash sha256 was not found.
Traceback (most recent call last):
File "/apps/libs/python/2.7.3/lib/python2.7/hashlib.py", line 139, in <module>
globals()[__func_name] = __get_hash(__func_name)
File "/apps/libs/python/2.7.3/lib/python2.7/hashlib.py", line 91, in __get_builtin_constructor
raise ValueError('unsupported hash type %s' % name)
ValueError: unsupported hash type sha256
ERROR:root:code for hash sha384 was not found.
Traceback (most recent call last):
File "/apps/libs/python/2.7.3/lib/python2.7/hashlib.py", line 139, in <module>
globals()[__func_name] = __get_hash(__func_name)
File "/apps/libs/python/2.7.3/lib/python2.7/hashlib.py", line 91, in __get_builtin_constructor
raise ValueError('unsupported hash type %s' % name)
ValueError: unsupported hash type sha384
ERROR:root:code for hash sha512 was not found.
Traceback (most recent call last):
File "/apps/libs/python/2.7.3/lib/python2.7/hashlib.py", line 139, in <module>
globals()[__func_name] = __get_hash(__func_name)
File "/apps/libs/python/2.7.3/lib/python2.7/hashlib.py", line 91, in __get_builtin_constructor
raise ValueError('unsupported hash type %s' % name)
ValueError: unsupported hash type sha512
>>> /apps/libs/python/2.7.3/lib/python2.7/hashlib.pyc
>>> Traceback (most recent call last):

File "<stdin>", line 1, in <module>
AttributeError: 'module' object has no attribute 'md5'
>>> Traceback (most recent call last):

File "<stdin>", line 1, in <module>
ImportError: No module named _md5


Any help would be greatly appreciated.

-Ibad


---
This transmission is confidential and may be legally privileged. If you receive it in error, please notify us immediately by e-mail and remove it fromyour system. If the content of this e-mail does not relate to the businessof the University of Huddersfield, then we do not endorse it and will accept no liability.
 
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
ERROR:root:code for hash md5 was not found mike Python 15 02-05-2013 03:10 PM
Re: ERROR:root:code for hash md5 was not found dieter Python 0 02-04-2013 08:25 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