2016-09-30 49 views
0

我正在使用libcloud 1.2.1和pysphere 0.1.7。嘗試連接到ESXi主機時出現以下錯誤。libcloud和vsphere集成中的錯誤

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來做到這一點。試圖在互聯網上看,改變圖書館的內容,但徒勞無功。誰能幫忙?

回答