Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #38102

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

Path csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!news.mixmin.net!de-l.enfer-du-nord.net!feeder1.enfer-du-nord.net!newsfeed.eweka.nl!eweka.nl!feeder3.eweka.nl!newsfeed.xs4all.nl!newsfeed2.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail
Return-Path <U0850037@hud.ac.uk>
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; 'python.': 0.02; 'attribute': 0.05; 'importerror:': 0.05; 'scipy': 0.05; 'sys': 0.05; 'liability.': 0.07; 'setup.py': 0.07; 'subject:code': 0.07; 'valueerror:': 0.07; 'python': 0.09; "%s'": 0.09; 'hashlib': 0.09; 'name)': 0.09; 'subject:not': 0.11; '2.7': 0.13; '2.7.3': 0.16; '_md5': 0.16; 'endorse': 0.16; 'folder.': 0.16; 'md5': 0.16; 'numpy': 0.16; 'oct': 0.16; 'sha1': 0.16; 'threads': 0.16; 'unsupported': 0.16; '>>>': 0.18; 'module': 0.19; 'versions': 0.20; 'to:name:python-list@python.org': 0.20; 'bit': 0.21; 'import': 0.21; '"",': 0.22; 'skip:_ 20': 0.22; 'solutions.': 0.23; 'installed': 0.23; 'raise': 0.24; '---': 0.26; 'appreciated.': 0.26; '(most': 0.27; 'found.': 0.27; 'installing': 0.27; 'skip:" 50': 0.27; 'environment': 0.29; 'hash': 0.29; 'invoke': 0.29; 'skip:/ 40': 0.29; 'source': 0.29; 'install': 0.29; 'file': 0.32; 'running': 0.32; 'skip:- 10': 0.32; 'traceback': 0.33; 'problem': 0.33; 'to:addr:python-list': 0.33; 'skip:d 20': 0.34; 'self': 0.34; 'but': 0.36; 'modules': 0.36; 'charset:us-ascii': 0.36; 'skip:p 20': 0.36; 'does': 0.37; 'two': 0.37; 'skip:v 20': 0.37; 'rather': 0.37; 'subject:: ': 0.38; 'university': 0.38; 'object': 0.38; 'system.': 0.39; 'to:addr:python.org': 0.39; 'build': 0.39; 'hello,': 0.39; 'header:Received:5': 0.40; 'help': 0.40; 'end': 0.40; 'your': 0.60; 'skip:u 10': 0.60; 'remove': 0.61; 'different': 0.63; 'more': 0.63; 'received:ac.uk': 0.65; 'believe': 0.69; 'business': 0.70; 'receive': 0.71; 'privileged.': 0.72; 'subject::': 0.83; '2.7.': 0.84; 'relate': 0.91; 'subject:found': 0.91; 'received:172.17': 0.93
From Ibad Kureshi U0850037 <U0850037@hud.ac.uk>
To "python-list@python.org" <python-list@python.org>
Date Sun, 3 Feb 2013 10:29:34 +0000
Subject Re: ERROR:root:code for hash md5 was not found
Thread-Topic ERROR:root:code for hash md5 was not found
Thread-Index AQHOAfgF3UneZmA9UEWqqDYPhSo3Ow==
Accept-Language en-US, en-GB
Content-Language en-US
X-MS-Has-Attach
X-MS-TNEF-Correlator
acceptlanguage en-US, en-GB
Content-Type text/plain; charset="us-ascii"
Content-Transfer-Encoding quoted-printable
MIME-Version 1.0
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.15
Precedence list
List-Id General discussion list for the Python programming language <python-list.python.org>
List-Unsubscribe <http://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-list/>
List-Post <mailto:python-list@python.org>
List-Help <mailto:python-list-request@python.org?subject=help>
List-Subscribe <http://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Newsgroups comp.lang.python
Message-ID <mailman.1310.1359888857.2939.python-list@python.org> (permalink)
Lines 120
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1359888857 news.xs4all.nl 6924 [2001:888:2000:d::a6]:53164
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:38102

Show key headers only | View raw


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.

Back to comp.lang.python | Previous | Next | Find similar | Unroll thread


Thread

Re: ERROR:root:code for hash md5 was not found Ibad Kureshi U0850037 <U0850037@hud.ac.uk> - 2013-02-03 10:29 +0000

csiph-web