pyvmomi
pyvmomi copied to clipboard
Invalid automatic type import
Describe the bug
When trying to import using PyCharm, using for example VirtualMachine
, it imports pyVmomi.vim.VirtualMachine
, but the correct import is vim.VirtualMachine
. This causes errors during runtime.
Reproduction steps
-
Try to import some type automatically
-
Run the code and get error:
ImportError: cannot import name 'VirtualMachine' from 'pyVmomi.vim' (unknown location)
Expected behavior
Import would be correct: from vim import VirtualMachine
Additional context
No response