python運行報錯:urllib2.URLError: <urlopen error [Errno 10061] >

來源:互聯網
上載者:User

標籤:

Traceback (most recent call last):  File "F:\adt-bundle-windows-x86_64-20140702\eclipse\workspace1\XueChe\src\xueche2\0\xueche.py", line 19, in <module>    driver = webdriver.Remote(‘http://127.0.0.1:4723/wd/hub‘, desired_caps)  File "build\bdist.win-amd64\egg\appium\webdriver\webdriver.py", line 35, in __init__  File "F:\Python27\lib\site-packages\selenium-2.46.0-py2.7.egg\selenium\webdriver\remote\webdriver.py", line 89, in __init__    self.start_session(desired_capabilities, browser_profile)  File "F:\Python27\lib\site-packages\selenium-2.46.0-py2.7.egg\selenium\webdriver\remote\webdriver.py", line 138, in start_session    ‘desiredCapabilities‘: desired_capabilities,  File "F:\Python27\lib\site-packages\selenium-2.46.0-py2.7.egg\selenium\webdriver\remote\webdriver.py", line 193, in execute    response = self.command_executor.execute(driver_command, params)  File "F:\Python27\lib\site-packages\selenium-2.46.0-py2.7.egg\selenium\webdriver\remote\remote_connection.py", line 358, in execute    return self._request(command_info[0], url, body=data)  File "F:\Python27\lib\site-packages\selenium-2.46.0-py2.7.egg\selenium\webdriver\remote\remote_connection.py", line 426, in _request    resp = opener.open(request)  File "F:\Python27\lib\urllib2.py", line 431, in open    response = self._open(req, data)  File "F:\Python27\lib\urllib2.py", line 449, in _open    ‘_open‘, req)  File "F:\Python27\lib\urllib2.py", line 409, in _call_chain    result = func(*args)  File "F:\Python27\lib\urllib2.py", line 1227, in http_open    return self.do_open(httplib.HTTPConnection, req)  File "F:\Python27\lib\urllib2.py", line 1197, in do_open    raise URLError(err)urllib2.URLError: <urlopen error [Errno 10061] >

 運行python程式竟然報錯,然後。。。竟然是IE瀏覽器使用了代理,我去呀,這哪跟哪,我使用fillder會自動加127.0.0.1作為IE代理,汗,去掉即可

python運行報錯:urllib2.URLError: <urlopen error [Errno 10061] >

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.