Question

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?

Was it helpful?

Solution

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

OTHER TIPS

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

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top