运行Celery时出现“ImportError:没有名为exception的模块”

时间:2012-10-11 21:32:30

标签: python celery importerror

我正在尝试运行使用Celery的Django应用程序,但是我收到以下错误:

    import djcelery
  File "/Library/Python/2.7/site-packages/djcelery/__init__.py", line 25, in <module>
    from celery import current_app as celery  # noqa
  File "/Library/Python/2.7/site-packages/celery/__compat__.py", line 135, in __getattr__
    module = __import__(self._object_origins[name], None, None, [name])
  File "/Library/Python/2.7/site-packages/celery/_state.py", line 18, in <module>
    from celery.utils.threads import LocalStack
  File "/Library/Python/2.7/site-packages/celery/utils/__init__.py", line 24, in <module>
    from celery.exceptions import CPendingDeprecationWarning, CDeprecationWarning
  File "/Library/Python/2.7/site-packages/celery/exceptions.py", line 15, in <module>
    from billiard.exceptions import ( # noqa
ImportError: No module named exceptions

安装了billiard并且exceptions模块确实存在,我可以通过Python的交互式提示导入billiard.exceptions而不会出现问题。似乎芹菜未能进口台球。有什么想法吗?

0 个答案:

没有答案