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

Fix import error in python 2.5 #656

Closed
wants to merge 1 commit into from

Conversation

@yrik
Copy link
Contributor

commented Mar 31, 2012

The patch fixes this error:

Traceback (most recent call last):
  File "motloh/manage.py", line 14, in <module>
    execute_manager(settings)
  File "/home/yrik/motloh/.env/lib/python2.5/site-packages/django/core/management/__init__.py", line 459, in execute_manager
    utility.execute()
  File "/home/yrik/motloh/.env/lib/python2.5/site-packages/django/core/management/__init__.py", line 382, in execute
    self.fetch_command(subcommand).run_from_argv(self.argv)
  File "/home/yrik/motloh/.env/lib/python2.5/site-packages/django/core/management/__init__.py", line 261, in fetch_command
    klass = load_command_class(app_name, subcommand)
  File "/home/yrik/motloh/.env/lib/python2.5/site-packages/django/core/management/__init__.py", line 69, in load_command_class
    module = import_module('%s.management.commands.%s' % (app_name, name))
  File "/home/yrik/motloh/.env/lib/python2.5/site-packages/django/utils/importlib.py", line 35, in import_module
    __import__(name)
  File "/home/yrik/motloh/.env/src/djcelery/djcelery/management/commands/celeryd.py", line 10, in <module>
    from djcelery.app import app
  File "/home/yrik/motloh/.env/src/djcelery/djcelery/app.py", line 3, in <module>
    from celery.app import default_app
  File "/home/yrik/motloh/.env/src/celery/celery/app/__init__.py", line 21, in <module>
    import annotations
ImportError: No module named annotations

I've got this error on my system with latest celery from official repo.

It's connected with import command behavior in python 2.5.

@ask

This comment has been minimized.

Copy link
Contributor

commented Apr 16, 2012

Thanks! This has already been merged and released as part of 2.5.2, not sure why Github didn't detect it.

@ask ask closed this Apr 16, 2012

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants
You can’t perform that action at this time.