[ckan-dev] API upload failing
Sean
sean at ivec.org
Wed Jul 17 01:59:11 UTC 2013
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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.okfn.org/pipermail/ckan-dev/attachments/20130717/e5d17818/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 2529 bytes
Desc: not available
URL: <http://lists.okfn.org/pipermail/ckan-dev/attachments/20130717/e5d17818/attachment-0003.bin>
More information about the ckan-dev
mailing list