我已经安装了 CKAN 实例并且安装了 ckanext-showcase 模块。 尽管安装没有引发任何错误,并且当我设置为展示管理员的一些用户开始添加展示时,我能够添加一些展示,但该模块已停止工作。
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,有什么建议可以解决这个问题吗?
任何帮助将不胜感激
最佳答案
查看服务器错误日志后,我发现该错误不是由插件 ckanext-showcase 引起的,而是由模块 ckanext-datarequests 引起的。 我的问题的第一部分与插件版本 1.0.2 未处理的 401 Unauthorized 异常有关的服务器错误有关。当我升级到最新版本 1.0.3 后,错误就被修复了。
关于python - 连接到 ckanext-showcase 的 CKAN 中的站点包错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/44803070/