conwetlab / ckanext-datarequests

A plugin that allows users to request data that is not published yet
GNU Affero General Public License v3.0
17 stars 54 forks source link

KeyError('ckanext') in site.py while processing ckanext_datarequests-0.2.13-py2.7-nspkg.pth #20

Closed scardine closed 8 years ago

scardine commented 8 years ago

Out of the blue, I started getting this exception:

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

Tried to debug, the KeyError is from exec(line) where line is any line from '.../site-packages/ckanext_datarequests-0.2.13-py2.7-nspkg.pth'.

I don't know how to further investigate this, if I place a set_trace() in a try block around the problematic statement and exec it manually in the debugger, everything works.

aitormagan commented 8 years ago
aitormagan commented 8 years ago

Closed for inactivity.