我正在尝试在 ubuntu 终端中安装 Kitsune。我无法初始化数据库。当我给出命令./manage.py syncdb --migrate 时,我收到以下错误
错误:尝试导入"settings_local.py"和"settings.py",但都找不到(或者它们抛出导入错误)。请稍后再来试。回溯(最近一次调用):
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
我在台球中找不到异常文件。如何修复此错误?
我在织物上遇到了这个错误。错误消息是相同的:
导入错误:没有命名异常的模块
原来是我的面料过时了。该错误已通过以下方式将结构升级到最新版本 (1.10) 得到解决:
$ 须藤点安装结构 --升级
供您参考,我正在运行带有Python 12.04 64位的Ubuntu 2.7.3
例外应该是名为台球的目录中的python文件,例如,您创建一个名为 exceptions.py 的文件并添加所需的类和方法..这可以解决此问题。
您应该遵循 http://kitsune.readthedocs.org/en/latest/hacking_howto.html 中所述的狐狸安装过程有一个链接指向有关供应商包 http://kitsune.readthedocs.org/en/latest/vendor.html#vendor-chapter 的单独章节。您应该安装狐狸所需的所有供应商软件包,包括台球和芹菜(您的错误)。