[ckan-dev] API upload failing

Hendrik Bunke bunke.hendrik at gmail.com
Tue Jul 16 07:47:35 UTC 2013


--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




More information about the ckan-dev mailing list