2011-03-06 72 views
0

嘿傢伙 我是Python的新手,我想在我的VPS上安裝這個名爲mirosubs的python應用程序,並且我在這個github頁面中遵循安裝指南,當我到達步驟8:設置python應用程序的問題

python manage.py syncdb 

我得到了以下錯誤:

[email protected]:/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 

任何人都可以告訴我怎麼解決這個問題?

回答

0

模塊haystack正試圖導入名爲Thumbnail的類型,但找不到它。通過Thumbnail的源搜索並嘗試確定發生了什麼。

+0

我覺得乾草堆和縮略圖都安裝正確,我對python瞭解不多,而且我也不知道源代碼 – mko 2011-03-06 13:06:30

+0

@yoz有什麼問題,但實際上並沒有自己下載源代碼並查看代碼,我無法進一步提供幫助。嘗試查看安裝說明並查看是否有錯誤。查看requirements.txt文件,確保sorl-thumbnail-3.2.5.tar.gz已正確安裝。 – 2011-03-06 21:54:09