分享

使用rpmbuild打包出现错误,求解

ruyang 发表于 2014-12-24 16:42:20 [显示全部楼层] 回帖奖励 阅读模式 关闭右栏 1 10168
在使用rpmbuild对nova进行打包时出现如下错误


reading sources... [  6%] devref/api
Traceback (most recent call last):
  File "/usr/lib/python2.6/site-packages/sphinx/ext/autodoc.py", line 321, in import_object
    __import__(self.modname)
ImportError: No module named cloud
Traceback (most recent call last):
  File "/usr/lib/python2.6/site-packages/sphinx/ext/autodoc.py", line 321, in import_object
    __import__(self.modname)
ImportError: No module named backup_schedules
Traceback (most recent call last):
  File "/usr/lib/python2.6/site-packages/sphinx/ext/autodoc.py", line 321, in import_object
    __import__(self.modname)
ImportError: No module named faults
Traceback (most recent call last):
  File "/usr/lib/python2.6/site-packages/sphinx/ext/autodoc.py", line 321, in import_object
    __import__(self.modname)
ImportError: No module named flavors
Traceback (most recent call last):
  File "/usr/lib/python2.6/site-packages/sphinx/ext/autodoc.py", line 321, in import_object
    __import__(self.modname)
ImportError: No module named images
Traceback (most recent call last):
  File "/usr/lib/python2.6/site-packages/sphinx/ext/autodoc.py", line 321, in import_object
    __import__(self.modname)
ImportError: No module named servers
Traceback (most recent call last):
  File "/usr/lib/python2.6/site-packages/sphinx/ext/autodoc.py", line 321, in import_object
    __import__(self.modname)
ImportError: No module named sharedipgroups
Traceback (most recent call last):
  File "/usr/lib/python2.6/site-packages/sphinx/ext/autodoc.py", line 321, in import_object
    __import__(self.modname)
ImportError: No module named images
Traceback (most recent call last):
  File "/usr/lib/python2.6/site-packages/sphinx/ext/autodoc.py", line 321, in import_object
    __import__(self.modname)
ImportError: No module named metadatarequesthandler
Traceback (most recent call last):
  File "/usr/lib/python2.6/site-packages/sphinx/ext/autodoc.py", line 321, in import_object
    __import__(self.modname)
  File "/home/kevin/rpmbuild/BUILD/nova-2014.1.vs2.dev5.g74906de/nova/tests/__init__.py", line 37, in <module>
    % os.environ.get('EVENTLET_NO_GREENDNS'))
ImportError: eventlet imported before nova/cmd/__init__ (env var set to None)
Traceback (most recent call last):
  File "/usr/lib/python2.6/site-packages/sphinx/ext/autodoc.py", line 321, in import_object
    __import__(self.modname)
  File "/home/kevin/rpmbuild/BUILD/nova-2014.1.vs2.dev5.g74906de/nova/tests/__init__.py", line 37, in <module>
    % os.environ.get('EVENTLET_NO_GREENDNS'))
ImportError: eventlet imported before nova/cmd/__init__ (env var set to None)
Traceback (most recent call last):
  File "/usr/lib/python2.6/site-packages/sphinx/ext/autodoc.py", line 321, in import_object
    __import__(self.modname)
  File "/home/kevin/rpmbuild/BUILD/nova-2014.1.vs2.dev5.g74906de/nova/tests/__init__.py", line 37, in <module>
    % os.environ.get('EVENTLET_NO_GREENDNS'))
ImportError: eventlet imported before nova/cmd/__init__ (env var set to None)
Traceback (most recent call last):
  File "/usr/lib/python2.6/site-packages/sphinx/ext/autodoc.py", line 321, in import_object
    __import__(self.modname)
  File "/home/kevin/rpmbuild/BUILD/nova-2014.1.vs2.dev5.g74906de/nova/tests/__init__.py", line 37, in <module>
    % os.environ.get('EVENTLET_NO_GREENDNS'))
