Installation of tog-pegasus fails on openSUSE with
Additional rpm output:
MOF import failed! Check /var/lib/Pegasus/loadmof.log for details.
Traceback (most recent call last):
File "/usr/lib64/python2.7/site-packages/pywbem/mof_compiler.py", line 1765, in <module>
mofcomp.compile_file(fname, options.ns)
...
File "/usr/lib64/python2.7/site-packages/pywbem/cim_http.py", line 482, in wbem_request
s = os.stat(url_)
Looking at cim_http.py around line 482 reveals:
Looks like the "if url.startswith('file:'):" line is missing an "else:" statement ?
The offending command is
/usr/sbin/pegutil /usr/lib64/python2.7/site-packages/pywbem/mof_compiler.py -n root/cimv2 -s /usr/share/mof/cim-current -u /var/run/tog-pegasus/cimxml.socket /usr/share/mof/cim-current/Interop/CIM_Namespace.mof
This seems to fix the error
--- /usr/lib64/python2.7/site-packages/pywbem/cim_http.py~ 2015-03-06 10:53:53.489107675 +0100
+++ /usr/lib64/python2.7/site-packages/pywbem/cim_http.py 2015-03-06 10:54:27.773181173 +0100
@@ -479,6 +479,8 @@
else:
if url.startswith('file:'):
url_ = url[5:]
+ else:
+ url_ = url
try:
s = os.stat(url_)
if S_ISSOCK(s.st_mode):
Fixed as proposed, in v0.8.0-dev.20151008 on the new project presence at GitHub: https://github.com/pywbem/pywbem