|
From: Remi C. <rem...@gm...> - 2017-01-14 13:38:32
|
Hi All
I am using on Windows with Python 2.7 this version of wbem
>>> pywbem.__version__
'0.8.0-dev'
... and I cannot upgrade pywbem due to this error when installing m2crypto:
pip install pywbem --upgrade
...
SWIG/_m2crypto_wrap.c(6519) : fatal error C1083: Cannot open include
file: 'poll.h': No such file or directory
So here is my problem:
>>> conn = pywbem.WBEMConnection("https://192.168.1.88:5989" ,
('my-user','my-pass') )
>>> lst =
conn.EnumerateInstanceNames(ClassName="CIM_Process",namespace="root/cimv2")
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "C:\Python27\lib\site-packages\pywbem\cim_operations.py", line 926,
in EnumerateInstanceNames
**params)
File "C:\Python27\lib\site-packages\pywbem\cim_operations.py", line 672,
in imethodcall
raise CIMError(code, tt[1]['DESCRIPTION'])
pywbem.cim_operations.CIMError: (1, u'CIM_ERR_FAILED: Error initializing
CMPI MI /home/rchateau/TestProviderOpenLMI/tutorial_final/T
UT_UnixProcess.py, the following MI factory function(s) returned an error:
_Generic_Create_InstanceMI, message was: cmpi:Traceback (
most recent call last):<br> File
"/usr/lib64/python2.7/site-packages/cmpi_pywbem_bindings.py", line 34, in
<module><br> from pyw
bem.cim_provider2 import ProviderProxy<br>ImportError: No module named
cim_provider2<br>')
With other classes such as LMI_Account or PG_UnixProcess (Which is a
derived class of CIM_Process), it works fine.
Any clue, please ?
Thanks
Remi
PS: Also, still with the same fault command, sometimes it loses a
connection with the message:
*EnumerateInstanceNames: entity_host=http://192.168.1.88:5988
<http://192.168.1.88:5988> nameSpace=root/cimv2 className=CIM_UnixProcess.
Caught:(1, u'CIM_ERR_FAILED: Lost connection with cimprovagt
"pyCmpiProvider".')*
|