我使用的是libcloud 1.2.1和pysphere 0.1.7。尝试连接到ESXi主机时出现以下错误。
Traceback (most recent call last):
File "", line 1, in
File "/Library/Python/2.7/site-packages/libcloud/compute/drivers/vsphere.py", line 152, in init
port=port, url=url)
File "/Library/Python/2.7/site-packages/libcloud/common/base.py", line 1177, in init
self.connection = self.connectionCls(args, *conn_kwargs)
TypeError: init() got an unexpected keyword argument 'retry_delay'我正在使用以下命令连接到主机。
from libcloud.compute.types import Provider
from libcloud.compute.providers import get_driver
vsphere = get_driver(Provider.VSPHERE)
driver = vsphere(host='',username='username',password='password')我只能使用pysphere来实现这一点,但不能使用libcloud。我尝试在互联网上查找和更改图书馆的内容,但都是徒劳的。有人能帮上忙吗?
发布于 2017-01-11 12:52:33
这是v1.5.0<中的一个错误,有一个已提交的修复。您可以使用git am手动应用修补程序:https://patch-diff.githubusercontent.com/raw/apache/libcloud/pull/967.patch
等待v1.6.0,或直接从GitHub干线安装
pip install git+https://github.com/apache/libcloud.git@trunk#egg=apache-libcloudhttps://stackoverflow.com/questions/39787558
复制相似问题