TypeError: ssl() argument 1 must be _socket.socket, not _socketobject -> Solution

Tarek Ziadé tziade at nuxeo.com
Wed May 18 10:53:19 EDT 2005


Hi,

by googling for a ssl socket problem, i've seen you guys had the same 
problem

ie : http://mail.python.org/pipermail/python-list/2005-April/278179.html

I have found the problem :

If you trace a little bit and look at __module__ attribute of the 
socket, you will probably find out socket has been patched but the 
timeout mechanism,
provided by the old timeoutsocket.py module provided by Timothy O'Malley

timeoutsocket module is pretty *strong* since it catches all sockets in 
your code, even thaught you did'nt ask for it, imo this is evil

Latests Python have integrated timeout mechanism in sockets so you 
should remove all timeoutsocket.py you have in your paths

Regards

Tarek

-- 
Tarek ZIADE, Nuxeo SARL: Zope Service Provider.
Mail: tz at nuxeo.com - Tel: +33 (0)6 30 37 02 63
Nuxeo Collaborative Portal Server: http://www.nuxeo.com/cps
Gestion de contenu web / portail collaboratif / groupware / open source




More information about the Python-list mailing list