1
我想將CKAN升級到最新版本。在升級軟件包之前,我想備份所有內容。我使用以下作爲我的參考。 http://docs.ckan.org/en/ckan-1.4.3/upgrade.html。使用貼片進行備份失敗CKAN
另一位dev安裝了CKAN,他不在團隊中。 CKAN正在運行,我只是試圖將軟件升級到更新的版本。任何幫助將不勝感激。
以下是我在執行paster命令(我自己或root)時收到的錯誤。
paster --plugin=ckan db dump demo_ckan_backup.pg_dump --config=demo.ckan.net.ini
錯誤消息
Traceback (most recent call last):
File "/usr/bin/paster", line 4, in <module>
command.run()
File "/usr/lib/python2.7/dist-packages/paste/script/command.py", line 93, in run
commands = get_commands()
File "/usr/lib/python2.7/dist-packages/paste/script/command.py", line 135, in get_commands
plugins = pluginlib.resolve_plugins(plugins)
File "/usr/lib/python2.7/dist-packages/paste/script/pluginlib.py", line 82, in resolve_plugins
pkg_resources.require(plugin)
File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 686, in require
needed = self.resolve(parse_requirements(requirements))
File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 584, in resolve
raise DistributionNotFound(req)
pkg_resources.DistributionNotFound: Not Found: ckan (did you run python setup.py develop?)
RTFM http://docs.ckan.org/en/latest/maintaining/paster.html –
您是否激活了[virtualenv](http://docs.ckan.org/en/latest/maintaining/installing/install - 從-source.html#安裝-CKAN-到-A-python的虛擬環境)? – Alex