Closed parthashp closed 6 years ago
sdk package version: javapackages (1.0.0) pyudev (0.21.0) pyvmomi (6.7.0) service-identity (17.0.0) vapi-client-bindings (1.3.1) vapi-common-client (2.9.0) vapi-runtime (2.9.0) vapi-vmc-client (2.9.0) virtualenv (1.10.1) vmc-app-python-sdk (2.2.0.0.0.15184434) vmc-client-bindings (1.2.0)
python version: Python 2.7.5
vSphere version: vSphere version 6..7
Operating System/Shell (used to run SDK-based apps): RHEL 7.4
python samples/vmc/networks/public_ip_crud.py -r -o -s
Throws below error: Traceback (most recent call last): File "samples/vmc/networks/public_ip_crud.py", line 23, in from samples.vmc.helpers.vmc_task_helper import wait_for_task ImportError: No module named samples.vmc.helpers.vmc_task_helper
It should list MGW public IPs
@parthashp Please edit pythonpath to include samples module: https://github.com/vmware/vsphere-automation-sdk-python#first-set-pythonpath-to-use-sdk-helper-methods
Environment
sdk package version: javapackages (1.0.0) pyudev (0.21.0) pyvmomi (6.7.0) service-identity (17.0.0) vapi-client-bindings (1.3.1) vapi-common-client (2.9.0) vapi-runtime (2.9.0) vapi-vmc-client (2.9.0) virtualenv (1.10.1) vmc-app-python-sdk (2.2.0.0.0.15184434) vmc-client-bindings (1.2.0)
python version: Python 2.7.5
vSphere version: vSphere version 6..7
Operating System/Shell (used to run SDK-based apps): RHEL 7.4
Steps or code snippet to reproduce
python samples/vmc/networks/public_ip_crud.py -r -o -s
Actual behavior
Throws below error: Traceback (most recent call last): File "samples/vmc/networks/public_ip_crud.py", line 23, in
from samples.vmc.helpers.vmc_task_helper import wait_for_task
ImportError: No module named samples.vmc.helpers.vmc_task_helper
Expected behavior
It should list MGW public IPs