vmware / vsphere-automation-sdk-python

Python samples, language bindings, and API reference documentation for vSphere, VMC, and NSX-T using the VMware REST API
MIT License
746 stars 312 forks source link

public_ip_crud.py throws error #84

Closed parthashp closed 6 years ago

parthashp commented 6 years ago

Environment

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

tianhao64 commented 6 years ago

@parthashp Please edit pythonpath to include samples module: https://github.com/vmware/vsphere-automation-sdk-python#first-set-pythonpath-to-use-sdk-helper-methods