missing dependency: python-spice-client-gtk

Bug #1263499 reported by kimj on 2013-12-22
30
This bug affects 7 people
Affects Status Importance Assigned to Milestone
virt-manager (Ubuntu)
Undecided
Unassigned
virt-viewer (Ubuntu)
Undecided
Unassigned

Bug Description

qemu-kvm and, by extension, virt-manager, supports two graphic modes: vnc and the newer spice.

virt-manager always assumes the presence of a python spice module, and lets the user select it without checking if system support is indeed present.
This results in an error when trying to control guests: no module named spiceClientGtk

installing the package python-spice-client-gtk does solve the problem; my suggestion is to either make it a dependency or patch virt-manager to only use and display available protocols.

kimj (emailadhoc) wrote :

Sorry, this reports seems more relevant to the package 'virt-viewer'

Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in virt-manager (Ubuntu):
status: New → Confirmed
Samuel PHAN (iamuel) wrote :

For me, the missing package was:

gir1.2-spice-client-gtk-3.0

I found out from this file:

/usr/share/virt-manager/virtManager/viewers.py

try:
    gi.require_version('SpiceClientGtk', '3.0')
    from gi.repository import SpiceClientGtk
    from gi.repository import SpiceClientGLib
    have_spice_gtk = True
except (ValueError, ImportError):
    have_spice_gtk = False

$ cat /etc/os-release
NAME="Ubuntu"
VERSION="16.04 LTS (Xenial Xerus)"
ID=ubuntu
ID_LIKE=debian
PRETTY_NAME="Ubuntu 16.04 LTS"
VERSION_ID="16.04"
HOME_URL="http://www.ubuntu.com/"
SUPPORT_URL="http://help.ubuntu.com/"
BUG_REPORT_URL="http://bugs.launchpad.net/ubuntu/"
UBUNTU_CODENAME=xenial

Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in virt-viewer (Ubuntu):
status: New → Confirmed
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers