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

c02925 bluewindow at h3c.com
Thu May 5 13:46:04 UTC 2011


Sorry, here is the full log(Should I uninstall migrate first, how can I do it? thanks ):

root at ubuntu:/var/cache/apt/archives# ftp 192.168.0.188
Connected to 192.168.0.188.
220 WFTPD 2.0 service (by Texas Imperial Software) ready for new user
Name (192.168.0.188:root): 1
331 Give me your password, please
Password:
230 Logged in successfully
Remote system type is MSDOS.
ftp> bin
200 Type is Image (Binary)
ftp> cd ubuntu
250 "D:\FTPDIR\ubuntu" is current directory
ftp> get  python-py_1.2.1-4_all.deb
local: python-py_1.2.1-4_all.deb remote: python-py_1.2.1-4_all.deb
200 PORT command okay
150 "D:\FTPDIR\ubuntu\python-py_1.2.1-4_all.deb" file ready to send (153814 bytes) in IMAGE / Bina                  ry mode
226 Transfer finished successfully.
153814 bytes received in 0.02 secs (6719.9 kB/s)
ftp> quit
221 Windows FTP Server (WFTPD, by Texas Imperial Software) says goodbye
root at ubuntu:/var/cache/apt/archives#

root at ubuntu:/var/cache/apt/archives# dpkg -i python-py_1.2.1-4_all.deb

Selecting previously deselected package python-py.
(Reading database ... 105974 files and directories currently installed.)
Unpacking python-py (from python-py_1.2.1-4_all.deb) ...
Setting up python-py (1.2.1-4) ...
Processing triggers for man-db ...
Processing triggers for python-support ...
root at ubuntu:/var/cache/apt/archives# dpkg -i python-migrate_0.6-2_all.deb
(Reading database ... 106092 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 ...
dpkg: dependency problems prevent configuration of python-migrate:
 python-migrate depends on python-decorator; however:
  Package python-decorator is not installed.
dpkg: error processing python-migrate (--install):
 dependency problems - leaving unconfigured
Processing triggers for man-db ...
Errors were encountered while processing:
 python-migrate
root at ubuntu:/var/cache/apt/archives# ftp 192.168.0.188
Connected to 192.168.0.188.
220 WFTPD 2.0 service (by Texas Imperial Software) ready for new user
Name (192.168.0.188:root): 1
331 Give me your password, please
Password:
230 Logged in successfully
Remote system type is MSDOS.
ftp> bin
200 Type is Image (Binary)
ftp> cd ubuntu
250 "D:\FTPDIR\ubuntu" is current directory
ftp> get  python-decorator_3.2.0-1_all.deb
local: python-decorator_3.2.0-1_all.deb remote: python-decorator_3.2.0-1_all.deb
200 PORT command okay
150 "D:\FTPDIR\ubuntu\python-decorator_3.2.0-1_all.deb" file ready to send (45648 bytes) in IMAGE                   / Binary mode
226 Transfer finished successfully.
45648 bytes received in 0.01 secs (6592.4 kB/s)
ftp> quit
221 Windows FTP Server (WFTPD, by Texas Imperial Software) says goodbye

root at ubuntu:/var/cache/apt/archives# dpkg -i python-decorator_3.2.0-1_all.deb

Selecting previously deselected package python-decorator.
(Reading database ... 106092 files and directories currently installed.)
Unpacking python-decorator (from python-decorator_3.2.0-1_all.deb) ...
Setting up python-decorator (3.2.0-1) ...
Processing triggers for python-support ...

root at 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 at ubuntu:/var/cache/apt/archives#
root at ubuntu:/var/cache/apt/archives#


-----邮件原件-----
发件人: Soren Hansen [mailto:soren at linux2go.dk] 
发送时间: 2011年5月5日 21:40
收件人: c02925
抄送: openstack at lists.launchpad.net
主题: Re: 答复: 答复: [Openstack] Nova build error(python setup.py build),How can I solve this problem? thanks!

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 <bluewindow at h3c.com>:
> 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 : 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 at ubuntu:/home/robin/code/nova-2011.2#
>
>
> -----邮件原件-----
> 发件人: Soren Hansen [mailto:soren at linux2go.dk]
> 发送时间: 2011年5月5日 21:36
> 收件人: c02925
> 抄送: openstack at lists.launchpad.net
> 主题: 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 <bluewindow at h3c.com>:
>> Hi,
>> Thank you very much for your answer, but it seems does not work:
>>
>> root at 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 at ubuntu:/var/cache/apt/archives#
>> root at ubuntu:/home/robin/code# cd nova-2011.2/
>> root at ubuntu:/home/robin/code/nova-2011.2#
>> 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 : 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:soren at linux2go.dk]
>> 发送时间: 2011年5月5日 19:40
>> 收件人: c02925
>> 抄送: openstack at lists.launchpad.net
>> 主题: 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/






More information about the Openstack mailing list