Problems with urllib

Joonas Paalasmaa joonas.paalasmaa at
Mon Jun 18 10:37:06 CEST 2001

I get the following error message when trying to open a website with
Internet connections are ok and I can access the page with browser.
Platform is WinNT4.

>>> indexfile = urllib.urlopen("").readlines()
Traceback (most recent call last):
  File "<pyshell#7>", line 1, in ?
    indexfile = urllib.urlopen("").readlines()
  File "c:\python21\lib\", line 71, in urlopen
  File "c:\python21\lib\", line 176, in open
    return getattr(self, name)(url)
  File "c:\python21\lib\", line 283, in open_http
    h.putrequest('GET', selector)
  File "c:\python21\lib\", line 432, in putrequest
  File "c:\python21\lib\", line 374, in send
  File "c:\python21\lib\", line 358, in connect
    self.sock.connect((, self.port))
  File "<string>", line 1, in connect
IOError: [Errno socket error] (10060, 'Operation timed out')

More information about the Python-list mailing list