[Python] Issue with running virtual machines throught virt-manager from pacman

Discussão em 'Python' iniciado por Stack, Julho 8, 2025.

  1. Stack

    Stack Membro Participativo

    I successfully installed virt-manager through pacman on Parabola GNU/Linux-libre (based on Arch), but there are issues when installing or running a virtual machine. These problems do not occur when using the flatpak version of virt-manager, but I want the pacman version, which isn't working. This is error:

    Error launching create dialog: could not get a reference to type class

    Traceback (most recent call last):
    File "/usr/share/virt-manager/virtManager/createvm.py", line 176, in show_instance
    cls._instance = vmmCreateVM()
    ~~~~~~~~~~~^^
    File "/usr/share/virt-manager/virtManager/createvm.py", line 248, in __init__
    self._init_state()
    ~~~~~~~~~~~~~~~~^^
    File "/usr/share/virt-manager/virtManager/createvm.py", line 380, in _init_state
    self._os_list = vmmOSList()
    ~~~~~~~~~^^
    File "/usr/share/virt-manager/virtManager/oslist.py", line 44, in __init__
    self._init_state()
    ~~~~~~~~~~~~~~~~^^
    File "/usr/share/virt-manager/virtManager/oslist.py", line 60, in _init_state
    all_os = virtinst.OSDB.list_os(sortkey="label")
    File "/usr/share/virt-manager/virtinst/osdict.py", line 158, in list_os
    self._os_db.get_os_list().get_elements()]
    ^^^^^^^^^^^
    File "/usr/share/virt-manager/virtinst/osdict.py", line 86, in _os_db
    return self._os_loader.get_db()
    ^^^^^^^^^^^^^^^
    File "/usr/share/virt-manager/virtinst/osdict.py", line 78, in _os_loader
    loader = Libosinfo.Loader()
    TypeError: could not get a reference to type class

    Continue reading...

Compartilhe esta Página