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

  • Thread starter =?ISO-8859-1?Q?Tarek_Ziad=E9?=
  • Start date
?

=?ISO-8859-1?Q?Tarek_Ziad=E9?=

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,744
Messages
2,569,483
Members
44,903
Latest member
orderPeak8CBDGummies

Latest Threads

Top