码迷,mamicode.com
首页 > 编程语言 > 详细

python运行报错:urllib2.URLError: <urlopen error [Errno 10061] >

时间:2015-08-13 17:12:32      阅读:1926      评论:0      收藏:0      [点我收藏+]

标签:

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] >

标签:

原文地址:http://www.cnblogs.com/sincoolvip/p/4727484.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!