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

Discussion in 'Python' started by Ibad Kureshi U0850037, Feb 3, 2013.

  1. 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.
    Ibad Kureshi U0850037, Feb 3, 2013
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Replies:
    9
    Views:
    17,090
    John Salerno
    May 8, 2006
  2. rp
    Replies:
    1
    Views:
    516
    red floyd
    Nov 10, 2011
  3. mike
    Replies:
    15
    Views:
    3,440
  4. Peter Woodsky

    create a md5 / md5 passwd with a salt

    Peter Woodsky, Nov 20, 2008, in forum: Ruby
    Replies:
    6
    Views:
    213
    Brian Candler
    Nov 21, 2008
  5. dieter
    Replies:
    0
    Views:
    218
    dieter
    Feb 4, 2013
Loading...

Share This Page