Skip to contentSkip to conversation

Unicode Error

DISCUSSION Gilberto Nunes 2 participants 2 messages May 14, 2009 KVM

lore
Share & tools
lore
#0 lore raw

Hi all

I'm newbie on list.
I have deploy a system here, with a Ubuntu Server running KVM. Well, when I run virt-clone command, I get this error:

CMD: virt-clone -o vm01 -n VMUbuntu-2 -f /virt/ubuntu-2.img

RESULT:
Traceback (most recent call last):
File "/usr/lib/python2.6/logging/__init__.py", line 773, in emit

    stream.write(fs % msg.encode("UTF-8"))

UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 14:
ordinal not in range(128)

I don't know if this is a issue of Ubuntu, libvirt (!)...

Someone can point a way to fix this issue...

Thanks...

Gilberto Nunes Ferreira
TI
Selbetti Gestão de Documentos
Telefone: +55 (47) 3441-6004
Celular: +55 (47) 8861-6672

#1 lore raw
Quoted 15 lines · Gilberto Nunes

Hi all

I'm newbie on list.
I have deploy a system here, with a Ubuntu Server running KVM. Well, when I run virt-clone command, I get this error:

CMD: virt-clone -o vm01 -n VMUbuntu-2 -f /virt/ubuntu-2.img

RESULT:
Traceback (most recent call last):
 File "/usr/lib/python2.6/logging/__init__.py", line 773, in emit stream.write(fs % msg.encode("UTF-8"))
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 14:
ordinal not in range(128)

Quoted 3 lines

I don't know if this is a issue of Ubuntu, libvirt (!)...

Someone can point a way to fix this issue...

it seems that at some point in libvirt (which is mostly written in Python), it transcodes some info between ascii and UTF8. some of that info isn't valid 7-bit ASCII, probably some name. it's safer to use only ascii valid strings, both in names and paths.

of course, it should be reported as a bug to the libvirt people
(http://libvirt.org/bugs.html)....

Signature · 1 line
Javier