[ckan-dev] setuptools versions

Shane Davis shane.davis at linkdigital.com.au
Fri Jul 22 07:26:44 UTC 2016


Thanks Florian.

That makes huge sense and I'm pretty sure you've nailed it. I understand
what you're referring to and suspect with the other measures I took, this
will probably resolve the problem. I'll let you all know how I get on.

On Friday, 22 July 2016, <Florian.Brucker at mb.karlsruhe.de> wrote:

> 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
> <javascript:_e(%7B%7D,'cvml','ckan-dev-bounces at lists.okfn.org');>>
> schrieb am 22.07.2016 01:40:36:
>
> > Von: Shane Davis <shane.davis at linkdigital.com.au
> <javascript:_e(%7B%7D,'cvml','shane.davis at linkdigital.com.au');>>
> > An: ckan-dev at lists.okfn.org
> <javascript:_e(%7B%7D,'cvml','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
> <javascript:_e(%7B%7D,'cvml','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
> <javascript:_e(%7B%7D,'cvml','ckan-dev at lists.okfn.org');>
> > https://lists.okfn.org/mailman/listinfo/ckan-dev
> > Unsubscribe: https://lists.okfn.org/mailman/options/ckan-dev
>


-- 
Shane.


------------------------------------------------------------------
*SHANE DAVIS*  |  *SERVICE DELIVERY MANAGER*
Link Digital
www.linkdigital.com.au
p: *02 6111 2907 <02%206111%202907>* | f: 02 6248 5582
m: 0400 611 428
t: @link_sdm
s: link_sdm
PO Box 199 Canberra ACT 2601
32 Lonsdale Street Braddon ACT 2612
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.okfn.org/pipermail/ckan-dev/attachments/20160722/b780325e/attachment-0003.html>


More information about the ckan-dev mailing list