[ckan-dev] Extension not working

Nigel Babu nigel.babu at okfn.org
Fri Feb 7 03:20:15 UTC 2014


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 <https://twitter.com/nigelbabu>

The Open Knowledge Foundation <http://okfn.org/>

Empowering through Open Knowledge

http://okfn.org/  |  @okfn <http://twitter.com/OKFN>  |  OKF on
Facebook<https://www.facebook.com/OKFNetwork> |
Blog <http://blog.okfn.org/>  |  Newsletter<http://okfn.org/about/newsletter>

 CKAN | http://ckan.org/ | @CKANproject
<http://twitter.com/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
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.okfn.org/pipermail/ckan-dev/attachments/20140207/7f185ed7/attachment-0003.html>


More information about the ckan-dev mailing list