[ckan-dev] Fixing broken extension installs?

Derek Hohls dhohls at csir.co.za
Tue Feb 9 08:52:58 UTC 2016


In my attempts to install CKAN with a number of extensions, I have now come across this error a few times.  It seems (although not sure how to prove this), that if a mistake is made with a pip install, then some aspect of CKAN gets broken - specifically you can no longer perform any pip installs or uninstalls, or run any paster command.  

Each time the error message is exactly the same:

Traceback (most recent call last):
  File "/usr/lib/ckan/default/lib/python2.7/site.py", line 703, in <module>
    main()
  File "/usr/lib/ckan/default/lib/python2.7/site.py", line 683, in main
    paths_in_sys = addsitepackages(paths_in_sys)
  File "/usr/lib/ckan/default/lib/python2.7/site.py", line 282, in addsitepackages
    addsitedir(sitedir, known_paths)
  File "/usr/lib/ckan/default/lib/python2.7/site.py", line 204, in addsitedir
    addpackage(sitedir, name, known_paths)
  File "/usr/lib/ckan/default/lib/python2.7/site.py", line 173, in addpackage
    exec(line)
  File "<string>", line 1, in <module>
KeyError: 'ckanext'

I cannot see how to fix this and so have to wipe CKAN and run the installation process all over.

Any help or suggestions would be appreciated.

Thanks
Derek



-- 
This message is subject to the CSIR's copyright terms and conditions, e-mail legal notice, and implemented Open Document Format (ODF) standard. 
The full disclaimer details can be found at http://www.csir.co.za/disclaimer.html.

This message has been scanned for viruses and dangerous content by MailScanner, 
and is believed to be clean.

Please consider the environment before printing this email.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.okfn.org/pipermail/ckan-dev/attachments/20160209/74e85e0b/attachment-0002.html>


More information about the ckan-dev mailing list