[ckan-dev] problem using datapkg: AttributeError: 'list' object has no attribute 'get'
Lucy Chambers
lucy.chambers at okfn.org
Tue Sep 27 12:33:08 UTC 2011
Hi Thomas,
CC'ing CKAN dev.
Many thanks,
Lucy
On Tue, Sep 27, 2011 at 1:30 PM, Thomas Klausner <tk at giga.or.at> wrote:
> Hi!
>
> I'm currently packaging datapkg-0.8 for pkgsrc.
> I'm using python-2.7.2 and ckanclient-0.9.
>
> I run:
> # datapkg init config
> # datapkg search ckan:// military
> cow -- Correlates of War
> sipri -- Stockholm International Peace Research Institute (SIPRI) Databases
> us-gov-images -- U.S. Government Photos and Graphics
> us-usaid -- USAID Development Experience Clearinghouse
> # datapkg download ckan:// cow
> CRITICAL:datapkg.cli:Exception:
> Traceback (most recent call last):
> File "/usr/pkg/lib/python2.7/site-packages/datapkg/cli/base.py", line 171,
> in main
> self.run(options, args)
> File "/usr/pkg/lib/python2.7/site-packages/datapkg/cli/download.py", line
> 55, in run
> pkg = index.get(path)
> File "/usr/pkg/lib/python2.7/site-packages/datapkg/index/ckan.py", line
> 71, in get
> pkg = self.cvt_to_pkg(package_dict)
> File "/usr/pkg/lib/python2.7/site-packages/datapkg/index/ckan.py", line
> 106, in cvt_to_pkg
> name = ckan_pkg_dict.get('name', None)
> AttributeError: 'list' object has no attribute 'get'
>
> Suggestions?
>
> Thanks,
> Thomas
>
--
Lucy Chambers
Community Coordinator
Open Knowledge Foundation
http://okfn.org/
Skype: lucyfediachambers
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.okfn.org/pipermail/ckan-dev/attachments/20110927/653e8a31/attachment.html>
More information about the ckan-dev
mailing list