mherrmann/fbs-tutorial

fbs freeze got error: UnicodeDecodeError: 'gbk' codec can't decode byte 0xa8 in position 328: illegal multibyte sequence

shanxu9198 opened this issue · 0 comments

Traceback (most recent call last):
File "D:\Program Files\Python\Python39\lib\runpy.py", line 197, in run_module_as_main
return run_code(code, main_globals, None,
File "D:\Program Files\Python\Python39\lib\runpy.py", line 87, in run_code
exec(code, run_globals)
File "D:\project\DZDX\dzdx.git\release\venv\Scripts\fbs.exe_main
.py", line 7, in
File "d:\project\dzdx\dzdx.git\release\venv\lib\site-packages\fbs_main
.py", line 17, in main
fbs.cmdline.main()
File "d:\project\dzdx\dzdx.git\release\venv\lib\site-packages\fbs\cmdline.py", line 28, in main
fn(*args)
File "d:\project\dzdx\dzdx.git\release\venv\lib\site-packages\fbs\builtin_commands_init
.py", line 107, in freeze
unpack(main_py, data_dir, path('${freeze_dir}'))
File "d:\project\dzdx\dzdx.git\release\venv\lib\site-packages\fbs_tutorial_shim_init
.py", line 63, in unpack
main_py_hash = get_py_file_hash(main_py)
File "d:\project\dzdx\dzdx.git\release\venv\lib\site-packages\fbs_tutorial_shim_init_.py", line 74, in get_py_file_hash
contents_no_newlines = ''.join(line.strip() for line in f)
File "d:\project\dzdx\dzdx.git\release\venv\lib\site-packages\fbs_tutorial_shim_init_.py", line 74, in
contents_no_newlines = ''.join(line.strip() for line in f)
UnicodeDecodeError: 'gbk' codec can't decode byte 0xa8 in position 328: illegal multibyte sequence

I don't know why?