Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/sockets/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Python 刮痧罐头';t启动原因套接字。错误:[错误号10060]_Python_Sockets_Scrapy - Fatal编程技术网

Python 刮痧罐头';t启动原因套接字。错误:[错误号10060]

Python 刮痧罐头';t启动原因套接字。错误:[错误号10060],python,sockets,scrapy,Python,Sockets,Scrapy,我无法启动所有的scrapy项目,因为套接字出错。错误:[Errno 10060]。 启动scrapy时的详细信息错误如下 Traceback (most recent call last): File "D:\Program Files\JetBrains\PyCharm 2017.1.2\helpers\pydev\pydevd.py", line 1585, in <module> globals = debugger.run(setup['file'], None

我无法启动所有的scrapy项目,因为套接字出错。错误:[Errno 10060]。 启动scrapy时的详细信息错误如下

Traceback (most recent call last):
  File "D:\Program Files\JetBrains\PyCharm 2017.1.2\helpers\pydev\pydevd.py", line 1585, in <module>
    globals = debugger.run(setup['file'], None, None, is_module)
  File "D:\Program Files\JetBrains\PyCharm 2017.1.2\helpers\pydev\pydevd.py", line 1015, in run
    pydev_imports.execfile(file, globals, locals)  # execute the script
  File "D:/Python27/Lib/site-packages/scrapy/cmdline.py", line 9, in <module>
    from scrapy.crawler import CrawlerProcess
  File "D:\Python27\lib\site-packages\scrapy\crawler.py", line 7, in <module>
    from twisted.internet import reactor, defer
  File "D:\Python27\lib\site-packages\twisted\internet\reactor.py", line 39, in <module>
    default.install()
  File "D:\Python27\lib\site-packages\twisted\internet\selectreactor.py", line 196, in install
    reactor = SelectReactor()
  File "D:\Python27\lib\site-packages\twisted\internet\selectreactor.py", line 72, in __init__
    posixbase.PosixReactorBase.__init__(self)
  File "D:\Python27\lib\site-packages\twisted\internet\base.py", line 512, in __init__
    self.installWaker()
  File "D:\Python27\lib\site-packages\twisted\internet\posixbase.py", line 284, in installWaker
    self.waker = self._wakerFactory(self)
  File "D:\Python27\lib\site-packages\twisted\internet\posixbase.py", line 79, in __init__
    client.connect(server.getsockname())
  File "D:\Python27\lib\socket.py", line 228, in meth
    return getattr(self._sock,name)(*args)
socket.error: [Errno 10060] 
回溯(最近一次呼叫最后一次):
文件“D:\Program Files\JetBrains\PyCharm 2017.1.2\helpers\pydev\pydevd.py”,第1585行,在
globals=debugger.run(setup['file'],None,None,is_模块)
文件“D:\Program Files\JetBrains\PyCharm 2017.1.2\helpers\pydev\pydevd.py”,第1015行,正在运行
pydev_imports.execfile(文件、全局、局部)#执行脚本
文件“D:/Python27/Lib/site packages/scrapy/cmdline.py”,第9行,在
从scrapy.crawler导入crawler进程
文件“D:\Python27\lib\site packages\scrapy\crawler.py”,第7行,在
从twisted.internet导入反应器,延迟
文件“D:\Python27\lib\site packages\twisted\internet\reactor.py”,第39行,在
default.install()
文件“D:\Python27\lib\site packages\twisted\internet\selectreactor.py”,第196行,在安装中
reactor=SelectReactor()
文件“D:\Python27\lib\site packages\twisted\internet\selectreactor.py”,第72行,在\uuu init中__
posixbase.PosixReactorBase.\uuuu init\uuuu(self)
文件“D:\Python27\lib\site packages\twisted\internet\base.py”,第512行,在\uuu init中__
self.installWaker()
installWaker中第284行的文件“D:\Python27\lib\site packages\twisted\internet\posixbase.py”
self.waker=self.\u wakerFactory(self)
文件“D:\Python27\lib\site packages\twisted\internet\posixbase.py”,第79行,在\uuu init中__
client.connect(server.getsockname())
文件“D:\Python27\lib\socket.py”,第228行,meth格式
返回getattr(self.\u sock,name)(*args)
socket.error:[Errno 10060]

我的计算机操作系统是Windows 10,这意味着超时。请确保您尝试连接的服务器已启动且不太忙。我在浏览器上尝试了该网站,它可以连接。我认为我的操作系统设置有问题,因为没有init spider或enginer的日志