[ckan-dev] Plugin not found when deployed to a production server
Qifeng.Bai at csiro.au
Qifeng.Bai at csiro.au
Fri Jun 6 02:04:47 UTC 2014
Hi, there
I have created a plugin and tested on my development server, All is OK
The plugin sits in:
/home/ckan/lib/default/src/nlmpext:
->ckanext
->__init__.py
-> nlmp #this directory contain all my files
->setup.py
In setup.py, I defined two extensions
experiment_nlmp=ckanext.nlmp.plugin:NlmpExperimentPlugin
project_nlmp=ckanext.nlmp.plugin:NlmpProjectFormPlugin
I followed the guides, run python setup.py develop
And then add these two plugins into /home/ckan/set/default/development.ini
ckan.plugins = stats text_preview recline_preview project_nlmp experiment_nlmp
ALL GOOD
I have already created CKAN on window azure from VM_DEPOT, the production server also works well
I have uploaded my extension to /usr/lib/ckan/default/src/ckan/ckanext
So the directory is /usr/lib/ckan/default/src/ckan/ckanext/nlmp
->setup.py
->ckanext
->setup.py
->ckanext
->__init__.py
-> nlmp #this directory contain all my files
Then I ran: python setup.py develop
See the log, seems all good: ckanext-nlmp 0.3 is already the active version in easy-install.pth
Also I added these two extions into production.ini. However, it gave me an error:
PluginNotFoundException: project_nlmp
I am aware of there is a __init__.py under /usr/lib/ckan/default/src/ckan/ckanext/
Although I don't have this file under nlmp folder, I wonder it still mess up my namespace
Any advice is appreciated
Qifeng
[cid:image001.gif at 01CC55BF.85E7FEB0]
Qifeng Bai
Software Engineer
CSIRO Land and Water
Black Mountain, Canberra
Ph: +61-2-62465704
Web: www.clw.csiro.au
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.okfn.org/pipermail/ckan-dev/attachments/20140606/fa1677fd/attachment-0002.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image001.gif
Type: image/gif
Size: 2094 bytes
Desc: image001.gif
URL: <http://lists.okfn.org/pipermail/ckan-dev/attachments/20140606/fa1677fd/attachment-0002.gif>
More information about the ckan-dev
mailing list