Guilherme Ribeiro de Souza Guilherme Ribeiro de Souza - 5 months ago 256
Python Question

ImportError: No module named timeutils

I trying to follow tutorial install of django-celery. After install i need run migrate to make the necessary tables but appears that error:

Traceback (most recent call last):
File "", line 10, in <module>
File "/home/guilherme/.virtualenvs/martizi-api/local/lib/python2.7/site-packages/django/core/management/", line 353, in execute_from_command_line
File "/home/guilherme/.virtualenvs/martizi-api/local/lib/python2.7/site-packages/django/core/management/", line 327, in execute
File "/home/guilherme/.virtualenvs/martizi-api/local/lib/python2.7/site-packages/django/", line 18, in setup
File "/home/guilherme/.virtualenvs/martizi-api/local/lib/python2.7/site-packages/django/apps/", line 108, in populate
File "/home/guilherme/.virtualenvs/martizi-api/local/lib/python2.7/site-packages/django/apps/", line 202, in import_models
self.models_module = import_module(models_module_name)
File "/usr/lib/python2.7/importlib/", line 37, in import_module
File "/home/guilherme/.virtualenvs/martizi-api/local/lib/python2.7/site-packages/djcelery/", line 15, in <module>
from celery.utils.timeutils import timedelta_seconds
ImportError: No module named timeutils

im not finding anything about this timeutils on web

im using:




It appears that django-celery==3.1.17 does not work with newer versions of celery (see this github issue).

If it is acceptable to you to use an earlier version of celery, you can uninstall your current version, install a specific older version, and django-celery should work again. For example:

$ pip uninstall celery
$ pip install celery==3.1

should get things working again until django-celery supports a newer version of celery.