labelImg icon indicating copy to clipboard operation
labelImg copied to clipboard

无法在Windows下保存xml文件,labelimg显示:LookupError: unknown encoding: cp65001

Open Huizhaoaaaa opened this issue 5 years ago • 6 comments

When I run the labelimg.exe file under Windows, after the image is marked, it cannot be saved as an xml file, and the error is as follows: Traceback (most recent call last): File "", line 1291, in saveFile File "", line 1320, in _saveFile File "", line 800, in saveLabels LookupError: unknown encoding: cp65001

Huizhaoaaaa avatar Aug 26 '19 01:08 Huizhaoaaaa

I used python version and it is fine

lzyang2000 avatar Aug 28 '19 14:08 lzyang2000

@Huizhaoaaaa Do you download the binary version?

tzutalin avatar Sep 24 '19 04:09 tzutalin

@Huizhaoaaaa Did you solve this ?

iampalop avatar Feb 24 '20 16:02 iampalop

Met the exact same issue. I tried building it from github version, but it says sip is missing and stuff. I was trying to find an answer, but nothing. When binary version finally started I was happy, until I discovered it won't save anything.

Is it related to that damn sip an pyqt5? or is it utf-8?

I tried execute commands they offered on stack overflow and it didn't fork. I hope Tzutalin will help us figure it out.

Knand1861 avatar May 07 '21 14:05 Knand1861

did anyone solve this issue?

libeamlak-bekele avatar Feb 06 '22 18:02 libeamlak-bekele

Try to add an system environment variables PYTHONIOENCODING in your computer, and its values is UTF-8.

Dylonsword avatar Feb 01 '23 03:02 Dylonsword