无法运行Openstack-installer错误

在安装sudo apt-get install openstack之后,我正在尝试运行sudo openstack-install命令。

它给了我错误:

 Traceback (most recent call last): File "/usr/bin/openstack-install", line 279, in  ev = EventLoop(ui, cfg, logger) File "/usr/share/openstack/cloudinstall/ev.py", line 43, in __init__ self.loop = self._build_loop() File "/usr/share/openstack/cloudinstall/ev.py", line 66, in _build_loop event_loop=urwid.AsyncioEventLoop(loop=evl), **additional_opts) AttributeError: 'module' object has no attribute 'AsyncioEventLoop' 

尝试使用新的Autopilotfunction和MAAS安装openstack,此代码在MAAS服务器上运行。 (Ubuntu 15.10)

从.cloud-install / commands.log输出

 [INFO: 01-05 14:52:22, openstack-install:204] Starting OpenStack Installer v0.99.24 [INFO: 01-05 14:52:22, openstack-install:205] Start command: ['/usr/bin/openstack-install'] [INFO: 01-05 14:52:22, openstack-install:216] Creating juju directories: /home/stian/.cloud-install/juju [INFO: 01-05 14:52:22, openstack-install:269] Running Kilo release [ERROR: 01-05 14:52:22, ev.py:143] Exception in ev.run(): Traceback (most recent call last): File "/usr/share/openstack/cloudinstall/ev.py", line 141, in run self.loop.run() File "/usr/lib/python3/dist-packages/urwid/main_loop.py", line 274, in run self.screen.run_wrapper(self._run) File "/usr/lib/python3/dist-packages/urwid/raw_display.py", line 268, in run_wrapper return fn() File "/usr/lib/python3/dist-packages/urwid/main_loop.py", line 314, in _run self.draw_screen() File "/usr/lib/python3/dist-packages/urwid/main_loop.py", line 566, in draw_screen self.screen.draw_screen(self.screen_size, canvas) File "/usr/lib/python3/dist-packages/urwid/raw_display.py", line 770, in draw_screen self._term_output_file.write(l) UnicodeEncodeError: 'ascii' codec can't encode characters in position 0-70: ordinal not in range(128) [INFO: 01-05 14:52:22, utils.py:85] Cleanup, saving latest config object. 

我遵循这个官方指南: http : //www.ubuntu.com/download/cloud/install-openstack-with-autopilot

我也使用openstack-installer遇到了这个问题,但有一个稍微更新的版本:

 dpkg -l|grep openstack ii openstack 0.99.27-0~1501~stable1~ubuntu15.10.1 all Ubuntu Openstack Installer 

事实certificate,已经安装的urwid版本是1.2.1,并且没有AsyncioEventLoop。 最简单的解决方案是升级urwid,目前为1.3.1:

 sudo pip3 install urwid --upgrade 

您可能需要安装python3-pip才能运行上述命令:

 sudo apt-get install python3-pip 

我做了一个完整的重新安装,一切正常。 我想可能是我没有添加新的存储库来更新apt-get update。