[ckan-dev] setuptools versions

Luiz Felipe Fernandes Machado Costa thenets.org at gmail.com
Thu Jul 21 14:51:16 UTC 2016


I solve this problem:
The CKAN's dependence called "bleach"  has a dependence called "html5lib".
The "bleach" it's a locked version, but the "html5lib" is >=0.999.
Just install the "html5lib==0.999" before load the requirements.txt file.

pip install --upgrade pip" # HARD FIX
pip install setuptools==18.5" # HARD FIX
 pip install html5lib==0.999" # HARD FIX

Em qui, 21 de jul de 2016 às 10:58, Ian Ward <ian at excess.org> escreveu:

> I ran into the same error after trying to upgrade setuptools to fix an
> issue with html5lib and ckan 2.5. Instead I pinned html5lib the way we
> are on master[1] and I could run my tests again.
>
> [1]: https://github.com/ckan/ckan/blob/master/requirements.txt#L15
>
>
> On Thu, Jul 21, 2016 at 9:29 AM, David Read
> <david.read at hackneyworkshop.com> wrote:
> > Anyone else having problems with setuptools versions?
> >
> > I've been running distribute 0.6.34 (the temporary fork of setuptools)
> > for years, but then get bitten by recent changes - the newer version
> > of repoze.who I think - see exception below. Anyway I solved it by
> > upgrading setuptools to the latest (24.2.1):
> >
> > pip uninstall distribute
> > pip install -U setuptools
> >
> > I wonder if I encountered this because I'm still on ubuntu 12.04 and
> > others are on 14.04, which comes with later setuptools?
> >
> > Dave
> >
> > (ckan)vagrant at precise64:/vagrant/src/ckan$ nosetests --reset-db --ckan
> > --with-pylons=test-core.ini ckan/tests -x
> >
> /home/vagrant/ckan/local/lib/python2.7/site-packages/pylons/templating.py:610:
> > UserWarning: Unbuilt egg for ckan [unknown version]
> > (/vagrant/src/ckan)
> >   Engine = entry_point.load()
> > Traceback (most recent call last):
> >   File "/home/vagrant/ckan/bin/nosetests", line 11, in <module>
> >     sys.exit(run_exit())
> >   File
> "/home/vagrant/ckan/local/lib/python2.7/site-packages/nose/core.py",
> > line 121, in __init__
> >     **extra_args)
> >   File "/usr/lib/python2.7/unittest/main.py", line 94, in __init__
> >     self.parseArgs(argv)
> >   File
> "/home/vagrant/ckan/local/lib/python2.7/site-packages/nose/core.py",
> > line 145, in parseArgs
> >     self.config.configure(argv, doc=self.usage())
> >   File
> "/home/vagrant/ckan/local/lib/python2.7/site-packages/nose/config.py",
> > line 347, in configure
> >     self.plugins.begin()
> >   File
> "/home/vagrant/ckan/local/lib/python2.7/site-packages/nose/plugins/manager.py",
> > line 99, in __call__
> >     return self.call(*arg, **kw)
> >   File
> "/home/vagrant/ckan/local/lib/python2.7/site-packages/nose/plugins/manager.py",
> > line 167, in simple
> >     result = meth(*arg, **kw)
> >   File
> "/home/vagrant/ckan/local/lib/python2.7/site-packages/pylons/test.py",
> > line 74, in begin
> >     relative_to=path)
> >   File
> "/home/vagrant/ckan/local/lib/python2.7/site-packages/paste/deploy/loadwsgi.py",
> > line 247, in loadapp
> >     return loadobj(APP, uri, name=name, **kw)
> >   File
> "/home/vagrant/ckan/local/lib/python2.7/site-packages/paste/deploy/loadwsgi.py",
> > line 272, in loadobj
> >     return context.create()
> >   File
> "/home/vagrant/ckan/local/lib/python2.7/site-packages/paste/deploy/loadwsgi.py",
> > line 710, in create
> >     return self.object_type.invoke(self)
> >   File
> "/home/vagrant/ckan/local/lib/python2.7/site-packages/paste/deploy/loadwsgi.py",
> > line 146, in invoke
> >     return fix_call(context.object, context.global_conf,
> **context.local_conf)
> >   File
> "/home/vagrant/ckan/local/lib/python2.7/site-packages/paste/deploy/util.py",
> > line 55, in fix_call
> >     val = callable(*args, **kw)
> >   File "/vagrant/src/ckan/ckan/config/middleware/__init__.py", line
> > 48, in make_app
> >     **app_conf)
> >   File "/vagrant/src/ckan/ckan/config/middleware/pylons_app.py", line
> > 113, in make_pylons_stack
> >     who_parser.parse(open(app_conf['who.config_file']))
> >   File
> "/home/vagrant/ckan/local/lib/python2.7/site-packages/repoze/who/config.py",
> > line 86, in parse
> >     obj = self._makePlugin(name, IPlugin, options)
> >   File
> "/home/vagrant/ckan/local/lib/python2.7/site-packages/repoze/who/config.py",
> > line 40, in _makePlugin
> >     obj = _resolve(name)
> >   File
> "/home/vagrant/ckan/local/lib/python2.7/site-packages/repoze/who/config.py",
> > line 23, in _resolve
> >     return EntryPoint.parse('x=%s' % name).resolve()
> > AttributeError: 'EntryPoint' object has no attribute 'resolve'
> > _______________________________________________
> > 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
> _______________________________________________
> 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
>
-- 
Luiz Felipe F M Costa
Full Stack Developer
http://TheNets.org
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.okfn.org/pipermail/ckan-dev/attachments/20160721/99918011/attachment-0003.html>


More information about the ckan-dev mailing list