[ckan-dev] Extension not working
Pabitra Dash
pkdash_reena at hotmail.com
Fri Feb 7 04:15:24 UTC 2014
Thanks Nigel for the suggestions. I ran the "pip freeze" command but it did not list any of my extensions. I usually follow the same commands as you have suggested here to install an extension. However, I tried to go through the installation process again.
Here is the output:
Do you see anything wrong from the above output?
I did restart the apache after the above installation. Still it is not picking up the extension.
Pabitra
From: nigel.babu at okfn.org
Date: Fri, 7 Feb 2014 08:50:15 +0530
To: ckan-dev at lists.okfn.org
Subject: Re: [ckan-dev] Extension not working
Hi Pabitra,
Did you install the plugin globally accidentally instead of the ckan virtualenv? Can you try the following and check if your plugin is listed there?
source /usr/lib/ckan/default/bin/activate
pip freeze
If it's not there, that means you installed it globally and that's why ckan can't find it. To install it locally try the following:
# Be root first, so that all the commands afterward are in your virtualenv
sudo su
source /usr/lib/ckan/default/bin/activate
cd /usr/lib/ckan/default/src/<plugin folder>
python setup.py develop
After this try an apache restart and see if it's picked up the plugins.
Nigel Babu
Developer | @nigelbabu
The Open Knowledge Foundation
Empowering through Open Knowledge
http://okfn.org/ | @okfn | OKF on Facebook | Blog | Newsletter
CKAN | http://ckan.org/ | @CKANproject | the world’s leading open-source data portal platform
On 6 February 2014 19:04, PK <pkdash_reena at hotmail.com> wrote:
I have done all of that. It still does not work.
Pabitra
--- Original Message ---
From: "Jesús Redondo" <redondogarciajesus at gmail.com>
Sent: February 6, 2014 12:41 AM
To: "CKAN Development Discussions" <ckan-dev at lists.okfn.org>
Subject: Re: [ckan-dev] Extension not working
Hello Pabitra,
To install a plugin you have to copy the files in the machine, modify the production.ini AND ALSO install the extension/plugin. To do it go to the folder of the extension (the folder where the setup.py file is) and run this command:
sudo python setup.py develop
Hope it helps,
Jesús Redondo.
On Thu, Feb 6, 2014 at 8:00 AM, Pabitra Dash
<pkdash_reena at hotmail.com> wrote:
Hi All,
I have developed couple of extensions and never had any problem in deploying to the production server. I did try to installation a new extension today on my production server that works on my dev machine but doesn't work on the production server. I am suppose
to see a new menu option as part on this new extension and I don't see that. To test I changed the extension name in the production.ini and I got an expected error (PlugInNotFoundError). I have restarted the apache and nginx. I am running CKAN 2.1.
Any help to sort this out be appreciated.
Thanks,
Pabitra
_______________________________________________
ckan-dev mailing list
ckan-dev at lists.okfn.org
https://lists.okfn.org/mailman/listinfo/ckan-dev
Unsubscribe:
https://lists.okfn.org/mailman/options/ckan-dev
_______________________________________________
ckan-dev mailing list
ckan-dev at lists.okfn.org
https://lists.okfn.org/mailman/listinfo/ckan-dev
Unsubscribe: https://lists.okfn.org/mailman/options/ckan-dev
_______________________________________________
ckan-dev mailing list
ckan-dev at lists.okfn.org
https://lists.okfn.org/mailman/listinfo/ckan-dev
Unsubscribe: https://lists.okfn.org/mailman/options/ckan-dev
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.okfn.org/pipermail/ckan-dev/attachments/20140206/7db883a8/attachment-0003.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ckan_plugin_installation_output.png
Type: image/png
Size: 159507 bytes
Desc: not available
URL: <http://lists.okfn.org/pipermail/ckan-dev/attachments/20140206/7db883a8/attachment-0003.png>
More information about the ckan-dev
mailing list