strycore / fakegir

fakegir: Bring autocompletion to your PyGObject code
GNU General Public License v3.0
89 stars 16 forks source link

UnicodeDecodeError - Windows 7 #10

Closed mpreu closed 6 years ago

mpreu commented 10 years ago

Hi,

when I try to use the script with Windows 7 and Python3 I get:

Traceback (most recent call last):
  File "D:\fakegir.py", line 231, in <module>
    generate_fakegir()
  File "D:\fakegir.py", line 223, in generate_fakegir
    fakegir_content = parse_gir(gir_path)
  File "D:\fakegir.py", line 189, in parse_gir
    content = open(gir_path).read()
  File "D:\Programmierung\Python\Python34\lib\encodings\cp1252.py", line 23, in decode
    return codecs.charmap_decode(input,self.errors,decoding_table)[0]
UnicodeDecodeError: 'charmap' codec can't decode byte 0x9d in position 684559: character maps to <undefined>

I installed PyGObject with the official Windows installer (https://wiki.gnome.org/Projects/PyGObject). What is the problem here?

kastixx commented 6 years ago

Vaniax, is this issue still actual?

If it is, could you try doing this:

git fetch
git checkout test-issue21

and running fakegir.py again?

It may be related to #21.

kastixx commented 6 years ago

Update: no need to switch branches, the patch is already merged to master.