You are not logged in.

#1 2016-10-05 17:04:19

kgizdov
Package Maintainer (PM)
From: Edinburgh, UK
Registered: 2015-12-08
Posts: 113

[Solved] virt-manager does not start with python error

Hi,

I'm trying to get the GUI manager for libvirt -> virt-manager up and working, but I keep getting this error:

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 39, in <module>
    from . import util
  File "/usr/share/virt-manager/virtinst/util.py", line 28, in <module>
    import libvirt
ImportError: dynamic module does not define init function (initlibvirt)

I tried looking for this error, but it seems that specific one is nowhere to be found. Similar errors are due to python version mismatch, but I double-checked and I have all the correct python2 dependencies. All the correct modules and services are loaded successfully and tested, it's just the GUI doesn't load.

Any ideas?

Thanks.

EDIT: This seems to be a bug with libvirt. I get the same thing when I manually run virt-install:

Traceback (most recent call last):
  File "/usr/share/virt-manager/virt-install", line 27, in <module>
    import libvirt
ImportError: dynamic module does not define init function (initlibvirt)

Last edited by kgizdov (2016-10-11 22:54:59)

Offline

#2 2016-10-11 21:11:53

jethronsun7
Member
Registered: 2016-04-29
Posts: 44
Website

Re: [Solved] virt-manager does not start with python error

Take a look at this https://bugs.archlinux.org/task/51247.

I just tried and the virt-manager seems working all fine. I don't think it is a bug within virt-manger, did you ever mess with the python env?

Offline

#3 2016-10-11 22:55:30

kgizdov
Package Maintainer (PM)
From: Edinburgh, UK
Registered: 2015-12-08
Posts: 113

Re: [Solved] virt-manager does not start with python error

Sorry, forgot to update that I solved my issue by fixing the python env that was polluted by and AUR package.

Offline

Board footer

Powered by FluxBB