Soemthing wrong w/ urllib module or something.

Tim Golden mail at
Mon Sep 3 10:28:59 CEST 2007

Lamonte Harris wrote:
> Error Message in cmd:
> Traceback (most recent call last):
>   File "", line 25, in <module>
>     response = urllib2.urlopen(request)
>   File "C:\Python25\lib\", line 121, in urlopen
>     return, data)
>   File "C:\Python25\lib\", line 374, in open
>     response = self._open(req, data)
>   File "C:\Python25\lib\", line 392, in _open
>     '_open', req)
>   File "C:\Python25\lib\", line 353, in _call_chain
>     result = func(*args)
>   File "C:\Python25\lib\", line 1100, in http_open
>     return self.do_open(httplib.HTTPConnection, req)
>   File "C:\Python25\lib\", line 1075, in do_open
>     raise URLError(err)
> urllib2.URLError: <urlopen error (10053, 'Software caused connection
> abort')>

> For some reason its not acting right when trying to run.  I get that error
> message and I never seen anything like it.

My experience is that that error message represents the local firewall
or virus scanner blocking your network activity. That said, it doesn't
seem likely that your firewall is blocking activity on port 80 without
your having noticed! Maybe the domain you're posting to is selectively
blacklisted by your local firewall?

To do the obvious, can you open a socket connection to the domain you're

from socket import socket
socket ().connect (("DOMAINHERE", 80))


or does it give you the same error?


More information about the Python-list mailing list