Page 1 of 1

PYBWEM Import Error, No module named pybwem

Posted: Wed Jul 12, 2017 6:38 pm
by Cubert
If you get the following error in your Scripts or Command tabs for an probe agent
PROBE -> [ Traceback (most recent call last):
File "C:\Python27\check_esxi_hardware.py", line 249, in <module>
import pywbem
ImportError: No module named pywbem ]
Then your system when installing Python did not allow it to also install the setup tools modules with Python. To fix this issue you need to first download and copy to your probe agents c:\python27 folder the get-pip.py file below. Afterwards run the file as described below.

Download get-pip.py to c:\python27
https://bootstrap.pypa.io/get-pip.py

In command window go to C:\python27

Run:

Code: Select all

CD c:\python27
python.exe get-pip.py

This will install the setup tools module for our next step.

After that has complete:

RUN:

Code: Select all


CD "C:\Python27\pywbem_tmp" 
"C:\Python27\python.exe" .\setup.py install

This will complete the install of the PYWBEM modules and allow the Probe to start working.

To manually test probe

Code: Select all

C:\Python27\Python.exe -W ignore C:\Python27\check_esxi_hardware.py -H hostIP -U root -P "ThePassword" 
This should spit out the current status and the hardware build the system is reporting