It's clearly still using your old python-migrate. How did you install it? Does the tool you used to install it have an uninstall mechanism?
2011/5/5 c02925 <[email protected]>: > root@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 : invali > d 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/versioning/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/versioning/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/versioning/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/versioning/reposito > ry.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/versioning/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/versioning/script/p > y.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/versioning/script/l > ogsql.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/versioning/logengin > e.py", line 260, in <module> > LogEngineStrategy() > File > "/usr/local/lib/python2.6/dist-packages/migrate-0.2.2-py2.6.egg/migrate/versioning/logengin > e.py", line 253, in __init__ > super(LogEngineStrategy,self).__init__('logsql') > TypeError: __init__() takes exactly 1 argument (2 given) > root@ubuntu:/home/robin/code/nova-2011.2# > > > -----邮件原件----- > 发件人: Soren Hansen [mailto:[email protected]] > 发送时间: 2011年5月5日 21:36 > 收件人: c02925 > 抄送: [email protected] > 主题: Re: 答复: [Openstack] Nova build error(python setup.py build),How can I > solve this problem? thanks! > > Can you share the full output, please? > > > 2011/5/5 c02925 <[email protected]>: >> Hi, >> Thank you very much for your answer, but it seems does not work: >> >> root@ubuntu:/var/cache/apt/archives# dpkg -i python-migrate_0.6-2_all.deb >> (Reading database ... 106108 files and directories currently installed.) >> Preparing to replace python-migrate 0.6-2 (using >> python-migrate_0.6-2_all.deb) ... >> Unpacking replacement python-migrate ... >> Setting up python-migrate (0.6-2) ... >> Processing triggers for man-db ... >> Processing triggers for python-support ... >> root@ubuntu:/var/cache/apt/archives# >> root@ubuntu:/home/robin/code# cd nova-2011.2/ >> root@ubuntu:/home/robin/code/nova-2011.2# >> root@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 : invali >> d 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__ >> ........................ >> >> >> >> >> >> -----邮件原件----- >> 发件人: Soren Hansen [mailto:[email protected]] >> 发送时间: 2011年5月5日 19:40 >> 收件人: c02925 >> 抄送: [email protected] >> 主题: Re: [Openstack] Nova build error(python setup.py build),How can I solve >> this problem? thanks! >> >> The version of python migrate you're using is much too old. I believe >> 0.6 is what we require. >> >> -- >> Soren Hansen | http://linux2go.dk/ >> Ubuntu Developer | http://www.ubuntu.com/ >> OpenStack Developer | http://www.openstack.org/ >> >> >> > > > > -- > Soren Hansen | http://linux2go.dk/ > Ubuntu Developer | http://www.ubuntu.com/ > OpenStack Developer | http://www.openstack.org/ > > > -- Soren Hansen | http://linux2go.dk/ Ubuntu Developer | http://www.ubuntu.com/ OpenStack Developer | http://www.openstack.org/ _______________________________________________ Mailing list: https://launchpad.net/~openstack Post to : [email protected] Unsubscribe : https://launchpad.net/~openstack More help : https://help.launchpad.net/ListHelp

