Closed dlayne1 closed 6 months ago
Can you share the complete error from console, the Traceback? To verify all packages were installed, do a pip list and share the result.
Libraries relevant to automation SDK are
lxml 5.1.0 nsx-policy-python-sdk 4.1.2.0.0 nsx-python-sdk 4.1.2.0.0 nsx-vmc-aws-integration-python-sdk 4.1.2.0.0 nsx-vmc-policy-python-sdk 4.1.2.0.0 pyvmomi 8.0.2.0.1 requests 2.31.0 six 1.16.0 urllib3 2.2.1 vapi-common-client 2.44.0 vapi-runtime 2.44.0 vcenter-bindings 4.2.0 vmwarecloud-aws 1.64.0 vmwarecloud-draas 1.23.0 vsphere-automation-sdk 1.86.0
Pip List: Complete Error:
create_vsphere_client is proided by vcenter-bindings which is present in the list of installed packages. Btw, if you have installed the SDK on a virtual environment then you need to activate that environment in the terminal before executing CreateVSphereLibraryItem.py
I was able to get it to work after setting up a virtual environment then installing the SDK. Thank you!
Describe the bug
I tried installing the SDK using pip as instructed in the readme but I am still being prompted with an error when I try to run my code with the SDK to create a session. The error is ModuleNotFoundError: No module named 'vmware'. The line of code that is prompting the error is from vmware.vapi.vsphere.client import create_vsphere_client. I am running Windows with Python at version 3.9.9 and PIP at version 24.0.
Reproduction steps
Expected behavior
The expected behavior is to be able to import the SDK Packages into my code.
Additional context
No response