ERROR:root:code for hash md5 was not found

Ibad Kureshi U0850037 U0850037 at hud.ac.uk
Sun Feb 3 11:29:34 CET 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 from your system. If the content of this e-mail does not relate to the business of the University of Huddersfield, then we do not endorse it and will accept no liability.



More information about the Python-list mailing list