WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: Help with libvirt  (Read 2459 times)

Offline core.dump

  • Jr. Member
  • **
  • Posts: 50
Help with libvirt
« 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

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11515
Re: Help with libvirt
« Reply #1 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).

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14755
Re: Help with libvirt
« Reply #2 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.

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14755
Re: Help with libvirt
« Reply #3 on: March 30, 2020, 03:45:17 AM »
libvirt-python3.6 posted

Offline core.dump

  • Jr. Member
  • **
  • Posts: 50
Re: Help with libvirt
« Reply #4 on: March 31, 2020, 11:24:31 AM »
Thanks a lot, it works!

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14755
Re: Help with libvirt
« Reply #5 on: April 03, 2020, 11:11:07 AM »
..so you'll be submitting a virt-manager extension  ;)