zoukankan      html  css  js  c++  java
  • python运行报错:urllib2.URLError: <urlopen error [Errno 10061] >

    Traceback (most recent call last):
      File "F:adt-bundle-windows-x86_64-20140702eclipseworkspace1XueChesrcxueche2xueche.py", line 19, in <module>
        driver = webdriver.Remote('http://127.0.0.1:4723/wd/hub', desired_caps)
      File "builddist.win-amd64eggappiumwebdriverwebdriver.py", line 35, in __init__
      File "F:Python27libsite-packagesselenium-2.46.0-py2.7.eggseleniumwebdriver
    emotewebdriver.py", line 89, in __init__
        self.start_session(desired_capabilities, browser_profile)
      File "F:Python27libsite-packagesselenium-2.46.0-py2.7.eggseleniumwebdriver
    emotewebdriver.py", line 138, in start_session
        'desiredCapabilities': desired_capabilities,
      File "F:Python27libsite-packagesselenium-2.46.0-py2.7.eggseleniumwebdriver
    emotewebdriver.py", line 193, in execute
        response = self.command_executor.execute(driver_command, params)
      File "F:Python27libsite-packagesselenium-2.46.0-py2.7.eggseleniumwebdriver
    emote
    emote_connection.py", line 358, in execute
        return self._request(command_info[0], url, body=data)
      File "F:Python27libsite-packagesselenium-2.46.0-py2.7.eggseleniumwebdriver
    emote
    emote_connection.py", line 426, in _request
        resp = opener.open(request)
      File "F:Python27liburllib2.py", line 431, in open
        response = self._open(req, data)
      File "F:Python27liburllib2.py", line 449, in _open
        '_open', req)
      File "F:Python27liburllib2.py", line 409, in _call_chain
        result = func(*args)
      File "F:Python27liburllib2.py", line 1227, in http_open
        return self.do_open(httplib.HTTPConnection, req)
      File "F:Python27liburllib2.py", line 1197, in do_open
        raise URLError(err)
    urllib2.URLError: <urlopen error [Errno 10061] >
    

     运行python程序竟然报错,然后。。。竟然是IE浏览器使用了代理,我去呀,这哪跟哪,我使用fillder会自动加127.0.0.1作为IE代理,汗,去掉即可

  • 相关阅读:
    git 获取领先落后的命令
    django orm 时间字段讲解
    在SAE上同步djanogo的mysql数据库
    使用JS来实现验证码功能
    一个基于python的即时通信程序
    关于python多线程编程中join()和setDaemon()的一点儿探究
    Django1.6添加comments应用的简单过程
    使用saltstack批量部署服务器运行环境事例——批量部署nagios客户端
    Web服务器集群搭建关键步骤纪要
    关于rsync的密码问题
  • 原文地址:https://www.cnblogs.com/sincoolvip/p/4727484.html
Copyright © 2011-2022 走看看