Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wrong constant name in scheduler.py #8

Open
aheretic opened this issue Apr 12, 2016 · 1 comment
Open

Wrong constant name in scheduler.py #8

aheretic opened this issue Apr 12, 2016 · 1 comment

Comments

@aheretic
Copy link

Hi, I had en error when try to start my script with scrapy and scrapy-rabbitmq
`2016-04-12 14:34:06 [twisted] CRITICAL: Unhandled error in Deferred:

Traceback (most recent call last):
File "/usr/local/lib/python2.7/site-packages/twisted/internet/defer.py", line 1274, in unwindGenerator
return _inlineCallbacks(None, gen, Deferred())
File "/usr/local/lib/python2.7/site-packages/twisted/internet/defer.py", line 1128, in _inlineCallbacks
result = g.send(result)
File "/usr/local/lib/python2.7/site-packages/scrapy/crawler.py", line 73, in crawl
yield self.engine.open_spider(self.spider, start_requests)
File "/usr/local/lib/python2.7/site-packages/twisted/internet/defer.py", line 1274, in unwindGenerator
return _inlineCallbacks(None, gen, Deferred())
--- ---
File "/usr/local/lib/python2.7/site-packages/twisted/internet/defer.py", line 1128, in _inlineCallbacks
result = g.send(result)
File "/usr/local/lib/python2.7/site-packages/scrapy/core/engine.py", line 238, in open_spider
yield scheduler.open(spider)
File "/app/project/external_apps/scrapy_rabbitmq/scheduler.py", line 56, in open
if len(self.queue):
File "/app/project/external_apps/scrapy_rabbitmq/queue.py", line 54, in len
response = self.server.queue_declare(self.key, passive=True)
File "/usr/local/lib/python2.7/site-packages/pika/adapters/blocking_connection.py", line 2329, in queue_declare
self._flush_output(declare_ok_result.is_ready)
File "/usr/local/lib/python2.7/site-packages/pika/adapters/blocking_connection.py", line 1181, in _flush_output
raise exceptions.ChannelClosed(method.reply_code, method.reply_text)
pika.exceptions.ChannelClosed: (404, "NOT_FOUND - no queue 'my_spider:requests' in vhost 'docker'")
2016-04-12 14:34:06 [twisted] CRITICAL: `

I set settings as in example. Queue with name RABBITMQ_QUEUE_NAME from settings in my rabbitMQ server will be created.
Queue with name "my_spider:request" wasn't created.

@roycehaynes
Copy link
Owner

@aheretic - I'll try to re-create the issue and see if I can fix. Thanks for reporting.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants