[ckan-dev] Python 2.7 and CKAN 2.5
Alex Palcuie
alex.palcuie at gmail.com
Tue Apr 5 11:52:49 UTC 2016
As far as I know, the ckanclient package is not maintained and you
should use the ckanapi[0] package that is now recommended. Here is the
guide for what you want to do[1].
[0]: https://github.com/ckan/ckanapi
[1]: http://docs.ckan.org/en/latest/api/index.html#example-importing-datasets-with-the-ckan-api
Alex
On Mon, Apr 4, 2016 at 11:18 PM, Hong Jing <jenny.jing at nyu.edu> wrote:
> Hi, All:
>
>
>
> I found this page about loading data into CKAN(
> http://docs.ckan.org/en/ckan-1.7.1/loading-data.html )
>
> - Import Data with the CKAN API. You can use the CKAN API to script
> import. To simplify matters, we offer provide standard loading scripts for
> Google Spreadsheets, CSV and Excel.
>
> But I got some error message while I was running python after install
> ckan2.5:
>
> pip install ckan
>
> then just running python
>
> computer:~ shellu$ python
>
> I get the following error:
>
> Error processing line 2 of
> /usr/local/Cellar/python/2.7.9/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/ckan-2.5.2-py2.7-nspkg.pth:
>
>
>
> Traceback (most recent call last):
>
> File
> "/usr/local/Cellar/python/2.7.9/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site.py",
> line 152, in addpackage
>
> exec line
>
> File "<string>", line 1, in <module>
>
> KeyError: 'ckanext'
>
>
>
> Remainder of file ignored
>
> Error processing line 2 of
> /usr/local/lib/python2.7/site-packages/ckan-2.5.2-py2.7-nspkg.pth:
>
>
>
> Traceback (most recent call last):
>
> File
> "/usr/local/Cellar/python/2.7.9/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site.py",
> line 152, in addpackage
>
> exec line
>
> File "<string>", line 1, in <module>
>
> KeyError: 'ckanext'
>
>
>
> Remainder of file ignored
>
> Python 2.7.9 (default, Jan 7 2015, 11:49:12)
>
> [GCC 4.2.1 Compatible Apple LLVM 6.0 (clang-600.0.56)] on darwin
>
> Type "help", "copyright", "credits" or "license" for more information.
>
>>>>
>
> KeyboardInterrupt
>
>>>>
>
>
>
> Does anyone have any idea what might cause the problem?
>
>
>
> Thanks.
>
>
>
> Jenny
>
> -----------------------------------------------------------
>
> Research Information Scientist,
>
> Center for Urban Science + Progress, NYU
>
> https://datahub.cusp.nyu.edu/
>
>
>
> 646-997-0519
>
>
>
>
> _______________________________________________
> 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
>
More information about the ckan-dev
mailing list