You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I ran py script, error below appeared:
$ python3 esxiresource.py
Traceback (most recent call last):
File "esxiresource.py", line 4, in
my_cluster = connect.connect("192.168.1.10", 443, "root", "password")
AttributeError: module 'pyVim.connect' has no attribute 'connect'
checked with pip
$ pip3 list | grep pyvmomi
DEPRECATION: The default format will switch to columns in the future. You can use --format=(legacy|columns) (or define a format=(legacy|columns) in your pip.conf under the [list] section) to disable this warning.
pyvmomi (8.0.2.0)
connect.Disconnect(my_cluster)
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
When I ran py script, error below appeared:
$ python3 esxiresource.py
Traceback (most recent call last):
File "esxiresource.py", line 4, in
my_cluster = connect.connect("192.168.1.10", 443, "root", "password")
AttributeError: module 'pyVim.connect' has no attribute 'connect'
code:
import pyVim
from pyVim import connect
my_cluster = connect.connect("192.168.1.10", 443, "root", "password")
checked with pip
$ pip3 list | grep pyvmomi
DEPRECATION: The default format will switch to columns in the future. You can use --format=(legacy|columns) (or define a format=(legacy|columns) in your pip.conf under the [list] section) to disable this warning.
pyvmomi (8.0.2.0)
connect.Disconnect(my_cluster)
Where else I should check?
Beta Was this translation helpful? Give feedback.
All reactions