Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[solved] virt-manager: utf-8 codec can't decode byte
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
taskman
n00b
n00b


Joined: 29 Nov 2018
Posts: 39

PostPosted: Thu Dec 13, 2018 3:03 pm    Post subject: [solved] virt-manager: utf-8 codec can't decode byte Reply with quote

Hi,

I am quite new with gentoo and have a problem getting virt-manager to run properly.
Concrete:

when I run
Code:
sudo virt-manager --debug
there are many errors popping.

Code:
Traceback (most recent call last):
  File "/usr/share/virt-manager/virtManager/createvol.py", line 300, in validate
    self.vol.validate()
  File "/usr/share/virt-manager/virtinst/storage.py", line 690, in validate
    self.validate_name(self.pool, self.name)
  File "/usr/share/virt-manager/virtinst/storage.py", line 602, in validate_name
    pool.storageVolLookupByName(name)
  File "/usr/lib64/python3.6/site-packages/libvirt.py", line 3344, in storageVolLookupByName
    if ret is None:raise libvirtError('virStorageVolLookupByName() failed', pool=self)
  File "/usr/lib64/python3.6/site-packages/libvirt.py", line 37, in __init__
    err = libvirtmod.virGetLastError()
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xe4 in position 16: invalid continuation byte

(virt-manager:10617): Gtk-WARNING **: 16:22:33.714: Failed to set text 'Datentr\xe4ger l\xf6schen' from markup due to error parsing markup: Fehler in Zeile 1, Zeichen 28: Ungültiger UTF-8-kodierter Text im Namen - »Datentr\xe4ger l\xf6schen« ist nicht gültig

(virt-manager:10617): Gtk-WARNING **: 16:22:33.714: Failed to set text 'Datentr\xe4ger l\xf6schen' from markup due to error parsing markup: Fehler in Zeile 1, Zeichen 28: Ungültiger UTF-8-kodierter Text im Namen - »Datentr\xe4ger l\xf6schen« ist nicht gültig

(virt-manager:10617): Gtk-WARNING **: 16:22:33.724: Failed to set text 'Datentr\xe4ger l\xf6schen' from markup due to error parsing markup: Fehler in Zeile 1, Zeichen 28: Ungültiger UTF-8-kodierter Text im Namen - »Datentr\xe4ger l\xf6schen« ist nicht gültig

(virt-manager:10617): Gtk-WARNING **: 16:22:33.738: Failed to set text 'Datentr\xe4ger l\xf6schen' from markup due to error parsing markup: Fehler in Zeile 1, Zeichen 28: Ungültiger UTF-8-kodierter Text im Namen - »Datentr\xe4ger l\xf6schen« ist nicht gültig


Most of the translated text I cant read cause of misleading Umlaut.
And every time I try to create/load an image I get the following error ...
Code:
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xe4 in position 16: invalid continuation byte


None other tool has this error, but to be honest I haven't tested kvm/qemu without virt-manager and I don't know how to do that.

Here is a picture of what it looks like ...
https://photos.google.com/search/_tra_/photo/AF1QipOjiZP7n0kYcwP28XNqDV8QuOXQtuUVCU1eS0oM


Some additional info ...

Code:
mm@mypc ~ $ locale -a
C
POSIX
de_DE
de_DE.iso88591
de_DE.iso885915@euro
de_DE@euro
en_US
en_US.iso88591
en_US.utf8


Code:
mm@mypc ~ $ cat /etc/env.d/02locale
LANG="de_DE.iso885915@euro"
LC_COLLATE="C"


I think it has some to do with python or portage.
Code:
mm@mypc ~ $ python -V -V
Python 3.6.6 (default, Dec 12 2018, 20:18:07)
[GCC 8.2.0]

mm@mypc ~ $ emerge --version
Portage 2.3.52 (python 2.7.15-final-0, default/linux/amd64/17.0/no-multilib, gcc-8.2.0, glibc-2.28-r2, 4.14.33-FC.01 x86_64)


I am using bliss-kernel ...
Code:
mm@mypc ~ $ uname -a
Linux mypc 4.14.33-FC.01 #2 SMP Mon Apr 9 10:36:59 EDT 2018 x86_64 AMD FX(tm)-8350 Eight-Core Processor AuthenticAMD GNU/Linux



Addition:

When I change locales every thing works flawless.
Code:
mm@mypc ~ $ cat /etc/env.d/02locale
LANG="en_US.utf8"
LC_COLLATE="C"


This will set the howl system to english, but I don't want that cause of virt-manager only.

Need halp!


Last edited by taskman on Tue Dec 25, 2018 6:14 pm; edited 1 time in total
Back to top
View user's profile Send private message
taskman
n00b
n00b


Joined: 29 Nov 2018
Posts: 39

PostPosted: Tue Dec 25, 2018 6:14 pm    Post subject: Reply with quote

I solved this problem by add de_DE.UTF-8 to my settings and used it as default.
Code:

# echo "de_DE.UTF-8 UTF-8" >> /etc/locale.gen
# locale.gen
# cat /etc/env.d/02locale
LANG="de_DE.UTF-8"
LC_COLLATE="C"
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum