Glance 2012.2-dev can't run on the CentOS6.2 about 'HAVE_DECL_MPZ_POWM_SEC'

Bug #969230 reported by Jiang Yong
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Glance
Invalid
Undecided
Unassigned

Bug Description

I got the latest code from git and installed it on my CentOs 6.2, but when I ran glance-api and glance-registy I got a wrong! The detail is there:
[ugyn@cc ~]$ sudo glance-api --debug
Traceback (most recent call last):
  File "/usr/bin/glance-api", line 5, in <module>
    pkg_resources.run_script('glance==2012.2', 'glance-api')
  File "/usr/lib/python2.6/site-packages/pkg_resources.py", line 461, in run_script
    self.require(requires)[0].run_script(script_name, ns)
  File "/usr/lib/python2.6/site-packages/pkg_resources.py", line 1194, in run_script
    execfile(script_filename, namespace, namespace)
  File "/usr/lib/python2.6/site-packages/glance-2012.2-py2.6.egg/EGG-INFO/scripts/glance-api", line 48, in <module>
    app = config.load_paste_app(conf)
  File "/usr/lib/python2.6/site-packages/glance-2012.2-py2.6.egg/glance/common/config.py", line 172, in load_paste_app
    app = wsgi.paste_deploy_app(conf_file, app_name, conf)
  File "/usr/lib/python2.6/site-packages/glance-2012.2-py2.6.egg/glance/common/wsgi.py", line 647, in paste_deploy_app
    return deploy.loadapp("config:%s" % paste_config_file, name=app_name)
  File "/usr/lib/python2.6/site-packages/paste/deploy/loadwsgi.py", line 247, in loadapp
    return loadobj(APP, uri, name=name, **kw)
  File "/usr/lib/python2.6/site-packages/paste/deploy/loadwsgi.py", line 272, in loadobj
    return context.create()
  File "/usr/lib/python2.6/site-packages/paste/deploy/loadwsgi.py", line 710, in create
    return self.object_type.invoke(self)
  File "/usr/lib/python2.6/site-packages/paste/deploy/loadwsgi.py", line 203, in invoke
    app = context.app_context.create()
  File "/usr/lib/python2.6/site-packages/paste/deploy/loadwsgi.py", line 710, in create
    return self.object_type.invoke(self)
  File "/usr/lib/python2.6/site-packages/paste/deploy/loadwsgi.py", line 146, in invoke
    return fix_call(context.object, context.global_conf, **context.local_conf)
  File "/usr/lib/python2.6/site-packages/paste/deploy/util.py", line 56, in fix_call
    val = callable(*args, **kw)
  File "/usr/lib/python2.6/site-packages/glance-2012.2-py2.6.egg/glance/common/wsgi.py", line 572, in __call__
    factory = self._import_factory(local_conf)
  File "/usr/lib/python2.6/site-packages/glance-2012.2-py2.6.egg/glance/common/wsgi.py", line 550, in _import_factory
    return utils.import_class(class_name)
  File "/usr/lib/python2.6/site-packages/glance-2012.2-py2.6.egg/glance/common/utils.py", line 158, in import_class
    reason=e)
glance.common.exception.ImportFailure: Failed to import requested object/class: 'glance.api.v1.router.API'. Reason: 'module' object has no attribute 'HAVE_DECL_MPZ_POWM_SEC'
[ugyn@cc ~]$ sudo glance-registry --debug
Traceback (most recent call last):
  File "/usr/bin/glance-registry", line 5, in <module>
    pkg_resources.run_script('glance==2012.2', 'glance-registry')
  File "/usr/lib/python2.6/site-packages/pkg_resources.py", line 461, in run_script
    self.require(requires)[0].run_script(script_name, ns)
  File "/usr/lib/python2.6/site-packages/pkg_resources.py", line 1194, in run_script
    execfile(script_filename, namespace, namespace)
  File "/usr/lib/python2.6/site-packages/glance-2012.2-py2.6.egg/EGG-INFO/scripts/glance-registry", line 48, in <module>
    app = config.load_paste_app(conf)
  File "/usr/lib/python2.6/site-packages/glance-2012.2-py2.6.egg/glance/common/config.py", line 172, in load_paste_app
    app = wsgi.paste_deploy_app(conf_file, app_name, conf)
  File "/usr/lib/python2.6/site-packages/glance-2012.2-py2.6.egg/glance/common/wsgi.py", line 647, in paste_deploy_app
    return deploy.loadapp("config:%s" % paste_config_file, name=app_name)
  File "/usr/lib/python2.6/site-packages/paste/deploy/loadwsgi.py", line 247, in loadapp
    return loadobj(APP, uri, name=name, **kw)
  File "/usr/lib/python2.6/site-packages/paste/deploy/loadwsgi.py", line 272, in loadobj
    return context.create()
  File "/usr/lib/python2.6/site-packages/paste/deploy/loadwsgi.py", line 710, in create
    return self.object_type.invoke(self)
  File "/usr/lib/python2.6/site-packages/paste/deploy/loadwsgi.py", line 203, in invoke
    app = context.app_context.create()
  File "/usr/lib/python2.6/site-packages/paste/deploy/loadwsgi.py", line 710, in create
    return self.object_type.invoke(self)
  File "/usr/lib/python2.6/site-packages/paste/deploy/loadwsgi.py", line 146, in invoke
    return fix_call(context.object, context.global_conf, **context.local_conf)
  File "/usr/lib/python2.6/site-packages/paste/deploy/util.py", line 56, in fix_call
    val = callable(*args, **kw)
  File "/usr/lib/python2.6/site-packages/glance-2012.2-py2.6.egg/glance/common/wsgi.py", line 572, in __call__
    factory = self._import_factory(local_conf)
  File "/usr/lib/python2.6/site-packages/glance-2012.2-py2.6.egg/glance/common/wsgi.py", line 550, in _import_factory
    return utils.import_class(class_name)
  File "/usr/lib/python2.6/site-packages/glance-2012.2-py2.6.egg/glance/common/utils.py", line 158, in import_class
    reason=e)
glance.common.exception.ImportFailure: Failed to import requested object/class: 'glance.registry.api.v1.API'. Reason: 'module' object has no attribute 'HAVE_DECL_MPZ_POWM_SEC'

Revision history for this message
Brian Waldon (bcwaldon) wrote :

Looks like this isn't a problem specific to Glance (see bug 914342). What version of python-crypto do you have installed?

Revision history for this message
Jiang Yong (jiangy) wrote :

Thank you! I have a 2.0.1-22.el6 python-crypto.x86_64 installed with yum and I have installed all required software by runing "sudo pip install -r glance/tools/pip-requires" which installed pycrypto-2.5 for me. So I uninstall both of them and run "sudo pip install pycrypto" and now it works!

summary: - Glance 2012.2-dev can't run on the CentOS6.2
+ Glance 2012.2-dev can't run on the CentOS6.2 about
+ 'HAVE_DECL_MPZ_POWM_SEC'
Jiang Yong (jiangy)
Changed in glance:
status: New → Fix Released
Jiang Yong (jiangy)
Changed in glance:
assignee: nobody → ugyn (jiangyong-hn)
Thierry Carrez (ttx)
Changed in glance:
status: Fix Released → Invalid
Jiang Yong (jiangy)
Changed in glance:
assignee: ugyn (jiangyong-hn) → nobody
Revision history for this message
Hua Zhang (zhhuabj) wrote :

I also encounter this issue today, I solve it by following method,
pip-python uninstall pycrypto
pip-python install pycrypto

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.