ImportError: eventlet imported before nova/cmd/__init__ (env var set to None)
Traceback (most recent call last):
  File "/usr/lib/python2.6/site-packages/sphinx/ext/autodoc.py", line 321, in import_object
    __import__(self.modname)
  File "/home/kevin/rpmbuild/BUILD/nova-2014.1.vs2.dev5.g74906de/nova/tests/__init__.py", line 37, in <module>
    % os.environ.get('EVENTLET_NO_GREENDNS'))
ImportError: eventlet imported before nova/cmd/__init__ (env var set to None)
Traceback (most recent call last):
  File "/usr/lib/python2.6/site-packages/sphinx/ext/autodoc.py", line 321, in import_object
    __import__(self.modname)
  File "/home/kevin/rpmbuild/BUILD/nova-2014.1.vs2.dev5.g74906de/nova/tests/__init__.py", line 37, in <module>
    % os.environ.get('EVENTLET_NO_GREENDNS'))
ImportError: eventlet imported before nova/cmd/__init__ (env var set to None)
Traceback (most recent call last):
  File "/usr/lib/python2.6/site-packages/sphinx/ext/autodoc.py", line 321, in import_object
    __import__(self.modname)
  File "/home/kevin/rpmbuild/BUILD/nova-2014.1.vs2.dev5.g74906de/nova/tests/__init__.py", line 37, in <module>
    % os.environ.get('EVENTLET_NO_GREENDNS'))
ImportError: eventlet imported before nova/cmd/__init__ (env var set to None)
Traceback (most recent call last):
  File "/usr/lib/python2.6/site-packages/sphinx/ext/autodoc.py", line 321, in import_object
    __import__(self.modname)
  File "/home/kevin/rpmbuild/BUILD/nova-2014.1.vs2.dev5.g74906de/nova/tests/__init__.py", line 37, in <module>
    % os.environ.get('EVENTLET_NO_GREENDNS'))
ImportError: eventlet imported before nova/cmd/__init__ (env var set to None)
Traceback (most recent call last):
  File "/usr/lib/python2.6/site-packages/sphinx/ext/autodoc.py", line 321, in import_object
    __import__(self.modname)
  File "/home/kevin/rpmbuild/BUILD/nova-2014.1.vs2.dev5.g74906de/nova/tests/__init__.py", line 37, in <module>
    % os.environ.get('EVENTLET_NO_GREENDNS'))
ImportError: eventlet imported before nova/cmd/__init__ (env var set to None)
Traceback (most recent call last):
  File "/usr/lib/python2.6/site-packages/sphinx/ext/autodoc.py", line 321, in import_object
    __import__(self.modname)
  File "/home/kevin/rpmbuild/BUILD/nova-2014.1.vs2.dev5.g74906de/nova/tests/__init__.py", line 37, in <module>
    % os.environ.get('EVENTLET_NO_GREENDNS'))
ImportError: eventlet imported before nova/cmd/__init__ (env var set to None)
Traceback (most recent call last):
  File "/usr/lib/python2.6/site-packages/sphinx/ext/autodoc.py", line 321, in import_object
    __import__(self.modname)
  File "/home/kevin/rpmbuild/BUILD/nova-2014.1.vs2.dev5.g74906de/nova/tests/__init__.py", line 37, in <module>
    % os.environ.get('EVENTLET_NO_GREENDNS'))
ImportError: eventlet imported before nova/cmd/__init__ (env var set to None)
Traceback (most recent call last):
  File "/usr/lib/python2.6/site-packages/sphinx/ext/autodoc.py", line 321, in import_object
    __import__(self.modname)
  File "/home/kevin/rpmbuild/BUILD/nova-2014.1.vs2.dev5.g74906de/nova/tests/__init__.py", line 37, in <module>
    % os.environ.get('EVENTLET_NO_GREENDNS'))
ImportError: eventlet imported before nova/cmd/__init__ (env var set to None)


但不影响生产包,是sphinx.ext.autodao 出现的问题,但不知道如何解决,求高手帮忙,多谢

已有(1)人评论

跳转到指定楼层
desehawk 发表于 2014-12-24 18:10:25
首先确保程序是正确的,然后注意权限,命令使用等
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

关闭

推荐上一条 /2 下一条