首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >libcloud和vsphere集成出错

libcloud和vsphere集成出错
EN

Stack Overflow用户
提问于 2016-09-30 16:57:57
回答 1查看 80关注 0票数 0

我使用的是libcloud 1.2.1和pysphere 0.1.7。尝试连接到ESXi主机时出现以下错误。

代码语言:javascript
复制
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'

我正在使用以下命令连接到主机。

代码语言:javascript
复制
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。我尝试在互联网上查找和更改图书馆的内容,但都是徒劳的。有人能帮上忙吗?

EN

回答 1

Stack Overflow用户

发布于 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干线安装

代码语言:javascript
复制
pip install git+https://github.com/apache/libcloud.git@trunk#egg=apache-libcloud
票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/39787558

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档