[ckan-dev] API upload failing

Hendrik Bunke bunke.hendrik at gmail.com
Wed Jul 17 07:41:33 UTC 2013


You're right about the confusing version number. The PyPi package
should be updated asap. However, ckanclient seems a bit abandoned,
which might be due to the new client, that uses API version 3
(https://github.com/open-data/ckanapi). For future projects I'd rather
use that one.

regards
hendrik

On Wed, Jul 17, 2013 at 3:59 AM, Sean <sean at ivec.org> wrote:
> Hi,
>
> ok, my bad - I just followed the download tgz link from github and installed
> that (which had the same problem.)
>
> However, cloning directly did indeed work - thanks.
>
> Sorry for the confusion - the fact that all versions seem to be called 0.10
> made things a little difficult to figure out.
>
> Cheers.
>
> Sean Fleming
> Research Data Specialist
>
> iVEC, http://www.ivec.org
> sean at ivec.org
>
> +61 8 6436 8918
>
>
>
> On 16/07/2013, at 3:47 PM, Hendrik Bunke <bunke.hendrik at gmail.com> wrote:
>
> --On 2013-07-16 10:42, Sean wrote:
>
> Hey guys,
>
> any ideas on this? It's a little frustrating - given I don't know enough
> about CKAN to debug this properly.
>
> This is my entire script:
>
> =======
>
> ckan = ckanclient.CkanClient(base_location='http://localhost/api',
> api_key='my_pasword')
>
> status = ckan.upload_file('/home/sean/newfile.txt')
>
> print "uploaded file status: ", status
>
> =======
>
> Which gives:
> uploaded file status:  ('', 'Found')
>
> =======
>
>
> Hi,
>
> as I said before you're obviously using the old PyPi version of
> ckanclient (I just did a test and it exactly showed the behaviour
> you described). Please clone
> https://github.com/okfn/ckanclient.git and make sure that your
> Python env really uses that one.
>
> regards
> hendrik
>
> --
> Dr. Hendrik Bunke
> http://gplus.to/hbunke
> http://twitter.com/hbunke
> http://www.hbxt.org
>
> _______________________________________________
> ckan-dev mailing list
> ckan-dev at lists.okfn.org
> http://lists.okfn.org/mailman/listinfo/ckan-dev
> Unsubscribe: http://lists.okfn.org/mailman/options/ckan-dev
>
>
>
> _______________________________________________
> ckan-dev mailing list
> ckan-dev at lists.okfn.org
> http://lists.okfn.org/mailman/listinfo/ckan-dev
> Unsubscribe: http://lists.okfn.org/mailman/options/ckan-dev
>



-- 
Dr. Hendrik Bunke
http://gplus.to/hbunke
http://twitter.com/hbunke
http://www.hbxt.org




More information about the ckan-dev mailing list