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

John Arbash Meinel john at arbash-meinel.com
Sun Mar 14 14:26:06 GMT 2010


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Martin (gzlist) wrote:
> 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?
> 
> Martin
> 
> 

IIRC, On many platforms 'ssl' is packaged separately because of concerns
with export licensing, etc. For example, on debian/Ubuntu, I believe you
have to install python-ssl.

Note that it is a bug if bzr requires ssl to run at all, but not a bug
if we require ssl to use https. As for launchpad, I think you can use
the http://bazaar.launchpad.net without using ssl, however lp: probably
resolves via an https rpc.

John
=:->
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (Cygwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAkuc8f4ACgkQJdeBCYSNAAMNGQCgp5YfBqAYZ4Oq6qMl7RWlcHJ/
j+8AoMzQAgvBXptV95JywWANDYPKXcg7
=tK42
-----END PGP SIGNATURE-----



More information about the bazaar mailing list