Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!news.glorb.com!news.linkpendium.com!news.linkpendium.com!panix!gordon From: John Gordon Newsgroups: comp.lang.python Subject: Re: hashlib suddenly broken Date: Thu, 18 Sep 2014 20:21:14 +0000 (UTC) Organization: PANIX Public Access Internet and UNIX, NYC Lines: 26 Message-ID: References: NNTP-Posting-Host: panix3.panix.com X-Trace: reader1.panix.com 1411071674 19514 166.84.1.3 (18 Sep 2014 20:21:14 GMT) X-Complaints-To: abuse@panix.com NNTP-Posting-Date: Thu, 18 Sep 2014 20:21:14 +0000 (UTC) User-Agent: nn/6.7.3 Xref: csiph.com comp.lang.python:78042 In Larry Martell writes: > It's failing on the 'import _sha' in hashlib.py: > 66 def __get_builtin_constructor(name): > 67 try: > 68 if name in ('SHA1', 'sha1'): > 69 -> import _sha > 70 return _sha.new > (Pdb) s > ImportError: 'No module named _sha' This appears to differ from the error you originally reported: > File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/hashlib.py", > line 91, in __get_builtin_constructor > raise ValueError('unsupported hash type %s' % name) > ValueError: unsupported hash type sha1 Could there be two different versions of hashlib.py on your system? -- John Gordon Imagine what it must be like for a real medical doctor to gordon@panix.com watch 'House', or a real serial killer to watch 'Dexter'.