Quantcast
Channel: VMware Communities : Discussion List - vSphere Client SDK
Viewing all articles
Browse latest Browse all 2218

ModuleNotFoundError: No module named 'vmware'

$
0
0

Hi,

i tested this code ;

 

import requests

import urllib3

 

from vmware.vapi.vsphere.client import create_vsphere_client

session = requests.session()

 

# Disable cert verification for demo purpose.
# This is not recommended in a production environment.
session.verify = False

# Disable the secure connection warning for demo purpose.
# This is not recommended in a production environment.
urllib3.disable_warnings(urllib3.exceptions.InsecureRequestWarning)

 

# Connect to a vCenter Server using username and password
vsphere_client = create_vsphere_client(server='10.10.10.200', username='root', password='password', session=session)

 

# List all VMs inside the vCenter Server
vsphere_client.vcenter.VM.list()

 

error: ModuleNotFoundError: No module named 'vmware'

 

Please how fix this error ?


Viewing all articles
Browse latest Browse all 2218

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>