[ckan-dev] CKAN API Problem

Nigel Babu nigel.babu at okfn.org
Fri Apr 4 10:26:34 UTC 2014


Did you recently checkout ckan 2.2 from another version of ckan? Can you
try this:

* Activate your virtualenv
* cd to /usr/lib/ckan/default/src/ckan
* Run `python setup.py develop`

Now check if you have PluginNotFound errors when you add datapusher line to
the config file.

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 4 April 2014 14:12, Vladimir Mašala <vladimirmasala at gmail.com> wrote:

>
> Yes. It exists.  Image with path and folder content included
>
> [image: Inline image 1]
>
>
>
> On Fri, Apr 4, 2014 at 10:29 AM, Nigel Babu <nigel.babu at okfn.org> wrote:
>
>> Does `/usr/lib/ckan/default/src/ckan/ckanext/datapusher` exist?
>>
>> 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 4 April 2014 13:41, Vladimir Mašala <vladimirmasala at gmail.com> wrote:
>>
>>> When i add "datapusher" to plugins site won't start and when i check
>>> ckan_default.error.log i have error  PluginNotfoundException. So i know i
>>> have to use datapuseher, but it seems something else is wrong.
>>> I am trying to enable datapusher by adding it to ckan.plugins line in my
>>> production.ini  like this  "*ckan.plugins = stats json_preview
>>> recline_preview datastore pdf_preview example_theme datapusher*"
>>>
>>> Buit it still doesn't work. Any1 ideas what did i do wrong. Log file is
>>> attached...
>>>
>>>
>>> Thnx
>>>
>>>
>>>
>>>
>>>
>>>
>>> On Fri, Apr 4, 2014 at 6:20 AM, Nigel Babu <nigel.babu at okfn.org> wrote:
>>>
>>>> Hello Vladmir,
>>>>
>>>> On CKAN 2.2, you need to *install* datapusher and *enable* the
>>>> datapusher plugin. The datapusher plugin is part of CKAN core from CKAN 2.2
>>>> onwards. You just need to add "datapusher" to your plugins in ckan.plugins
>>>> config.
>>>>
>>>> To check what you have installed, enable the virtualenv with `source
>>>> /usr/lib/ckan/default/bin/activate` and then run `pip freeze`. Again, you
>>>> don't need to install the datapusher plugin separately, it's already part
>>>> of CKAN 2.2
>>>>
>>>> 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 2 April 2014 12:51, Vladimir Mašala <vladimirmasala at gmail.com>wrote:
>>>>
>>>>> Hi,
>>>>>
>>>>> We am trying to get dataset data (i mean real data not dataset
>>>>> decription) via api. I have found sample for datastore api which gives me
>>>>>  what i need
>>>>> http://demo.ckan.org/api/action/datastore_search?resource_id=d81037dc-6fb8-46f9-a79a-2d447bc2b12b
>>>>> .
>>>>>
>>>>> We have instaled ckan from package (it said it version is 2.0.4) and
>>>>> then upgrade it to 2.2. So if i check site (
>>>>> http://data.zagreb.hr/api/util/status) and it says it is running 2.2..
>>>>> Datastore is installed and configured, and i think it is working
>>>>> fine.. but when i try to find something in data store. I have dataset
>>>>> called vrtici and rest api shows it
>>>>> http://ckan-gradzagreb.cloudapp.net/api/rest/dataset/vrtici .
>>>>> When i try searching datastore, no result
>>>>> http://ckan-gradzagreb.cloudapp.net/en/api/action/datastore_search?resource_id=e957cf04-8db9-4216-a4ab-d13416503f3c.
>>>>>  It seems there is no data in data store so i decided to install datapusher.
>>>>>
>>>>> Then i run into problems. I was following instructions from here
>>>>> http://docs.ckan.org/projects/datapusher/en/latest/ and because i am
>>>>> using version 2.2 i put in plugins datapusher, but then i get
>>>>> PluginNotFoundException when i put datapusherext in plugins then i get
>>>>>
>>>>> "
>>>>> [Tue Apr 01 14:09:45 2014] [error] [client 213.147.108.66]
>>>>> AttributeError: 'instancemethod' object has no attribute 'auth_audit_exempt'
>>>>> [Tue Apr 01 14:16:13 2014] [error] Exception AttributeError:
>>>>> "'NoneType' object has no attribute 'clearing'" in <bound method
>>>>> PluginEnvironment.__del__ of  Services for Environment '<default>'
>>>>> [Tue Apr 01 14:16:13 2014] [error] > ignored
>>>>> Error opening file for reading: Permission denied
>>>>> "
>>>>>
>>>>> I have found one answer here
>>>>> http://ckan.readthedocs.org/en/latest/changelog.html it seems i am
>>>>> using plugin for version 2.1 datapusherext and they don't work with 2.2, so
>>>>> it seems i have to user datapusher. But i don't know how to install it or
>>>>> if installed it correctly...
>>>>> Do i have to unstall datapusherext or what?
>>>>> How can i check what do i have installed?
>>>>> Do i have to install datapusher plugin? Where it should be instaled?
>>>>>
>>>>>
>>>>> Thank you for help
>>>>>
>>>>> _______________________________________________
>>>>> 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
>>>
>>>
>>
>> _______________________________________________
>> 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/20140404/5e6b6901/attachment-0003.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image.png
Type: image/png
Size: 34641 bytes
Desc: not available
URL: <http://lists.okfn.org/pipermail/ckan-dev/attachments/20140404/5e6b6901/attachment-0003.png>


More information about the ckan-dev mailing list