Differences between revisions 2 and 3
Revision 2 as of 2007-01-08 18:45:33
Size: 1402
Comment:
Revision 3 as of 2007-01-08 19:53:41
Size: 1645
Editor: pool69-59-255-31
Comment:
Deletions are marked like this. Additions are marked like this.
Line 21: Line 21:
----
Line 34: Line 36:

----

Interesting... any idea what that might be? I grepped all the config* stuff for ssl and there doesn't seem to be any mention of it. Any suggestions on where I start to find out how to build python with ssl support on linux?

I just upgraded from python 2.4.2 to 2.5 (r25:51908, Jan 4 2007, 17:18:25) and my program using the xmpp module stopped working. Investigating, it appears that ssl() is no longer part of the socket module, but I can't find any documenation to that effect. Here is what I see (opensuse 10.1):

{{{/usr/bin/python Python 2.4.2 (#1, May 2 2006, 08:13:46) [GCC 4.1.0 (SUSE Linux)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> import socket >>> [x for x in socket.dict.keys() if x[0] == 's'] ['sslerror', 'socketpair', 'socket', 'ssl', 'setdefaulttimeout', 'sys'] >>> gpomper@dhcp-10-111-54-146:~/Desktop/Python-2.5$ python Python 2.5 (r25:51908, Jan 4 2007, 17:18:25) [GCC 4.1.0 (SUSE Linux)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> import socket >>> [x for x in socket.dict.keys() if x[0] == 's'] ['socketpair', 'socket', 'setdefaulttimeout', 'sys'] }}} Where did ssl go?


Nowhere as far as I know:

% python2.5
Python 2.5c1 (release25-maint:51339, Aug 17 2006, 22:15:14)
[GCC 4.0.0 (Apple Computer, Inc. build 5026)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
import >>> import socket
>>> socket.ssl
<function ssl at 0x5b8170>

Maybe you have something missing from your system which is required to build Python with SSL support.


Interesting... any idea what that might be? I grepped all the config* stuff for ssl and there doesn't seem to be any mention of it. Any suggestions on where I start to find out how to build python with ssl support on linux?

Asking for Help/Socket module changed in Python 2.5? (last edited 2011-03-26 23:21:32 by PaulBoddie)

Unable to edit the page? See the FrontPage for instructions.