|
From: Andreas M. <ma...@de...> - 2017-01-16 09:35:07
|
Remi, On your pywbem upgrade problem: If you use the Python package M2CryptoWin32/64 instead of M2Crypto, you get a binary installation that does not invoke Swig. This is what the setup.py of Pywbem does automatically. However, because we provide pywbem as a wheel-type package, its setup.py does not get invoked at install time anymore. Instead, its dependencies have been gathered at package build time and have been transformed into a data format that is part of the wheel package. In that data format, the runtime-dependent distinction between M2Crypto and M2CryptoWin32/64 gets lost, and the wheel package selects M2Crypto also when being installed on Windows. I don't know yet how to improve that situation. In the mean time, if you can ensure somehow that M2CryptoWin32/64 is installed instead of M2Crypto, your upgrade problem will be solved. An alternative would be to go with M2Crypto and to provide the missing include files for the Swig processing during M2Crypto installation. The specific file showing up as missing is from openssl. See this article: http://stackoverflow.com/questions/25110774/how-to-install-m2crypto-on-windows On the CIMError: It seems your provider is a Python provider based upon the cim_provider2 Python package. That package is no longer part of the pywbem PyPI package. We moved it into an "attic" subdirectory, because we were not aware of any usage. For now, please copy the file cim_provider2.py from the "attic" subdirectory of a pywbem repo clone into the Python site-packages directory that is used with that CIMOM. Ensure that you can do an import of the "cim_provider2" module. Which CIMOM are you using with that? Andy Andreas Maier IBM Senior Technical Staff Member, OpenStack for z Systems IBM Research & Development Laboratory Boeblingen, Germany ma...@de..., +49-7031-16-3654 ________________________________________________________________________ IBM Deutschland Research & Development GmbH Vorsitzende des Aufsichtsrats: Martina Koederitz Geschaeftsfuehrung: Dirk Wittkopp Sitz der Gesellschaft: Boeblingen Registergericht: Amtsgericht Stuttgart, HRB 243294 ----- Forwarded by Andreas Maier/Germany/IBM on 16.01.2017 09:11 ----- From: Remi Chateauneu <rem...@gm...> To: pywbem-devel <pyw...@li...> Date: 14.01.2017 14:38 Subject: [pywbem-devel] (no subject) 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 nameSpace=root/cimv2 className=CIM_UnixProcess. Caught:(1, u'CIM_ERR_FAILED: Lost connection with cimprovagt "pyCmpiProvider".') ------------------------------------------------------------------------------ Developer Access Program for Intel Xeon Phi Processors Access to Intel Xeon Phi processor-based developer platforms. With one year of Intel Parallel Studio XE. Training and support from Colfax. Order your platform today. http://sdm.link/xeonphi _______________________________________________ pywbem-devel mailing list pyw...@li... https://lists.sourceforge.net/lists/listinfo/pywbem-devel |