Search code examples
mongodbpymongodjango-celery

Celery with Mongodb as brocker and backend


I followed the code from the below Working example of celery with mongo DB Getting the below error

CRITICAL/MainProcess] Unrecoverable error: TypeError("'Collection' object is not callable. If you meant to call the 'collection_names' method on a 'Database' object it is failing because no such method exists.")

. Can someone tell me what could be the problem?


Solution

  • Use pymongo version 3 should fix the error.