Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Other Things Gentoo
  • Search

[solved] virt-manager: utf-8 codec can't decode byte

Still need help with Gentoo, and your question doesn't fit in the above forums? Here is your last bastion of hope.
Post Reply
Advanced search
2 posts • Page 1 of 1
Author
Message
taskman
n00b
n00b
Posts: 39
Joined: Thu Nov 29, 2018 3:07 am

[solved] virt-manager: utf-8 codec can't decode byte

  • Quote

Post by taskman » Thu Dec 13, 2018 3:03 pm

Hi,

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

when I run

Code: Select all

sudo virt-manager --debug
there are many errors popping.

Code: Select all

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: Select all

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_/ ... UVCU1eS0oM


Some additional info ...

Code: Select all

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: Select all

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: Select all

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: Select all

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: Select all

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.
Top
taskman
n00b
n00b
Posts: 39
Joined: Thu Nov 29, 2018 3:07 am

  • Quote

Post by taskman » Tue Dec 25, 2018 6:14 pm

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

Code: Select all

# 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"
Top
Post Reply

2 posts • Page 1 of 1

Return to “Other Things Gentoo”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy