2

当我从 Scrapy 教程运行蜘蛛时,我收到以下错误消息:

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.

有谁知道它们是什么以及如何摆脱它们?

谢谢

4

1 回答 1

5

也许您在启用 telnet 控制台的情况下同时运行两个 Scrapy 进程?

如果您想同时运行多个 Scrapy 进程,则必须禁用(或至少更改端口)Web 和 telnet 控制台。

于 2009-11-22T15:30:50.960 回答