ask/celery — Issue #534: UUID ImportError after upgrading to Celery 2.4
Author: erikcw
Created: 2011-11-10 21:26:48+00:00
State: open

I just upgraded to Celery 2.4 and now if I try to import one of my tasks into ipython I get this exception.

```python

/home/project/project_env/project/reports/tasks.py in ()
----> 2 from celery.task import periodic_task
3 from celery.decorators import task
4 from datetime import timedelta
5 from django.conf import settings
6 from django.template import loader, Context

/home/project/project_env/lib/python2.6/site-packages/celery/task/__init__.py in ()
17 from ..exceptions import CDeprecationWarning
18
---> 19 from .base import Task, PeriodicTask # noqa
20 from .sets import TaskSet, subtask # noqa
21 from .chords import chord # noqa

/home/project/project_env/lib/python2.6/site-packages/celery/task/base.py in ()
13
14 from .. import current_app
---> 15 from ..app.task import Context, TaskType, BaseTask # noqa
16 from ..schedules import maybe_schedule
17 from ..utils import deprecated, timeutils

/home/project/project_env/lib/python2.6/site-packages/celery/app/task/__init__.py in ()
21 from ...registry import tasks, _unpickle_task
22 from ...result import EagerResult
---> 23 from ...utils import fun_takes_kwargs, mattrgetter, uuid
24 from ...utils.mail import ErrorMail
25

ImportError: cannot import name uuid
```