LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   virt-manager fails to start with "ImportError: No module named libvirt" (https://www.linuxquestions.org/questions/slackware-14/virt-manager-fails-to-start-with-importerror-no-module-named-libvirt-4175559586/)

glupa4e 11-22-2015 01:17 PM

virt-manager fails to start with "ImportError: No module named libvirt"
 
Hello,
i am trying to follow the steps described here. Unfortunately when i start the application as non root user, i get:
Code:

Traceback (most recent call last):
  File "/usr/share/virt-manager/virt-manager", line 33, in <module>
    from virtinst import util as util
  File "/usr/share/virt-manager/virtinst/__init__.py", line 37, in <module>
    from . import util
  File "/usr/share/virt-manager/virtinst/util.py", line 27, in <module>
    import libvirt
ImportError: No module named libvirt

I think i installed all the necessary dependencies. I also followed these instructions. It is still not working. By the way i also installed pygobject3 and python3.

Any idea how to fix that?

ponce 11-22-2015 01:46 PM

temporarily remove python3, then build this whole queue: after you have built and installed all the packages listed there you can reinstall python3.

glupa4e 11-25-2015 02:04 PM

it workded!
 
Dear ponce,

thank you very much for your piece of advice! I removed all the packages i had installed including python3. Then i created an .sqf file as described in the link you posted. I processed that file with sbopkg and then reinstalled python3. Now i have virt-manager starting.

Thanks a lot!

P.S. I think that the instructions written on the slackware docs site could be updated with the things you posted.


All times are GMT -5. The time now is 05:59 PM.