CKAN中的站点包错误连接到ckanext-showcase

时间:2017-06-28 12:52:38

标签: python ckan

我已经安装了CKAN实例,并且我安装了ckanext-showcase模块。 虽然安装没有引起任何错误,但是当我设置为展示管理员的一些用户开始添加showcases时,我能够添加一些展示,模块已停止工作。

The page {portal.url/showcase} can't be viewed unless I am connected as system administrator. When a user or even a showcase user tries to enter the page get's an internal server error.

From that point on when I am trying to create a new system administrator from console with the paster command (http://docs.ckan.org/en/latest/maintaining/getting-started.html#create-admin-user) I get the bellow message
Traceback (most recent call last):
File "/usr/lib/ckan/default/lib/python2.7/site.py", line 703, in
main()
File "/usr/lib/ckan/default/lib/python2.7/site.py", line 683, in main
paths_in_sys = addsitepackages(paths_in_sys)
File "/usr/lib/ckan/default/lib/python2.7/site.py", line 282, in addsitepackages
addsitedir(sitedir, known_paths)
File "/usr/lib/ckan/default/lib/python2.7/site.py", line 204, in addsitedir
addpackage(sitedir, name, known_paths)
File "/usr/lib/ckan/default/lib/python2.7/site.py", line 173, in addpackage
exec(line)
File "", line 1, in
KeyError: 'ckanext'

因为我现在无法再次安装CKAN,是否有任何关于如何解决这个问题的建议?

非常感谢任何帮助

1 个答案:

答案 0 :(得分:1)

在查看我的服务器错误日志后,我发现该错误不是由插件ckanext-showcase引起的,而是来自模块ckanext-datarequests。 我的问题的第一部分与一个服务器错误有关,该错误来自401 Unauthorized异常未在插件的1.0.2版处理。一旦我升级到最新版本1.0.3,错误就得到了解决。