[ckan-dev] Antwort: Re: setuptools versions
Florian.Brucker at mb.karlsruhe.de
Florian.Brucker at mb.karlsruhe.de
Fri Jul 22 07:07:21 UTC 2016
Shane,
the reason for the "KeyError: 'ckanext'" error usually is indeed a problem
with how pip treats Python namespace packages. In particular, you cannot
mix "normal" installations and editable ones ("pip install -e ..." or
"python setup.py develop"). See https://github.com/pypa/pip/issues/3.
To solve that issue, we install all CKAN extensions in editable mode (i.e.
"pip install -e ..."). That seems to work fine. If you're already running
into the error then you'll probably have to recreate the virtualenv from
scratch.
Regards,
Florian
"ckan-dev" <ckan-dev-bounces at lists.okfn.org> schrieb am 22.07.2016
01:40:36:
> Von: Shane Davis <shane.davis at linkdigital.com.au>
> An: ckan-dev at lists.okfn.org,
> Datum: 22.07.2016 01:40
> Betreff: Re: [ckan-dev] setuptools versions
> Gesendet von: "ckan-dev" <ckan-dev-bounces at lists.okfn.org>
>
> I've encounted the setuptools issue with 2.5.1 and 2.5.2.
>
> The work around I found was upgrading setuptools as already
> suggested, but also upgrading bleach from 1.4.2 to 1.4.3.
>
> The ongoing issue I now face is not being able to use pip. I get the
> following error:
> /usr/lib/ckan/default/bin/pip I get:
> Traceback (most recent call last):
> File "/usr/lib/ckan/default/lib64/python2.7/site.py", line 890, in
<module>
> main()
> File "/usr/lib/ckan/default/lib64/python2.7/site.py", line 848, in main
> virtualenv_search_paths(sys.prefix)
> File "/usr/lib/ckan/default/lib64/python2.7/site.py", line 638, in
> virtualenv_search_paths
> addsitedir(sitedir, known_paths)
> File "/usr/lib/ckan/default/lib64/python2.7/site.py", line 204,
inaddsitedir
> addpackage(sitedir, name, known_paths)
> File "/usr/lib/ckan/default/lib64/python2.7/site.py", line 173,
inaddpackage
> exec(line)
> File "<string>", line 1, in <module>
> KeyError: 'ckanext'
>
> I read a couple of posted about this that identified problems with
> python namespace and internationalisation. This was within the
> context of CKAN 2.3 so I don't know whether it's relevant. I've got
> at least two big environments I need to provision so I'll be working
> through this over the next couple of days.
>
> Shane.
>
> ------------------------------------------------------------------
> SHANE DAVIS | SERVICE DELIVERY MANAGER
> Link Digital
>
shane.davis at linkdigital.com.au_______________________________________________
> 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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.okfn.org/pipermail/ckan-dev/attachments/20160722/b9a2c5f1/attachment-0003.html>
More information about the ckan-dev
mailing list