[英]Error in libcloud and vsphere integration
我正在將pycloud 0.1.7與libcloud 1.2.1一起使用。 嘗試連接到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進行此操作。 嘗試瀏覽互聯網並更改圖書館內容,但徒勞無功。 有人可以幫忙嗎?
這是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-libcloud
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.