Re: hashlib suddenly broken

2014-09-19 Thread Larry Martell
On Thu, Sep 18, 2014 at 11:00 PM, Steven D'Aprano wrote: > Ned Deily wrote: > >> In article >> , >> Larry Martell wrote: >>> Do you think I should install this update? Perhaps that would restore >>> whatever is missing. >> >> Yes. You should install the update in any case and it's unlikely to ma

Re: hashlib suddenly broken

2014-09-18 Thread Steven D'Aprano
Ned Deily wrote: > In article > , > Larry Martell wrote: >> Do you think I should install this update? Perhaps that would restore >> whatever is missing. > > Yes. You should install the update in any case and it's unlikely to make > the hashlib situation worse :=) However, it is likely to make

Re: hashlib suddenly broken

2014-09-18 Thread Ned Deily
In article , Larry Martell wrote: > Do you think I should install this update? Perhaps that would restore > whatever is missing. Yes. You should install the update in any case and it's unlikely to make the hashlib situation worse :=) -- Ned Deily, n...@acm.org -- https://mail.python.org/

Re: hashlib suddenly broken

2014-09-18 Thread Christian Heimes
On 18.09.2014 23:39, Larry Martell wrote: > $ python > Python 2.7.2 (default, Oct 11 2012, 20:14:37) > [GCC 4.2.1 Compatible Apple Clang 4.0 (tags/Apple/clang-418.0.60)] on darwin > Type "help", "copyright", "credits" or "license" for more information. import _hashlib _hashlib.__file__ >

Re: hashlib suddenly broken

2014-09-18 Thread Larry Martell
On Thu, Sep 18, 2014 at 2:49 PM, Christian Heimes wrote: > On 18.09.2014 21:23, Larry Martell wrote: >> On Thu, Sep 18, 2014 at 11:18 AM, Chris Angelico wrote: >>> On Fri, Sep 19, 2014 at 3:07 AM, Steven D'Aprano >>> wrote: but I expect that's probably not where the problem lies. My *wild g

Re: hashlib suddenly broken

2014-09-18 Thread Larry Martell
On Thu, Sep 18, 2014 at 2:44 PM, Ned Deily wrote: > In article > , > Larry Martell wrote: >> On Thu, Sep 18, 2014 at 1:22 PM, Larry Martell >> wrote: >> > On Thu, Sep 18, 2014 at 11:07 AM, Steven D'Aprano >> > wrote: >> >> Larry Martell wrote: >> >>> I am on a mac running 10.8.5, python 2.7 >>

Re: hashlib suddenly broken

2014-09-18 Thread Larry Martell
On Thu, Sep 18, 2014 at 2:21 PM, John Gordon wrote: > In Larry Martell > writes: > >> It's failing on the 'import _sha' in hashlib.py: > >> 66 def __get_builtin_constructor(name): >> 67try: >> 68 if name in ('SHA1', 'sha1'): >> 69 ->import _sha >> 70

Re: hashlib suddenly broken

2014-09-18 Thread Christian Heimes
On 18.09.2014 21:23, Larry Martell wrote: > On Thu, Sep 18, 2014 at 11:18 AM, Chris Angelico wrote: >> On Fri, Sep 19, 2014 at 3:07 AM, Steven D'Aprano >> wrote: >>> but I expect that's probably not where the problem lies. My *wild guess* is >>> that your system updated SSL, and removed some unde

Re: hashlib suddenly broken

2014-09-18 Thread Ned Deily
In article , Larry Martell wrote: > On Thu, Sep 18, 2014 at 1:22 PM, Larry Martell > wrote: > > On Thu, Sep 18, 2014 at 11:07 AM, Steven D'Aprano > > wrote: > >> Larry Martell wrote: > >>> I am on a mac running 10.8.5, python 2.7 > >>> Suddenly, many of my scripts started failing with: > >>>

Re: hashlib suddenly broken

2014-09-18 Thread John Gordon
In Larry Martell writes: > It's failing on the 'import _sha' in hashlib.py: > 66 def __get_builtin_constructor(name): > 67try: > 68 if name in ('SHA1', 'sha1'): > 69 ->import _sha > 70 return _sha.new > (Pdb) s > ImportError: 'No module named _sh

Re: hashlib suddenly broken

2014-09-18 Thread Larry Martell
On Thu, Sep 18, 2014 at 1:22 PM, Larry Martell wrote: > On Thu, Sep 18, 2014 at 11:07 AM, Steven D'Aprano > wrote: >> Larry Martell wrote: >> >>> I am on a mac running 10.8.5, python 2.7 >>> >>> Suddenly, many of my scripts started failing with: >>> >>> ValueError: unsupported hash type sha1 >> [

Re: hashlib suddenly broken

2014-09-18 Thread Larry Martell
On Thu, Sep 18, 2014 at 11:07 AM, Steven D'Aprano wrote: > Larry Martell wrote: > >> I am on a mac running 10.8.5, python 2.7 >> >> Suddenly, many of my scripts started failing with: >> >> ValueError: unsupported hash type sha1 > [...] >> This just started happening yesterday, and I cannot think o

Re: hashlib suddenly broken

2014-09-18 Thread Larry Martell
On Thu, Sep 18, 2014 at 11:18 AM, Chris Angelico wrote: > On Fri, Sep 19, 2014 at 3:07 AM, Steven D'Aprano > wrote: >> but I expect that's probably not where the problem lies. My *wild guess* is >> that your system updated SSL, and removed some underlying SHA-1 library >> needed by hashlib. SHA-1

Re: hashlib suddenly broken

2014-09-18 Thread Larry Martell
On Thu, Sep 18, 2014 at 10:47 AM, John Gordon wrote: > In Larry Martell > writes: > >> Googling this showed that it's an issue with hashlib with a common >> cause being a file called hashlib.py that gets in the way of the >> interpreter finding the standard hashlib module, but that doesn't seem

Re: hashlib suddenly broken

2014-09-18 Thread Chris Angelico
On Fri, Sep 19, 2014 at 3:07 AM, Steven D'Aprano wrote: > but I expect that's probably not where the problem lies. My *wild guess* is > that your system updated SSL, and removed some underlying SHA-1 library > needed by hashlib. SHA-1 is pretty old, and there is now a known attack on > it, so some

Re: hashlib suddenly broken

2014-09-18 Thread Steven D'Aprano
Larry Martell wrote: > I am on a mac running 10.8.5, python 2.7 > > Suddenly, many of my scripts started failing with: > > ValueError: unsupported hash type sha1 [...] > This just started happening yesterday, and I cannot think of anything > that I've done that could cause this. Ah, the ol' "I

Re: hashlib suddenly broken

2014-09-18 Thread John Gordon
In Larry Martell writes: > Googling this showed that it's an issue with hashlib with a common > cause being a file called hashlib.py that gets in the way of the > interpreter finding the standard hashlib module, but that doesn't seem > to be the case: Perhaps hashlib imports some other module