Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

celery 3.0 causes import error (cannot import abbrtools from celery.utils) #538

Closed
guzru opened this issue Jul 9, 2012 · 4 comments
Closed

Comments

@guzru
Copy link

guzru commented Jul 9, 2012

Release of celery 3.0 causes an import error at runtime upon any request.

This is the stack trace:

ImportError: cannot import name abbrtask
Error handling request
Traceback (most recent call last):
  File "/Users/guzru/dev/django14/lib/python2.7/site-packages/gunicorn/workers/sync.py", line 107, in handle_request
    for item in respiter:
  File "/Users/guzru/dev/django14/lib/python2.7/site-packages/raven/middleware.py", line 28, in __call__
    for event in self.application(environ, start_response):
  File "/Users/guzru/dev/django14/lib/python2.7/site-packages/django/core/handlers/wsgi.py", line 241, in __call__
    response = self.get_response(request)
  File "/Users/guzru/dev/django14/lib/python2.7/site-packages/django/core/handlers/base.py", line 179, in get_response
    response = self.handle_uncaught_exception(request, resolver, sys.exc_info())
  File "/Users/guzru/dev/django14/lib/python2.7/site-packages/django/core/handlers/base.py", line 224, in handle_uncaught_exception
    if resolver.urlconf_module is None:
  File "/Users/guzru/dev/django14/lib/python2.7/site-packages/django/core/urlresolvers.py", line 323, in urlconf_module
    self._urlconf_module = import_module(self.urlconf_name)
  File "/Users/guzru/dev/django14/lib/python2.7/site-packages/django/utils/importlib.py", line 35, in import_module
    __import__(name)
  File "/Users/guzru/dev/django14/lib/python2.7/site-packages/sentry/conf/urls.py", line 19, in <module>
    admin.autodiscover()
  File "/Users/guzru/dev/django14/lib/python2.7/site-packages/django/contrib/admin/__init__.py", line 29, in autodiscover
    import_module('%s.admin' % app)
  File "/Users/guzru/dev/django14/lib/python2.7/site-packages/django/utils/importlib.py", line 35, in import_module
    __import__(name)
  File "/Users/guzru/dev/django14/lib/python2.7/site-packages/djcelery/admin.py", line 19, in <module>
    from celery.utils import abbrtask
ImportError: cannot import name abbrtask

Requirements line for celery should become:

celery>=2.5.3,<3.0.0

dcramer added a commit that referenced this issue Jul 10, 2012
@alex
Copy link
Contributor

alex commented Jul 13, 2012

Are you going to do a release with this? ATM a fresh pip install sentry is totally borked.

@faulkner
Copy link
Contributor

Until that happens pip install sentry "celery<3.0" should work as a workaround.

@teon
Copy link

teon commented Jul 14, 2012

I have the same error. Downgrading celery helped.

@faulkner
Copy link
Contributor

@dcramer, is there a reason django-celery is pinned at <3.0? Looks like this can also be fixed by bumping django-celery to 3.0.1 or higher, which removes the need to pin celery itself.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants