CKAN plugin dev mode and paster command error

Hi all,

I have 2 plugin in dev mode :

1 for theming our ckan

1 for geo_view (beacause git repo is up2date against plugin pip release)

When I run a paster command :

paster --plugin=ckan tracking update -c /etc/ckan/default/production.ini

I get

ckan.plugins.core.PluginNotFoundException: geo_view

ckan.plugins.core.PluginNotFoundException: cd67_theme

So my question: what’s the way to deal with plugin in dev mode and paster command?

(may be I misunderstood ckan production and dev mode ?)

Thanks

Sylvain

Are you sure you are using dev mode? The configuration file in development mode is usually called development.ini, but the paster command you are using is referencing production.ini.

Tkanks herrmann, it’s the key point!
I’m working on a production env. So the question is what’s the right way to install an extension like geoview obtain by git command?
Is it:
sudo python setup.py install
Instead of:
sudo python setup.py develop

Or an other word: what’s the way to pass an exytension between dev and prod env? (which will be the case for owr for theming extension)
Sylvain

You shouldn’t need to use sudo. You create a Python virtual environment (python -m venv env), activate it (source env/bin/activate) and then use it to install everything.

I’m not sure what is the current best practice to develop and deploy CKAN extensions, as I haven’t done so in a long time. Please check out CKAN’s Extending Guide. If you still have questions, you might want to ask about it on CKAN’s Gitter channel or the ckan-dev mailing list too, if you don’t get a reply here.