pkg_resources.DistributionNotFound: pyramid-openid #154

rackergs opened this Issue Aug 11, 2013 · 3 comments


None yet

3 participants


I followed the install steps on a f19 box. Its my laptop so I just used localhost for host and tahrir.base_url, and set the salt. also hard coded the %(here)s to cwd. (just playing with it).

When i do the initialize_tahrir_db tahrir.ini i get the following traceback:

Traceback (most recent call last):
  File "/usr/bin/initialize_tahrir_db", line 10, in <module>
    load_entry_point('tahrir-api==0.1.7', 'console_scripts', 'initialize_tahrir_db')()
  File "/usr/lib/python2.7/site-packages/tahrir_api/scripts/", line 43, in main
    settings = appconfig(config_name, name=section, relative_to=here_dir)
  File "/usr/lib/python2.7/site-packages/paste/deploy/", line 261, in appconfig
  File "/usr/lib/python2.7/site-packages/paste/deploy/", line 296, in loadcontext
  File "/usr/lib/python2.7/site-packages/paste/deploy/", line 320, in _loadconfig
    return loader.get_context(object_type, name, global_conf)
  File "/usr/lib/python2.7/site-packages/paste/deploy/", line 454, in get_context
  File "/usr/lib/python2.7/site-packages/paste/deploy/", line 476, in _context_from_use
    object_type, name=use, global_conf=global_conf)
  File "/usr/lib/python2.7/site-packages/paste/deploy/", line 406, in get_context
  File "/usr/lib/python2.7/site-packages/paste/deploy/", line 296, in loadcontext
  File "/usr/lib/python2.7/site-packages/paste/deploy/", line 328, in _loadegg
    return loader.get_context(object_type, name, global_conf)
  File "/usr/lib/python2.7/site-packages/paste/deploy/", line 620, in get_context
    object_type, name=name)
  File "/usr/lib/python2.7/site-packages/paste/deploy/", line 640, in find_egg_entry_point
  File "/usr/lib/python2.7/site-packages/", line 696, in require
    needed = self.resolve(parse_requirements(requirements))
  File "/usr/lib/python2.7/site-packages/", line 594, in resolve
    raise DistributionNotFound(req)
pkg_resources.DistributionNotFound: pyramid-openid

The yum install grabbed these packages:
python-tahrir.noarch 0:0.1.8-2.fc19 python-tahrir-api.noarch 0:0.1.7-3.fc19

Dependency Installed:
python-chameleon.noarch 0:2.11-2.fc19 python-formencode.noarch 0:1.2.6-1.fc19 python-genshi.x86_64 0:0.7-2.fc19
python-lxml.x86_64 0:3.2.1-1.fc19 python-paste-deploy.noarch 0:1.5.0-8.fc19 python-pyramid.noarch 0:1.4-9.fc19
python-pyramid-tm.noarch 0:0.7-1.fc19 python-repoze-lru.noarch 0:0.4-3.fc19 python-speaklater.noarch 0:1.3-1.fc19
python-transaction.noarch 0:1.4.1-1.fc19 python-translationstring.noarch 0:1.1-5.fc19 python-tw2-core.noarch 0:2.1.5-3.fc19
python-tw2-dynforms.noarch 0:2.0.1-5.fc19 python-tw2-forms.noarch 0: python-tw2-sqla.noarch 0:2.0.6-2.fc19
python-venusian.noarch 0:1.0-0.5.a7.fc19 python-weberror.noarch 0:0.10.3-5.fc19 python-webob.noarch 0:1.2.3-4.fc19
python-zope-component.noarch 0:4.0.2-1.fc19 python-zope-configuration.noarch 0:4.0.2-1.fc19 python-zope-deprecation.noarch 0:3.5.1-2.fc19
python-zope-i18nmessageid.x86_64 0:4.0.2-1.fc19 python-zope-schema.noarch 0:4.3.2-1.fc19 python-zope-sqlalchemy.noarch 0:0.7.2-1.fc19
python3-sqlalchemy.x86_64 0:0.8.1-1.fc19 python3-transaction.noarch 0:1.4.1-1.fc19 python3-zope-event.noarch 0:4.0.2-1.fc19
python3-zope-interface.x86_64 0:4.0.5-1.fc19

but python-openid wasn't one of them, so I added it too.

I do find it weird that several of those brought in python3 packages.


Oh goodness, that's not proper. Will talk with @ralphbean today to try and work this out. Thanks for the ticket!


FWIW, the install instructions in the README say to use pip (in a virtualenv) not yum.. but the good thing here is that you uncovered problems with the python-tahrir rpm packaging! Hooray!

I added python-openid as a dependency declared in the rpm spec in python-tahrir-0.3.5-2, so, hopefully that should fix that.

The python3 deps are weird -- and incorrect! Not sure what's bringing those in yet.


Found the source of the python3 stuff. It is from python-zope-sqlalchemy. I filed a bug on that package here ->

Thanks for reporting @rackergs!

@ralphbean ralphbean closed this Aug 16, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment