[libvirt-users] virt-manager and libvirt-python

Cole Robinson crobinso at redhat.com
Fri Aug 15 16:19:34 UTC 2014


On 08/15/2014 03:03 AM, Фарит Мутугуллин wrote:
> Hello! I'm trying to work with virt-manager but getting SIGTRAP signal.
> It is done with gdb under MinGW32 on Windows 7 64-bit. I have Python 2.7.8.
> 32-bit.
> 
> As I can see from backtrace ( http://pastebin.com/JhN6XgYb ), there is
> something wrong with libvirtmod.pyd.
> Also I couldn't find how to solve "typelib for AppIndicator3" error.
> 

That typelib error is coming from virt-manager's attempt to import
AppIndicator, which isn't used by all distros/desktop environments. It's
actually nonfatal in this case and just informative.

The actual error is:

Traceback (most recent call last):
  File "f:\Projects\virt-manager\virtManager\baseclass.py", line 46, in cb
    return func(*args, **kwargs)
  File "f:\Projects\virt-manager\virtManager\connection.py", line 1079, in
_open_notif
y
    self.get_uri(), self.caps.xml)
  File "f:\Projects\virt-manager\virtManager\connection.py", line 255, in <lambda>
    caps = property(lambda self: getattr(self, "_backend").caps)
  File "f:\Projects\virt-manager\virtinst\connection.py", line 122, in _get_caps
    self._libvirtconn.getCapabilities())
  File "f:\Projects\virt-manager\virtinst\capabilities.py", line 475, in __init__
    RuntimeError)
  File "f:\Projects\virt-manager\virtinst\util.py", line 262, in parse_node_helper
    libxml2.XML_PARSE_NOBLANKS)
  File "c:\Python27\lib\site-packages\libxml2.py", line 1326, in readMemory
    return xmlDoc(_obj=ret)
  File "c:\Python27\lib\site-packages\libxml2.py", line 3905, in __init__
    raise TypeError, 'xmlDoc needs a PyCObject argument'
TypeError: xmlDoc needs a PyCObject argument


I have never seen that error before, but I imagine it's something wrong with
libxml2 compilation or install. Do you have any other libxml using apps, and
if so do they work correctly?

- Cole

> So I try to debug libvirt-python. For doing this, I building libvirt-python
> with -g flag.  
> 
> python setup.py build --compiler=mingw32 -g install
> 
> But I have undefined reference to _imp__Py_InitModule4.
> http://pastebin.com/9gw1zsmw
> Earlier I built Python with debug info as -lpython27_d was needed. 
> 
> I tried to build with python_d, but got the same error. 
> 
> Nevertheless, when I build without -g, everything builds just fine.
> 
> Could you tell me what am I doing wrong? Or is SIGTRAP coming from somewhere else?
> What SIGTRAP can be caused by?
> 
> 
> _______________________________________________
> libvirt-users mailing list
> libvirt-users at redhat.com
> https://www.redhat.com/mailman/listinfo/libvirt-users
> 




More information about the libvirt-users mailing list