Twisted errors in Scrapy spider

試著忘記壹切 提交于 2019-11-30 16:08:14

问题


When I run the spider from the Scrapy tutorial I get these error messages:

File "C:\Python26\lib\site-packages\twisted\internet\base.py", line 374, in fireEvent DeferredList(beforeResults).addCallback(self._continueFiring)  

File "C:\Python26\lib\site-packages\twisted\internet\defer.py", line 195, in addCallback callbackKeywords=kw)

File "C:\Python26\lib\site-packages\twisted\internet\defer.py", line 186, in addCallbacks self._runCallbacks()

File "C:\Python26\lib\site-packages\twisted\internet\defer.py", line 328, in_runCallbacks self.result = callback(self.result, *args, **kw)

--- <exception caught here> ---

File "C:\Python26\lib\site-packages\twisted\internet\base.py", line 387, in _continueFiring callable(*args, **kwargs)

File "C:\Python26\lib\site-packages\twisted\internet\posixbase.py", line 356, in listenTCP p.startListening()

File "C:\Python26\lib\site-packages\twisted\internet\tcp.py", line 858, in startListening raise CannotListenError, (self.interface, self.port, le) twisted.internet.error.CannotListenError: Couldn't listen on any:6023: [Errno 10048] 

Only one usage of each socket address (protocol/network address/port) is normally permitted.

Does anyone know what they are and how I can get rid of them?

Thanks


回答1:


Perhaps you're running two Scrapy process simultaneously with telnet console enabled?.

If you want to run more than one Scrapy process at the same time, you must disable (or, at least, change the port) of web and telnet consoles.



来源:https://stackoverflow.com/questions/1767553/twisted-errors-in-scrapy-spider

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!