urllib2.urlopen gives error 10060

Discussion in 'Python' started by Jinshi, Mar 26, 2008.

  1. Jinshi

    Jinshi Guest

    Hello, everyone,

    I am quite new to python and I don't know how to solve this problem. I
    hope someone can help me.

    I just did a test in python shell:

    >>> import urllib2
    >>> urllib2.urlopen("http://python.org")

    Traceback (most recent call last):
    File "c:\Zope\<string>", line 1, in ?
    File "C:\Zope\2.10.5\Python\Lib\urllib2.py", line 130, in urlopen
    return _opener.open(url, data)
    File "C:\Zope\2.10.5\Python\Lib\urllib2.py", line 358, in open
    response = self._open(req, data)
    File "C:\Zope\2.10.5\Python\Lib\urllib2.py", line 376, in _open
    '_open', req)
    File "C:\Zope\2.10.5\Python\Lib\urllib2.py", line 337, in _call_chain
    result = func(*args)
    File "C:\Zope\2.10.5\Python\Lib\urllib2.py", line 1021, in http_open
    return self.do_open(httplib.HTTPConnection, req)
    File "C:\Zope\2.10.5\Python\Lib\urllib2.py", line 996, in do_open
    raise URLError(err)
    URLError: <urlopen error (10060, 'Operation timed out')>

    I am using Windows XP and the python was installed along with a zope
    installation. I can get on internet with Firefox browser without any
    proxy setting.

    I can do the test successfully on another computer on the same home
    network. I just don't know what happens to this one. Can anyone help me
    to troubleshoot this? Any suggestion would be really appreciated.

    Jin
     
    Jinshi, Mar 26, 2008
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Xu, C.S.
    Replies:
    5
    Views:
    481
    John J. Lee
    Sep 17, 2003
  2. John F Dutcher

    urllib2.urlopen(req) error........

    John F Dutcher, Jun 4, 2004, in forum: Python
    Replies:
    2
    Views:
    976
    John F Dutcher
    Jun 7, 2004
  3. Matt
    Replies:
    0
    Views:
    2,716
  4. Chris
    Replies:
    0
    Views:
    1,054
    Chris
    Jul 10, 2005
  5. Mark Devine
    Replies:
    2
    Views:
    1,093
    amadain
    Jun 29, 2009
Loading...

Share This Page