设置python应用程序的问题

时间:2011-03-06 09:55:44

标签: python django-haystack

嘿伙计们 我是Python新手,我想在我的VPS上安装这个名为mirosubs的python应用程序,当我进入第8步时,我按照这个github页面中的安装指南进行操作:

python manage.py syncdb

我收到以下错误:

root@makserver:/usr/local/src/mirosubs# python manage.py syncdb
Traceback (most recent call last):
  File "manage.py", line 35, in <module>
    execute_manager(settings)
  File "/usr/local/lib/python2.6/dist-packages/Django-1.2.5-py2.6.egg/django/core/management/__init__.py", line 438, in execute_manager
    utility.execute()
  File "/usr/local/lib/python2.6/dist-packages/Django-1.2.5-py2.6.egg/django/core/management/__init__.py", line 379, in execute
    self.fetch_command(subcommand).run_from_argv(self.argv)
  File "/usr/local/lib/python2.6/dist-packages/Django-1.2.5-py2.6.egg/django/core/management/__init__.py", line 261, in fetch_command
    klass = load_command_class(app_name, subcommand)
  File "/usr/local/lib/python2.6/dist-packages/Django-1.2.5-py2.6.egg/django/core/management/__init__.py", line 67, in load_command_class
    module = import_module('%s.management.commands.%s' % (app_name, name))
  File "/usr/local/lib/python2.6/dist-packages/Django-1.2.5-py2.6.egg/django/utils/importlib.py", line 35, in import_module
    __import__(name)
  File "/usr/local/lib/python2.6/dist-packages/South-0.7.3-py2.6.egg/south/management/commands/__init__.py", line 10, in <module>
    import django.template.loaders.app_directories
  File "/usr/local/lib/python2.6/dist-packages/Django-1.2.5-py2.6.egg/django/template/loaders/app_directories.py", line 23, in <module>
    raise ImproperlyConfigured('ImportError %s: %s' % (app, e.args[0]))
django.core.exceptions.ImproperlyConfigured: ImportError haystack: cannot import name Thumbnail

任何人都可以告诉我如何解决这个问题?

1 个答案:

答案 0 :(得分:0)

模块haystack正在尝试导入名为Thumbnail的类型但无法找到它。搜索Thumbnail的来源并尝试确定发生了什么。