[openstack-dev] Barbican : Unable to install Barbican on CentOS due to Import Error

Asha Seshagiri asha.seshagiri at gmail.com
Wed Mar 25 19:24:40 UTC 2015


Hi  ,

When I tried installing barbican using the command  bin/barbican.sh install
, I got the following error  :

*ImportError: No module named pecan*
Traceback (most recent call last):
  File
"/root/.pyenv/versions/barbican27/lib/python2.7/site-packages/paste/deploy/loadwsgi.py",
line 247, in loadapp
    return loadobj(APP, uri, name=name, **kw)
  File
"/root/.pyenv/versions/barbican27/lib/python2.7/site-packages/paste/deploy/loadwsgi.py",
line 272, in loadobj
    return context.create()
  File
"/root/.pyenv/versions/barbican27/lib/python2.7/site-packages/paste/deploy/loadwsgi.py",
line 710, in create
    return self.object_type.invoke(self)
  File
"/root/.pyenv/versions/barbican27/lib/python2.7/site-packages/paste/deploy/loadwsgi.py",
line 144, in invoke
    **context.local_conf)
  File
"/root/.pyenv/versions/barbican27/lib/python2.7/site-packages/paste/deploy/util.py",
line 55, in fix_call
    val = callable(*args, **kw)
  File
"/root/.pyenv/versions/barbican27/lib/python2.7/site-packages/paste/urlmap.py",
line 25, in urlmap_factory
    app = loader.get_app(app_name, global_conf=global_conf)
  File
"/root/.pyenv/versions/barbican27/lib/python2.7/site-packages/paste/deploy/loadwsgi.py",
line 350, in get_app
    name=name, global_conf=global_conf).create()
  File
"/root/.pyenv/versions/barbican27/lib/python2.7/site-packages/paste/deploy/loadwsgi.py",
line 362, in app_context
    APP, name=name, global_conf=global_conf)
  File
"/root/.pyenv/versions/barbican27/lib/python2.7/site-packages/paste/deploy/loadwsgi.py",
line 450, in get_context
    global_additions=global_additions)
  File
"/root/.pyenv/versions/barbican27/lib/python2.7/site-packages/paste/deploy/loadwsgi.py",
line 559, in _pipeline_app_context
    APP, pipeline[-1], global_conf)
  File
"/root/.pyenv/versions/barbican27/lib/python2.7/site-packages/paste/deploy/loadwsgi.py",
line 458, in get_context
    section)
  File
"/root/.pyenv/versions/barbican27/lib/python2.7/site-packages/paste/deploy/loadwsgi.py",
line 517, in _context_from_explicit
    value = import_string(found_expr)
  File
"/root/.pyenv/versions/barbican27/lib/python2.7/site-packages/paste/deploy/loadwsgi.py",
line 22, in import_string
    return pkg_resources.EntryPoint.parse("x=" + s).load(False)
  File "build/bdist.linux-x86_64/egg/pkg_resources/__init__.py", line 2320,
in load
  File "build/bdist.linux-x86_64/egg/pkg_resources/__init__.py", line 2326,
in resolve
  File "/root/barbican/barbican/api/__init__.py", line 22, in <module>
    import pecan
ImportError: No module named pecan
OOPS ! failed loading app in worker 1 (pid 27606) :( trying again...
worker respawning too fast !!! i have to sleep a bit (2 seconds)...
OOPS ! failed loading app in worker 1 (pid 27607) :( trying again...
worker respawning too fast !!! i have to sleep a bit (2 seconds)...
Respawned uWSGI worker 1 (new pid: 27608)
Respawned uWSGI worker 1 (new pid: 27609)
Loading paste environment: config:/etc/barbican/barbican-api-paste.ini
Loading paste environment: config:/etc/barbican/barbican-admin-paste.ini
Traceback (most recent call last):
  File
"/root/.pyenv/versions/barbican27/lib/python2.7/site-packages/paste/deploy/loadwsgi.py",
line 247, in loadapp
    return loadobj(APP, uri, name=name, **kw)
  File
"/root/.pyenv/versions/barbican27/lib/python2.7/site-packages/paste/deploy/loadwsgi.py",
line 271, in loadobj
    global_conf=global_conf)
  File
"/root/.pyenv/versions/barbican27/lib/python2.7/site-packages/paste/deploy/loadwsgi.py",
line 296, in loadcontext
    global_conf=global_conf)
  File
"/root/.pyenv/versions/barbican27/lib/python2.7/site-packages/paste/deploy/loadwsgi.py",
line 320, in _loadconfig
    return loader.get_context(object_type, name, global_conf)
  File
"/root/.pyenv/versions/barbican27/lib/python2.7/site-packages/paste/deploy/loadwsgi.py",
line 450, in get_context
    global_additions=global_additions)
  File
"/root/.pyenv/versions/barbican27/lib/python2.7/site-packages/paste/deploy/loadwsgi.py",
line 559, in _pipeline_app_context
    APP, pipeline[-1], global_conf)
  File
"/root/.pyenv/versions/barbican27/lib/python2.7/site-packages/paste/deploy/loadwsgi.py",
line 458, in get_context
    section)
  File
"/root/.pyenv/versions/barbican27/lib/python2.7/site-packages/paste/deploy/loadwsgi.py",
line 517, in _context_from_explicit
    value = import_string(found_expr)
  File
"/root/.pyenv/versions/barbican27/lib/python2.7/site-packages/paste/deploy/loadwsgi.py",
line 22, in import_string
    return pkg_resources.EntryPoint.parse("x=" + s).load(False)

Any help would be appreciated!
Thanks in advance !

-- 
*Thanks and Regards,*
*Asha Seshagiri*
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack-dev/attachments/20150325/ef9c0e7a/attachment.html>


More information about the OpenStack-dev mailing list