reinstall! Wow. I've gotten that message before, but rebooting is the most extreme solution to date for me.
It may be the case that your firewall is blocking connections to IP address 127.0.0.1, the internal loopback that Python uses.
If so, you can go into Symantec/Norton/McCaffee/whatever and enable Python on that address.
Hope that helps,
Jeff
jrcagle
Practically a Master Poster
608 posts since Jul 2006
Reputation Points: 92
Solved Threads: 156
Free IDE? Many
Wing IDE 101 - but reduced features
Drpython - No debugging
PyScripter
Netbeans with Nbpython
Eclipse with pydev plugin
Eric (Make sure you take care of Qt licence)............etc
evstevemd
Senior Poster
3,713 posts since Jun 2007
Reputation Points: 462
Solved Threads: 392
Hey guys
I've had the same problem and by looking at lots of different ways to solve the problem i have found the solution. I'm not sure on the specific reasons and stuff but basically, the error only pops up if you had not ended the "while" command. So i think the code keeps repeating in that socket or something. Just remember before you close the python window when you go to test your code, write a code to end the "while" command.(it will tell you that the program is still running and if you want to kill it)
:P
More than year old thread Lol!
Use VIDLE that comes with VPython or alternatives already mentioned
evstevemd
Senior Poster
3,713 posts since Jun 2007
Reputation Points: 462
Solved Threads: 392
After looking through it, i found that the connection is not constant. meaning even though i connected to the basic authenticated web address, the connection fell through after and the authentication was no longer valid. In order to get the data to the web address, i found that i had to use the basic authentication like i had, but I had to change the following line:
req = urllib2.Request(theurl)..... to...... req = urllib2.Request(theurl, requested)
where requested is the data set i was trying to send to the web address. Simple yet complicated fix.
Hope this helps others,
Bryce
Thanks for letting the rest of us know your findings.
vegaseat
DaniWeb's Hypocrite
5,989 posts since Oct 2004
Reputation Points: 1,345
Solved Threads: 1,417