whenever i want to use urllib or urllib2, i get this error
IOError: [Errno socket error] (10035, 'The socket operation could not complete without blocking')

i have tried googling it yet i havent found anything helpful
any help is apreciated,
python 01

7 Years
Discussion Span
Last Post by python01

If I understand what I've read here and here correctly, what is happening is that the timeout value isn't being set, which means that the socket is being treated as non-blocking (that is, it should not wait for the other end of the socket); however, certain socket operations apparently only work if there is a set timeout. Try using socket.setdefaulttimeout() with a suitable timeout factor.

If this doesn't work, please post the section of code in question (using code tags) so we can see what is actually happening.

Edited by Schol-R-LEA: n/a

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.