Error with celery worker in elastic beanstalk (using django and SQS) [ImportError: The curl client requires the pycurl library.]


I’m trying to deploy to elastic beanstalk a django project that uses celery periodic tasks, using SQS.

I’ve been more or less following the instructions here:

How to run a celery worker with Django app scalable by AWS Elastic Beanstalk?

When I deploy to eb, the periodic tasks are not being executed.

Checking the celery-beat log, everything seems right:

but there seems to be some problem with the celery worker. This is the error I get in celery-worker.log:

I’ve been searching for answers and some people seem to have the same problem. I’ve tried deploying different versions of celery and kombu but can’t solve it.

This is my requirements.txt file:

If I ssh connect to the instance and type “python -c ‘import pycurl'” everything seems right, no problem there.

Does someone know how to solve it? Any help would be appreciated.

Thank you very much.


when you do

make sure that the python version is the same as python3.6,
to be sure, try:

Leave a Reply