You are not logged in.

#1 2017-04-12 08:16:49

dasmaeh
Member
Registered: 2017-04-12
Posts: 2

virt-manager does not start

Since yesterday's update virt-manager does not start anymore. Starting from terminal gives the following 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 41, in <module>
    from virtinst.uri import URI
  File "/usr/share/virt-manager/virtinst/uri.py", line 23, in <module>
    from .cli import parse_optstr_tuples
  File "/usr/share/virt-manager/virtinst/cli.py", line 38, in <module>
    from .clock import Clock
  File "/usr/share/virt-manager/virtinst/clock.py", line 20, in <module>
    from .xmlbuilder import XMLBuilder, XMLChildProperty, XMLProperty
  File "/usr/share/virt-manager/virtinst/xmlbuilder.py", line 28, in <module>
    import libxml2
  File "/usr/lib/python3.6/site-packages/libxml2.py", line 1, in <module>
    import libxml2mod

To me this looks like a python problem but I could not resolve it so far. Any ideas?

Offline

#2 2017-04-12 12:33:15

x33a
Forum Fellow
Registered: 2009-08-15
Posts: 4,587

Re: virt-manager does not start

Please post a full log of all the packages that were updated.

Offline

#3 2017-04-12 16:57:37

dasmaeh
Member
Registered: 2017-04-12
Posts: 2

Re: virt-manager does not start

[2017-04-11 21:09] [PACMAN] Running 'pacman -Syu'
[2017-04-11 21:09] [PACMAN] synchronizing package lists
[2017-04-11 21:09] [PACMAN] starting full system upgrade
[2017-04-11 21:10] [ALPM] transaction started
[2017-04-11 21:10] [ALPM] removed libvirt-python (3.2.0-1)
[2017-04-11 21:10] [ALPM] upgraded python2-setuptools (1:34.4.0-1 -> 1:34.4.1-1)
[2017-04-11 21:10] [ALPM] installed libvirt-python2 (3.2.0-2)
[2017-04-11 21:10] [ALPM] upgraded php (7.1.3-1 -> 7.1.4-1)
[2017-04-11 21:10] [ALPM] upgraded php-apache (7.1.3-1 -> 7.1.4-1)
[2017-04-11 21:10] [ALPM] upgraded php-mcrypt (7.1.3-1 -> 7.1.4-1)
[2017-04-11 21:10] [ALPM] upgraded poedit (1:1.8.11-4 -> 1:2.0.1-1)
[2017-04-11 21:10] [ALPM] upgraded python-setuptools (1:34.4.0-1 -> 1:34.4.1-1)
[2017-04-11 21:10] [ALPM] upgraded python-pbr (2.0.0-1 -> 2.1.0-1)
[2017-04-11 21:10] [ALPM] upgraded python2-pbr (2.0.0-1 -> 2.1.0-1)
[2017-04-11 21:10] [ALPM] upgraded virt-install (1.4.1-1 -> 1.4.1-2)
[2017-04-11 21:10] [ALPM] upgraded virt-manager (1.4.1-1 -> 1.4.1-2)
[2017-04-11 21:10] [ALPM-SCRIPTLET] ldconfig: /usr/lib/libKF5TextWidgets.so.5.13.0 ist keine ELF-Datei - sie weist falsche »magische Bytes« am Beginn auf.
[2017-04-11 21:10] [ALPM-SCRIPTLET] 
[2017-04-11 21:10] [ALPM] transaction completed
[2017-04-11 21:10] [ALPM] running 'glib-compile-schemas.hook'...
[2017-04-11 21:10] [ALPM] running 'gtk-update-icon-cache.hook'...
[2017-04-11 21:10] [ALPM] running 'systemd-update.hook'...
[2017-04-11 21:10] [ALPM] running 'update-desktop-database.hook'...

After this virt-manager stopped working.

Offline

#4 2017-06-16 08:01:31

mhk
Member
Registered: 2016-10-26
Posts: 4

Re: virt-manager does not start

I hit the same problem.

$ id
uid=1000(mhk) gid=100(users) groups=100(users),10(wheel),91(video),92(audio),994(libvirt)
$ virt-manager
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 41, in <module>
    from virtinst.uri import URI
  File "/usr/share/virt-manager/virtinst/uri.py", line 23, in <module>
    from .cli import parse_optstr_tuples
  File "/usr/share/virt-manager/virtinst/cli.py", line 38, in <module>
    from .clock import Clock
  File "/usr/share/virt-manager/virtinst/clock.py", line 20, in <module>
    from .xmlbuilder import XMLBuilder, XMLChildProperty, XMLProperty
  File "/usr/share/virt-manager/virtinst/xmlbuilder.py", line 28, in <module>
    import libxml2
  File "/usr/lib/python3.6/site-packages/libxml2.py", line 1, in <module>
    import libxml2mod
ImportError: dynamic module does not define init function (initlibxml2mod)

After a long time I wanted to use virt-manager and saw the exact same error. I did try to remove virt-manager, purge all orphans and reinstall said package. No luck.

Then by chance I did a probably stupid thing:

sudo virt-manager

And the GUI showed up.

Now, I have no clue what's the source of the problem, but I guess this is a permission issue. Anyone else can reproduce this?

Offline

#5 2017-06-16 15:06:46

loqs
Member
Registered: 2014-03-06
Posts: 17,362

Re: virt-manager does not start

File "/usr/lib/python3.6/site-packages/libxml2.py", line 1, in <module>

The python 3 version of the module is being used instead of python 2.  Have you got any environment variables set that would affect python?
Edit:
Just had time to install it here,  starts without error under a normal user.

$ virt-manager

Last edited by loqs (2017-06-16 16:13:23)

Offline

Board footer

Powered by FluxBB