Reputation: 37
Encoutered this error message while following directions from this guide:
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/home/user/celery/tasks.py", line 1, in <module> from celery import Celery
ImportError: No module named 'celery'`
I was using a virtual environment with celery installed.
My commands goes like this:
#ran the celery app
$ source venv/bin/activate
$ celery -A tasks worker --loglevel=info
#then on another terminal
$ source venv/bin/activate
$ python
$ from tasks import add'
Did I miss something here?
Upvotes: 1
Views: 4182
Reputation: 37
It seems that celery 3.1 is not compatible with Python 3.4.3
I switched to using Python 2.7.3, now the import works
Upvotes: 1