Closed rdcprojects closed 9 years ago
I changed the push method in SpiderQueue to this:
def push(self, request):
"""Push a request"""
self.server.basic_publish(
exchange='',
routing_key=self.key,
body=request.body
)
The above error has gone and a new one has arisen:
2015-07-27 15:50:01 [scrapy] ERROR: Scheduler close failure
Traceback (most recent call last):
File "C:\Python27\lib\site-packages\twisted\internet\defer.py", line 588, in _runCallbacks
current.result = callback(current.result, *args, **kw)
File "C:\Python27\lib\site-packages\scrapy\core\engine.py", line 288, in <lambda>
dfd.addBoth(lambda _: slot.scheduler.close(reason))
TypeError: close() takes exactly 1 argument (2 given)
Below is the traceback: