You are not logged in.

#1 2022-10-20 11:58:03

Quadro
Member
Registered: 2022-08-08
Posts: 8

[SOLVED]Virt-manager throws an error

Hello everybody!
Today I tried to start virt-manager since long ago and suddenly stuck with an error google doesnt say much about

 File "/usr/bin/virt-manager", line 6, in <module>
    from virtManager import virtmanager
  File "/usr/share/virt-manager/virtManager/virtmanager.py", line 19, in <module>
    from virtinst import BuildConfig
  File "/usr/share/virt-manager/virtinst/__init__.py", line 43, in <module>
    _set_libvirt_error_handler()
  File "/usr/share/virt-manager/virtinst/__init__.py", line 33, in _set_libvirt_error_handler
    import libvirt
ModuleNotFoundError: No module named 'libvirt'

All of the links found in google say about wrong partial upgrade, however I always do a full one

└─[$] pacman -Syu                                                                                                                                                                                                                                                               [14:41:33]
:: Synchronizing package databases...
 core is up to date
 extra is up to date
 community is up to date
 multilib is up to date
:: Starting full system upgrade...
 there is nothing to do

ACtually, google says nothing more about this issue. Am I the only one who faced it?
I hope not, and casting here experts with sacred knowledge.
Thanks in advance.

Last edited by Quadro (2022-10-22 04:07:26)

Offline

#2 2022-10-20 13:08:01

astralc
Member
Registered: 2022-09-17
Posts: 127

Re: [SOLVED]Virt-manager throws an error

are you also running python 3.10 and have libvirt-python installed?

Last edited by astralc (2022-10-20 13:08:27)

Offline

#3 2022-10-20 14:23:36

Quadro
Member
Registered: 2022-08-08
Posts: 8

Re: [SOLVED]Virt-manager throws an error

astralc wrote:

are you also running python 3.10 and have libvirt-python installed?

No, I do not have python-libvirt installed.

└─[$] pacman -Qs libvirt                                                                                                                                                                                                                                                        [17:21:49]
local/libvirt 1:8.8.0-1
    API for controlling virtualization engines (openvz,kvm,qemu,virtualbox,xen,etc)
local/libvirt-glib 4.0.0-2
    GLib bindings for libvirt
local/libvirt-python 1:8.8.0-1
    libvirt python binding
local/virt-install 4.1.0-1
    Command line tool for creating new KVM , Xen, or Linux container guests using the libvirt hypervisor

Offline

#4 2022-10-20 14:55:09

astralc
Member
Registered: 2022-09-17
Posts: 127

Re: [SOLVED]Virt-manager throws an error

Quadro wrote:

No, I do not have python-libvirt installed.

I wrote libvirt-python which you have installed.

What is your python version?

/usr/bin/python --version

Offline

#5 2022-10-21 06:18:47

Quadro
Member
Registered: 2022-08-08
Posts: 8

Re: [SOLVED]Virt-manager throws an error

astralc wrote:
Quadro wrote:

No, I do not have python-libvirt installed.

I wrote libvirt-python which you have installed.

Oh, sorry, my bad smile

astralc wrote:

What is your python version?

/usr/bin/python --version

it is

└─[$] /usr/bin/python --version                                                                                                                                                                                                                                                
Python 3.10.8

Should be fine,right?

Offline

#6 2022-10-21 10:00:39

Quadro
Member
Registered: 2022-08-08
Posts: 8

Re: [SOLVED]Virt-manager throws an error

astralc wrote:
Quadro wrote:

No, I do not have python-libvirt installed.

I wrote libvirt-python which you have installed.

What is your python version?

/usr/bin/python --version

Unbelievable, but now it works! I have just rebooted.

Offline

Board footer

Powered by FluxBB