From 9125b6e7ae9b8582f3b99479364a7158a204e0f9 Mon Sep 17 00:00:00 2001 From: Charles Arnold Date: Fri, 5 Jan 2018 22:49:43 +0000 Subject: [PATCH] - bsc#1072012 - openSUSE Tumbleweed, virt-manager: Opening VM GUI fails with "ordinal not in range" (bart.vanassche+novell@gmail.com) - bsc#1074808 - [beta4+maintain update][virt-manager] Error launching details:'ascii' codec can't decode byte virtman-python2-to-python3-conversion.patch OBS-URL: https://build.opensuse.org/package/show/Virtualization/virt-manager?expand=0&rev=399 --- virt-manager.changes | 9 +++++++++ virtman-python2-to-python3-conversion.patch | 22 +++++++++++++++++++++ 2 files changed, 31 insertions(+) diff --git a/virt-manager.changes b/virt-manager.changes index 00c002a3..3602609a 100644 --- a/virt-manager.changes +++ b/virt-manager.changes @@ -1,3 +1,12 @@ +------------------------------------------------------------------- +Fri Jan 5 14:23:21 MST 2018 - carnold@suse.com + +- bsc#1072012 - openSUSE Tumbleweed, virt-manager: Opening VM GUI + fails with "ordinal not in range" (bart.vanassche+novell@gmail.com) +- bsc#1074808 - [beta4+maintain update][virt-manager] Error + launching details:'ascii' codec can't decode byte + virtman-python2-to-python3-conversion.patch + ------------------------------------------------------------------- Tue Jan 2 12:45:56 MST 2018 - carnold@suse.com diff --git a/virtman-python2-to-python3-conversion.patch b/virtman-python2-to-python3-conversion.patch index 27af5245..6936592c 100644 --- a/virtman-python2-to-python3-conversion.patch +++ b/virtman-python2-to-python3-conversion.patch @@ -827,3 +827,25 @@ Index: virt-manager-1.4.3/virtManager/createnet.py PAGE_MAX = PAGE_MISC +Index: virt-manager-1.4.3/virtManager/baseclass.py +=================================================================== +--- virt-manager-1.4.3.orig/virtManager/baseclass.py ++++ virt-manager-1.4.3/virtManager/baseclass.py +@@ -18,6 +18,7 @@ + # MA 02110-1301 USA. + # + ++import io + import logging + import os + import sys +@@ -220,7 +221,8 @@ class vmmGObjectUI(vmmGObject): + + self.builder = Gtk.Builder() + self.builder.set_translation_domain("virt-manager") +- self.builder.add_from_string(open(uifile).read()) ++ ui = io.open(uifile, mode="r", encoding="utf-8").read() ++ self.builder.add_from_string(ui) + + if not topwin: + self.topwin = self.widget(windowname)