Skip to content

Instantly share code, notes, and snippets.

@hartsock
Created July 1, 2014 18:09
Show Gist options
  • Select an option

  • Save hartsock/f47251b52d9e224251ea to your computer and use it in GitHub Desktop.

Select an option

Save hartsock/f47251b52d9e224251ea to your computer and use it in GitHub Desktop.
Trace from getallvms.py when run on Python 3.
pyvmomi/sample/getallvms.py -s test_host -u test_user -p test_password
Traceback (most recent call last):
File "/Users/hartsocks/PycharmProjects/pyvmomi/sample/getallvms.py", line 22, in <module>
from pyVim.connect import SmartConnect, Disconnect
File "/Users/hartsocks/PycharmProjects/pyvmomi/pyVim/connect.py", line 57, in <module>
from pyVmomi import vim, vmodl, SoapStubAdapter, SessionOrientedStub
ImportError: cannot import name 'vim'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment