使用贴纸来备份CKAN时失败

时间:2016-03-21 15:17:51

标签: ckan paster

我想将CKAN升级到它的最新版本。在升级软件包之前,我想备份所有内容。我使用以下作为参考。 http://docs.ckan.org/en/ckan-1.4.3/upgrade.html

另一个开发安装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?)

1 个答案:

答案 0 :(得分:0)

您可以尝试转到:

/usr/lib/ckan/default/src/ckan

然后再试一次。