469,342 Members | 5,664 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,342 developers. It's quick & easy.

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

Hi,

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

ie : http://mail.python.org/pipermail/pyt...il/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@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

Jul 19 '05 #1
0 1467

This discussion thread is closed

Replies have been disabled for this discussion.

By using this site, you agree to our Privacy Policy and Terms of Use.