ckan.plugins.core.PluginNotFoundException: pages

你离开我真会死。 提交于 2019-12-11 02:49:18

问题


I'm using CKAN as my open data portal. It's written in Python using Pylons framework. I just want to add a new page similar to about page to display the terms and conditions to the users. About page comes built in.

So I installed ckanext-pages using pip command. What I did was below

1. # Activate your CKAN virtual environment
. /usr/lib/ckan/default/bin/activate

2. # Install the pages extension.
pip install -e 'git+https://github.com/ckan/ckanext-pages.git#egg=ckanext-pages'

But now I end up with below error which is given when a requested plugin cannot be found.

ckan.plugins.core.PluginNotFoundException: pages

Plugin resides on below path

/usr/lib/ckan/default/src

Please let me know how to fix this?


回答1:


With your virtualenv activated, run python setup.py develop in the ckanext-pages folder. This will register the plugin so CKAN can find it.




回答2:


had similar issue. Double-check which paster you are using by command:

which paster

it must show you paster from your current virtualenv, which was /usr/lib/ckan/default in your case



来源:https://stackoverflow.com/questions/22038591/ckan-plugins-core-pluginnotfoundexception-pages

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!