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

Recommended Answers

All 2 Replies

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.

Ok, I'll give it a shot.
Thanks for the help,
python01

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.