[Openstack] Nova build error(python setup.py build),How can I solve this problem? thanks!

c02925 bluewindow at h3c.com
Thu May 5 11:18:04 UTC 2011


I am now plan to install openstack on Ubuntu 10.10. I follow step that was
described in URL:http://nova.openstack.org/adminguide/distros/ubuntu.10.10.
html

And http://nova.openstack.org/adminguide/single.node.install.html .

But, error occures on “sudo python setup.py build” the log like this:
 
root at ubuntu:/home/robin/code/nova-2011.2# python setup.py build
WARNING: syntax errors in nova/virt/vmwareapi/vm_util.py : invalid syntax
(vm_util.py, line 2)
ERROR: Python module win32console not found
ERROR: Python module pywintypes not found
ERROR: Python module win32console not found
ERROR: Python module utils not found
ERROR: Python module boto_v6.ec2.connection not found
WARNING: syntax errors in nova/virt/vmwareapi/fake.py : invalid syntax
(fake.py, line 2)
WARNING: syntax errors in nova/tests/vmwareapi/db_fakes.py : invalid syntax
(db_fakes.py, line 2)
ERROR: Python module boto_v6.ec2.instance not found
WARNING: syntax errors in nova/virt/vmwareapi_conn.py : invalid syntax
(vmwareapi_conn.py, line 2)
WARNING: syntax errors in nova/tests/vmwareapi/stubs.py : invalid syntax
(stubs.py, line 2)
WARNING: syntax errors in nova/virt/vmwareapi/vim.py : invalid syntax
(vim.py, line 2)
WARNING: syntax errors in nova/virt/vmwareapi/vmops.py : invalid syntax
(vmops.py, line 2)
ERROR: Python module Cheetah.Template not found
WARNING: syntax errors in
plugins/xenserver/networking/etc/xensource/scripts/vif_rules.py : invalid
syntax (vif_rules.py, line 55)
ERROR: Python module XenAPIPlugin not found
ERROR: Python module pluginlib_nova not found
ERROR: Python module XenAPIPlugin not found
ERROR: Python module pluginlib_nova not found
ERROR: Python module xenstore not found
ERROR: Python module utils not found
WARNING: syntax errors in nova/virt/vmwareapi/io_util.py : invalid syntax
(io_util.py, line 2)
ERROR: Python module sphinx.setup_command not found
ERROR: Python module babel.messages not found
ERROR: Python module XenAPIPlugin not found
ERROR: Python module pluginlib_nova not found
/usr/lib/python2.6/dist-packages/DistUtilsExtra/auto.py:317:
DeprecationWarning: the sha module is deprecated; use the hashlib module
instead
  path = __import__(module).__file__
ERROR: Python module XenAPIPlugin not found
ERROR: Python module pluginlib_nova not found
ERROR: Python module Cheetah not found
/usr/local/lib/python2.6/dist-packages/migrate-0.2.2-py2.6.egg/migrate/versi
oning/unique_instance.py:19: DeprecationWarning: object.__new__() takes no
parameters
  instances[key] = super(UniqueInstance,cls).__new__(cls,*p,**k)
Traceback (most recent call last):
  File "setup.py", line 131, in <module>
    'tools/nova-debug'])
  File "/usr/lib/python2.6/dist-packages/DistUtilsExtra/auto.py", line 95,
in setup
    __requires(attrs, src_all)
  File "/usr/lib/python2.6/dist-packages/DistUtilsExtra/auto.py", line 392,
in __requires
    __add_imports(imports, s, attrs)
  File "/usr/lib/python2.6/dist-packages/DistUtilsExtra/auto.py", line 341,
in __add_imports
    if __external_mod(node.module, attrs):
  File "/usr/lib/python2.6/dist-packages/DistUtilsExtra/auto.py", line 317,
in __external_mod
    path = __import__(module).__file__
  File
"/usr/local/lib/python2.6/dist-packages/migrate-0.2.2-py2.6.egg/migrate/vers
ioning/shell.py", line 6, in <module>
    from migrate.versioning import api,exceptions
  File
"/usr/local/lib/python2.6/dist-packages/migrate-0.2.2-py2.6.egg/migrate/vers
ioning/api.py", line 5, in <module>
    from migrate.versioning.repository import *
  File
"/usr/local/lib/python2.6/dist-packages/migrate-0.2.2-py2.6.egg/migrate/vers
ioning/repository.py", line 8, in <module>
    from migrate.versioning import script,exceptions,version
  File
"/usr/local/lib/python2.6/dist-packages/migrate-0.2.2-py2.6.egg/migrate/vers
ioning/script/__init__.py", line 1, in <module>
    from py import *
  File
"/usr/local/lib/python2.6/dist-packages/migrate-0.2.2-py2.6.egg/migrate/vers
ioning/script/py.py", line 2, in <module>
    from logsql import LogsqlFile
  File
"/usr/local/lib/python2.6/dist-packages/migrate-0.2.2-py2.6.egg/migrate/vers
ioning/script/logsql.py", line 2, in <module>
    from migrate.versioning import logengine
  File
"/usr/local/lib/python2.6/dist-packages/migrate-0.2.2-py2.6.egg/migrate/vers
ioning/logengine.py", line 260, in <module>
    LogEngineStrategy()
  File
"/usr/local/lib/python2.6/dist-packages/migrate-0.2.2-py2.6.egg/migrate/vers
ioning/logengine.py", line 253, in __init__
    super(LogEngineStrategy,self).__init__('logsql')
TypeError: __init__() takes exactly 1 argument (2 given)
 <mailto:root at ubuntu:/home/robin/code/nova-2011.2#>
root at ubuntu:/home/robin/code/nova-2011.2#
 
How can I solve this problem, Is there any solution. 
Thank you so much for your attention and helpness.
 
Best wishes.
 

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack/attachments/20110505/84c7b060/attachment.html>


More information about the Openstack mailing list