问题
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