在OSX 10.9本地安裝CKAN,基於http://docs.ckan.org/en/latest/maintaining/installing/install-from-source.html。CKAN安裝:貼片錯誤
我已經創建和啓動了蟒蛇的virtualenv,現在需要創建一個CKAN配置文件:
$ paster make-config ckan /etc/ckan/default/development.ini
輸出如下(在最後一行導入錯誤):
Distribution already installed:
ckan 2.2 from ~/ckan/lib/default/src/ckan
Traceback (most recent call last):
File "/usr/lib/ckan/default/bin/paster", line 9, in <module>
load_entry_point('PasteScript==1.7.5', 'console_scripts', 'paster')()
File "/usr/lib/ckan/default/lib/python2.7/site-packages/paste/script/command.py", line 104, in run
invoke(command, command_name, options, args[1:])
File "/usr/lib/ckan/default/lib/python2.7/site-packages/paste/script/command.py", line 143, in invoke
exit_code = runner.run(args)
File "/usr/lib/ckan/default/lib/python2.7/site-packages/paste/script/appinstall.py", line 68, in run
return super(AbstractInstallCommand, self).run(new_args)
File "/usr/lib/ckan/default/lib/python2.7/site-packages/paste/script/command.py", line 238, in run
result = self.command()
File "/usr/lib/ckan/default/lib/python2.7/site-packages/paste/script/appinstall.py", line 295, in command
self.distro, self.options.ep_group, self.options.ep_name)
File "/usr/lib/ckan/default/lib/python2.7/site-packages/paste/script/appinstall.py", line 234, in get_installer
'paste.app_install', ep_name)
File "/usr/lib/ckan/default/lib/python2.7/site-packages/pkg_resources.py", line 2302, in load_entry_point
return ep.load()
File "/usr/lib/ckan/default/lib/python2.7/site-packages/pkg_resources.py", line 2029, in load
entry = __import__(self.module_name, globals(),globals(), ['__name__'])
File "~/ckan/lib/default/src/ckan/ckan/config/install.py", line 3, in <module>
from pylons.util import PylonsInstaller
ImportError: No module named pylons.util
我不確定如何繼續,有什麼想法?
沒有塔,沒有。我忽略了'pip install -r ...'中的一個錯誤,它抱怨無法獲取最新版本的argparse。我沒有意識到它已經中止了整個安裝。通過使用--allow-all-external來修復。非常感謝! – dotlineform
我得到了一個argparse錯誤,聽起來像成功,但實際上是一個錯誤停止安裝。 --allow-all-external沒有幫助 - 警告:不推薦使用,現在什麼也不做。從全局非虛擬環境中刪除argparse /usr/lib/python2.7/argparse*允許我在虛擬環境中完成pip install -r。遇到特定的argparse錯誤:「找到現有安裝:argparse 1.2.1不在/usr/lib/python2.7,外部環境/ usr/lib/ckan/default下卸載argparse」,最後是「成功安裝了argparse-1.4.0」(成功?否:pip freeze沒有任何反駁) –