0
編碼非常新穎。我一直在試圖安裝這個tablestacker:http://datadesk.github.io/latimes-table-stacker/ 而我遇到了manage.py syncdb的問題,並且我無法克服這個特定的錯誤。我的預感是:我的電腦上同時安裝了Python 2.6和2.7,而且我不確定如何確保一切運行於2.7。我感覺2.6版本正在安裝。運行manage.py後,無法通過Django ImportError sync.db
任何意見是非常感謝!提前致謝。
這是我的錯誤:
Traceback (most recent call last):
File "manage.py", line 14, in <module>
execute_manager(settings)
File "/usr/local/Cellar/python/2.7.2/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/Django-1.4.5-py2.7.egg/django/core/management/__init__.py", line 459, in execute_manager
utility.execute()
File "/usr/local/Cellar/python/2.7.2/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/Django-1.4.5-py2.7.egg/django/core/management/__init__.py", line 382, in execute
self.fetch_command(subcommand).run_from_argv(self.argv)
File "/usr/local/Cellar/python/2.7.2/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/Django-1.4.5-py2.7.egg/django/core/management/__init__.py", line 261, in fetch_command
klass = load_command_class(app_name, subcommand)
File "/usr/local/Cellar/python/2.7.2/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/Django-1.4.5-py2.7.egg/django/core/management/__init__.py", line 69, in load_command_class
module = import_module('%s.management.commands.%s' % (app_name, name))
File "/usr/local/Cellar/python/2.7.2/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/Django-1.4.5-py2.7.egg/django/utils/importlib.py", line 35, in import_module
__import__(name)
File "/usr/local/Cellar/python/2.7.2/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/South-0.7.6-py2.7.egg/south/management/commands/__init__.py", line 10, in <module>
import django.template.loaders.app_directories
File "/usr/local/Cellar/python/2.7.2/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/Django-1.4.5-py2.7.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 bakery: No module named bakery
看起來它是在一個缺少的「麪包店」進口窒息。有沒有一個名爲麪包店的模塊? –
謝謝,我爲pip2.7製作了一個別名,並且寫了pip-2.7安裝而不是pip安裝,並且這次同步了。當然,現在有「遷移」的錯誤,所以接下來就是了。它說:「不同步(使用遷移): - table_stacker (使用./manage.py遷移到遷移這些)感謝您抽空看看 – piao1780
做麪包已'__init __ py' – karthikr