我正在尝试在Ubuntu终端中安装kitsune。我无法初始化数据库。当我给出命令./manage.py syncdb --migrate时,出现以下错误

错误:尝试导入“ settings_local.py”和“ settings.py”,但均未找到(或者它们引发了ImportError)。请返回,稍后再试。跟踪(最近一次通话过去):

  File "./manage.py", line 30, in <module>
    from kitsune import settings  # Assumed to be in the same directory.
  File "/home/user/kitsune/kitsune/settings.py", line 740, in <module>
    import djcelery
  File "/usr/local/lib/python2.7/dist-packages/djcelery/__init__.py", line 22, in <module>
    from celery import current_app as celery  # noqa
  File "/usr/local/lib/python2.7/dist-packages/celery/five.py", line 307, in __getattr__
    module = __import__(self._object_origins[name], None, None, [name])
  File "/usr/local/lib/python2.7/dist-packages/celery/_state.py", line 20, in <module>
    from celery.utils.threads import LocalStack
  File "/usr/local/lib/python2.7/dist-packages/celery/utils/__init__.py", line 24, in
<module>
    from celery.exceptions import CPendingDeprecationWarning, CDeprecationWarning
  File "/usr/local/lib/python2.7/dist-packages/celery/exceptions.py", line 13, in <module>
    from billiard.exceptions import (  # noqa

ImportError: No module named exceptions


我在台球中找不到例外文件。如何解决此错误?

最佳答案

我在面料上遇到此错误。错误消息是相同的:


  ImportError:没有名为异常的模块


原来是我的布料已经过时了。通过使用以下方式将结构升级到最新版本(1.10)解决了该错误:


  $ sudo pip install fabric-升级


供您参考,我正在使用Python 2.7.3运行64位Ubuntu 12.04。

关于exception - ImportError:没有名为异常的模块,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/20933905/

10-10 19:10