[ckan-dev] setuptools versions

David Read david.read at hackneyworkshop.com
Thu Jul 21 13:29:25 UTC 2016


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'



More information about the ckan-dev mailing list