python - Celery: consumer: Cannot connect to amqp://guest:**@127.0.0.1:5672//: [Errno 92] Protocol not available -


i keep getting error, , don't know why. i'm using ubuntu on windows 10 , celery used work fine. happened , keep getting error. use celery docs learn.

here task.py:

from celery import celery  app = celery('tasks', broker='pyamqp://guest@localhost//')  @app.task def add(x, y):     return x + y 

here error i'm getting:

[2017-08-14 17:34:04,436: error/mainprocess] consumer: cannot connect amqp://guest:**@127.0.0.1:5672//: [errno 92] protocol not available. trying again in 2.00 seconds...  [2017-08-14 17:34:06,453: error/mainprocess] consumer: cannot connect amqp://guest:**@127.0.0.1:5672//: [errno 92] protocol not available. trying again in 4.00 seconds...  [2017-08-14 17:34:10,465: error/mainprocess] consumer: cannot connect amqp://guest:**@127.0.0.1:5672//: [errno 92] protocol not available. trying again in 6.00 seconds...  [2017-08-14 17:34:16,480: error/mainprocess] consumer: cannot connect amqp://guest:**@127.0.0.1:5672//: [errno 92] protocol not available. trying again in 8.00 seconds... 

in order start celery type:

celery -a tasks worker --loglevel=info 


Comments

Popular posts from this blog

android - InAppBilling registering BroadcastReceiver in AndroidManifest -

python Tkinter Capturing keyboard events save as one single string -

sql server - Why does Linq-to-SQL add unnecessary COUNT()? -