[ckan-dev] Python 2.7 and CKAN 2.5

Hong Jing jenny.jing at nyu.edu
Mon Apr 4 20:18:34 UTC 2016


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*
<http://docs.ckan.org/en/ckan-1.7.1/loading-data.html#load-data-api>. You
can use the CKAN API <http://docs.ckan.org/en/ckan-1.7.1/api.html> 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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.okfn.org/pipermail/ckan-dev/attachments/20160404/65aa62ac/attachment-0002.html>


More information about the ckan-dev mailing list