2.1.0: Cygwin - bzr: ERROR: exceptions.AttributeError: 'module' object has no attribute 'ssl'

Jari Aalto jari.aalto at cante.net
Sun Mar 14 10:52:45 GMT 2010


"Martin (gzlist)" <gzlist at googlemail.com> writes:

> On 13/03/2010, Jari Aalto <jari.aalto at cante.net> wrote:
>
>>>
>>> Does this also throw for you?
>>>
>>>     $ python -c "import socket; socket.ssl"
>>
>> Unfortunately:
>>
>> $ python -c "import socket; socket.ssl"
>> Traceback (most recent call last):
>>   File "<string>", line 1, in <module>
>> AttributeError: 'module' object has no attribute 'ssl'
>>
>> So, I gather I'm out of luck using LP under Cygwin.
>
> No, that's good news, it's a problem with your Python installation
> rather than the bzr package you made. Going by what I have, you need
> /usr/lib/python2.5/lib-dynload/_ssl.dll which should be provided by
> the base Python package:
> <http://cygwin.com/packages/python/python-2.5.1-2>
>
> So perhaps just reinstalling that will fix it?

Just updated:

$ ls -la  /usr/lib/python2.5/lib-dynload/_ssl.dll
-rwxr-xr-x 1 root root 13824 2007-05-19 00:02 /usr/lib/python2.5/lib-dynload/_ssl.dll

$ python -c "import socket; socket.ssl"
Traceback (most recent call last):
  File "<string>", line 1, in <module>
AttributeError: 'module' object has no attribute 'ssl'

$ python -c "import socket"
$ python -c "import locale"
$ python -c "import crypt"
<works>

So it might be that the build of "ssl" DLL is broken?

Jari




More information about the bazaar mailing list