[Tutor] URLError Help.

Alan Gauld alan.gauld at btinternet.com
Sun Oct 23 23:45:02 CEST 2011


On 23/10/11 15:47, Dipo Elegbede wrote:
> I am trying to access a url using the urllib2.urlopen() command.
>
> It does well when i run from idle but as soon as i plug into my app; it
> gives me this <urlopen error [Errno 10054] An existing connection was
> forcibly closed by the remote host>.

Can we see some code that generates the error?
And can we see the full error traceback?

Also the OS and Python version would be useful.

Otherwise we are pretty much guessing at what might be wrong.


-- 
Alan G
Author of the Learn to Program web site
http://www.alan-g.me.uk/



More information about the Tutor mailing list