On 12/02/2011 04:41 AM, Sharad Mishra wrote:
Most likely you are missing pywbem. I am attaching a tar file. After
untaring, run "python setup.py build" and "python setup.py install"
Also make sure you have PyXML installed.
(See attached file: pywbem-0.7.0.tar.gz)
I already have pywbem installed, see the dpkg listing i posted below.
I had spoken with Eduardo on this, and did some debug with him, it seems
the pyXML package has been deprecated since 2009 ( found from
launchpad.net)
and ubuntu does not support and/or maintain it. Many of the google
results tell me
that one needs to use the core python xml bindings instead of pyXML
which is
not a maintained project hence discontinued. Eduardo was helping make
changes to use libxml2 instead of pyXML .
Regards,
Sharad Mishra
Open Virtualization
Linux Technology Center
IBM
libvirt-cim-bounces(a)redhat.com wrote on 12/01/2011 06:07:20 AM:
> Deepak Shetty<deepakcs(a)linux.vnet.ibm.com>
> Sent by: libvirt-cim-bounces(a)redhat.com
>
> 12/01/2011 06:07 AM
>
> Please respond to
> List for discussion and development of libvirt CIM
<libvirt-cim(a)redhat.com>
> To
>
> libvirt-cim(a)redhat.com
>
> cc
>
> Subject
>
> [Libvirt-cim] [TEST] Unable to run cimtest on qemu kvm setup
>
> dpkshetty@deepak-ThinkPad-T60p
> :~/work/cimtest/cimtest$ sudo
> CIM_NS=root/virt CIM_USER=root CIM_PASS=****** ./runtests libvirt-cim
> -i localhost -c -d -v KVM -g ComputerSys
> tem -t 04_defineStartVS.py
> Starting test suite: libvirt-cim
> Traceback (most recent call last):
> File "main.py", line 42, in<module>
> from XenKvmLib.common_util import create_netpool_conf,
destroy_netpool, \
> File "./lib/XenKvmLib/common_util.py", line 31, in<module>
> from XenKvmLib.test_xml import *
> File "./lib/XenKvmLib/test_xml.py", line 32, in<module>
> from xml import xpath
> ImportError: cannot import name xpath
>
>
> I have all the pre-req installed as mentioned on the
>
http://wiki.libvirt.org/page/Cimtest_setup wiki.
> there is no pyxml eq. on ubuntu ( I am on ubuntu host) but i do have
these...
> dpkshetty@deepak-ThinkPad-T60p:~/work/cimtest/cimtest$ dpkg -l | grep
> python | grep xml
> ii python-libxml2 2.7.8.dfsg-2
> Python bindings for the GNOME XML library
> ii python-lxml 2.3-0.1
> pythonic binding for the libxml2 and libxslt libraries
> dpkshetty@deepak-ThinkPad-T60p:~/work/cimtest/cimtest$
>
> dpkshetty@deepak-ThinkPad-T60p:~/work/cimtest/cimtest$ dpkg -l | grep
python2
> ii libpython2.7 2.7.1-5ubuntu2
> Shared Python runtime library (version 2.7)
> ii python2.6 2.6.6-6ubuntu7
> An interactive high-level object-oriented language
> (version 2.6)
> ii python2.6-minimal 2.6.6-6ubuntu7
> A minimal subset of the Python language (version 2.6)
> ii python2.7 2.7.1-5ubuntu2
> An interactive high-level object-oriented language
> (version 2.7)
> ii python2.7-dev 2.7.1-5ubuntu2
> Header files and a static library for Python (v2.7)
> ii python2.7-minimal 2.7.1-5ubuntu2
> A minimal subset of the Python language (version 2.7)
> dpkshetty@deepak-ThinkPad-T60p:~/work/cimtest/cimtest$
>
> dpkshetty@deepak-ThinkPad-T60p:~/work/cimtest/cimtest$ dpkg -l | grep
wbem
> ii python-pywbem 0.7.0-4
> Python WBEM Client and Provider Interface
> dpkshetty@deepak-ThinkPad-T60p:~/work/cimtest/cimtest$
>
>
> Can someone help or tell me what am I missing ?
>
> My aim is to invole the create/define system flow via libvirt-cim.
>
> thanx,
> deepak_______________________________________________
> Libvirt-cim mailing list
> Libvirt-cim(a)redhat.com
>
https://www.redhat.com/mailman/listinfo/libvirt-cim
>
>
> _______________________________________________
> Libvirt-cim mailing list
> Libvirt-cim(a)redhat.com
>
https://www.redhat.com/mailman/listinfo/libvirt-cim