<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
    <title></title>
  </head>
  <body text="#000000" bgcolor="#ffffff">
    On 12/02/2011 04:41 AM, Sharad Mishra wrote:
    <blockquote
cite="mid:OFAC7251A7.321CACA8-ON87257959.007F1205-88257959.007F65AC@us.ibm.com"
      type="cite">
      <pre wrap="">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)

</pre>
    </blockquote>
    I already have pywbem installed, see the dpkg listing i posted
    below.<br>
    I had spoken with Eduardo on this, and did some debug with him, it
    seems<br>
    the pyXML package has been deprecated since 2009 ( found from
    launchpad.net)<br>
    and ubuntu does not support and/or maintain it. Many of the google
    results tell me<br>
    that one needs to use the core python xml bindings instead of pyXML
    which is <br>
    not  a maintained project hence discontinued.  Eduardo was helping
    make<br>
    changes to use libxml2 instead of pyXML . <br>
    <blockquote
cite="mid:OFAC7251A7.321CACA8-ON87257959.007F1205-88257959.007F65AC@us.ibm.com"
      type="cite">
      <pre wrap="">Regards,
Sharad Mishra
Open Virtualization
Linux Technology Center
IBM

<a class="moz-txt-link-abbreviated" href="mailto:libvirt-cim-bounces@redhat.com">libvirt-cim-bounces@redhat.com</a> wrote on 12/01/2011 06:07:20 AM:

</pre>
      <blockquote type="cite">
        <pre wrap="">Deepak Shetty <a class="moz-txt-link-rfc2396E" href="mailto:deepakcs@linux.vnet.ibm.com"><deepakcs@linux.vnet.ibm.com></a>
Sent by: <a class="moz-txt-link-abbreviated" href="mailto:libvirt-cim-bounces@redhat.com">libvirt-cim-bounces@redhat.com</a>

12/01/2011 06:07 AM

Please respond to
List for discussion and development of libvirt CIM
</pre>
      </blockquote>
      <pre wrap=""><a class="moz-txt-link-rfc2396E" href="mailto:libvirt-cim@redhat.com"><libvirt-cim@redhat.com></a>
</pre>
      <blockquote type="cite">
        <pre wrap="">
To

<a class="moz-txt-link-abbreviated" href="mailto:libvirt-cim@redhat.com">libvirt-cim@redhat.com</a>

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,
</pre>
      </blockquote>
      <pre wrap="">destroy_netpool, \
</pre>
      <blockquote type="cite">
        <pre wrap=""> 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
<a class="moz-txt-link-freetext" href="http://wiki.libvirt.org/page/Cimtest_setup">http://wiki.libvirt.org/page/Cimtest_setup</a> wiki.
there is no pyxml eq. on ubuntu ( I am on ubuntu host) but i do have
</pre>
      </blockquote>
      <pre wrap="">these...
</pre>
      <blockquote type="cite">
        <pre wrap="">
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
</pre>
      </blockquote>
      <pre wrap="">python2
</pre>
      <blockquote type="cite">
        <pre wrap="">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
</pre>
      </blockquote>
      <pre wrap="">wbem
</pre>
      <blockquote type="cite">
        <pre wrap="">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
<a class="moz-txt-link-abbreviated" href="mailto:Libvirt-cim@redhat.com">Libvirt-cim@redhat.com</a>
<a class="moz-txt-link-freetext" href="https://www.redhat.com/mailman/listinfo/libvirt-cim">https://www.redhat.com/mailman/listinfo/libvirt-cim</a></pre>
        <pre wrap="">
<fieldset class="mimeAttachmentHeader"></fieldset>
_______________________________________________
Libvirt-cim mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Libvirt-cim@redhat.com">Libvirt-cim@redhat.com</a>
<a class="moz-txt-link-freetext" href="https://www.redhat.com/mailman/listinfo/libvirt-cim">https://www.redhat.com/mailman/listinfo/libvirt-cim</a></pre>
      </blockquote>
    </blockquote>
    <br>
  </body>
</html>