作者热门文章
- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
我通过 pip 安装了 openstack 客户端:
pip3 install python-openstackclient
$ openstack server list
+--------------------------------------+------------------+--------+--------------------------------+---------------+-----------+
| ID | Name | Status | Networks | Image | Flavor |
+--------------------------------------+------------------+--------+--------------------------------+---------------+-----------+
$ openstack
Exception raised: When using gi.repository you must not import static modules like "gobject". Please change all occurrences of "import gobject" to "from gi.repository import GObject". See: https://bugzilla.gnome.org/show_bug.cgi?id=709183
最佳答案
我在 Ubuntu 16.04.4 LTS (Xenial Xerus) 上遇到了同样的问题。
作为当前的解决方法,我建议将 'cmd2' 包版本降级到 0.6.8 并完全卸载 'pyperclip' 包。我已经使用 openstackclient 版本 3.14.0 和 3.14.1 进行了测试,它可以工作。
以下链接可能会在将来为您提供错误修复:https://bugs.launchpad.net/ubuntu/+source/python-openstackclient/+bug/1722553 .
关于python-3.x - 启动 python-openstackclient 时出错,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/51086374/
已安装的版本: python-openstackclient==3.17.0 osc-lib==1.11.1 除以下命令外,所有 openstack 命令似乎都有效: openstack stack
我通过 pip 安装了 openstack 客户端: pip3 install python-openstackclient 安装成功。当我尝试列出服务器时,它可以工作: $ openstack se
我是一名优秀的程序员,十分优秀!