Tiny Core Linux

Tiny Core Extensions => TCE Q&A Forum => Topic started by: core.dump on March 29, 2020, 08:38:22 AM

Title: Help with libvirt
Post by: core.dump on March 29, 2020, 08:38:22 AM
Hi,
I'm trying to install and run virt-manager, but it can't find a module called ''libvirt''. Here is the error I get:
Code: [Select]
tc@box:~$ virt-manager
Traceback (most recent call last):
  File "/usr/share/virt-manager/virt-manager", line 19, in <module>
    from virtinst import BuildConfig
  File "/usr/share/virt-manager/virtinst/__init__.py", line 42, in <module>
    _set_libvirt_error_handler()
  File "/usr/share/virt-manager/virtinst/__init__.py", line 32, in _set_libvirt_error_handler
    import libvirt
ModuleNotFoundError: No module named 'libvirt'

I installed libvirt.tcz, libvirt-dev.tcz, libvirt-glib.tcz, libvirt-glib-dev.tcz, libvirt-glib-gir.tcz, and both python.tcz and python3.6.tcz with all their dependencies, and a lot of other packages.
But it seems to require a ''python-libvirt'', or ''libvirt-python'', or something similar, but I can't find it anywhere.

Can someone give me some hints?

P.S. BTW, I'm using Corepure64
Title: Re: Help with libvirt
Post by: Rich on March 29, 2020, 09:29:36 AM
Hi core.dump
This looks very similar to your error:
https://webcache.googleusercontent.com/search?q=cache:OIQl7RYN4ngJ:https://superuser.com/questions/1039738/error-in-running-libvirt-virt-manager-1-3-2+&cd=2&hl=en&ct=clnk&gl=us&client=firefox-b

The response given was:
Quote
The package you're looking for is python-libvirt. You've installed all the libvirt libraries, but not their python bindings.

A side note, you may have better luck doing pip install libvirt. This is Python's package manager, and allows you to upgrade the packages independent of the OS (language libraries in the OS repos are almost always very old).
Title: Re: Help with libvirt
Post by: Juanito on March 29, 2020, 09:49:31 AM
I'm working on libvirt and friends at the moment, so I'll look to add the python bindings.
Title: Re: Help with libvirt
Post by: Juanito on March 30, 2020, 03:45:17 AM
libvirt-python3.6 posted
Title: Re: Help with libvirt
Post by: core.dump on March 31, 2020, 11:24:31 AM
Thanks a lot, it works!
Title: Re: Help with libvirt
Post by: Juanito on April 03, 2020, 11:11:07 AM
..so you'll be submitting a virt-manager extension  ;)