unicodedecodeerror utf 8编解码器无法解码位置2无效起始字节中的字节0xbd

时间:2018-06-08 04:49:38

标签: pyinstaller

我试图使用pyinstaller将我的python游戏文件从.py转换为.exe但是我无法执行所以我试图做一个pyinstaller --log-level DEBUG我的.exe文件然后得到了这个,我&# 39;在论坛上搜索有关utf-8和utf-16编码问题的类似人物,但是将“rb'打开文件时对我没什么帮助。任何人都可以帮助调查这个追溯并告诉我问题是什么?

Traceback (most recent call last):
File "C:\Users\bedep\AppData\Local\Programs\Python\Python36-32\Scripts\pyinstaller-script.py", line 11, in <module>
load_entry_point('PyInstaller==3.3.1', 'console_scripts', 'pyinstaller')()
File "c:\users\bedep\appdata\local\programs\python\python36-32\lib\site-packages\PyInstaller\__main__.py", line 94, in run
run_build(pyi_config, spec_file, **vars(args))
File "c:\users\bedep\appdata\local\programs\python\python36-32\lib\site-packages\PyInstaller\__main__.py", line 46, in run_build
PyInstaller.building.build_main.main(pyi_config, spec_file, **kwargs)
File "c:\users\bedep\appdata\local\programs\python\python36-32\lib\site-packages\PyInstaller\building\build_main.py", line 791, in main
build(specfile, kw.get('distpath'), kw.get('workpath'), kw.get('clean_build'))
File "c:\users\bedep\appdata\local\programs\python\python36-32\lib\site-packages\PyInstaller\building\build_main.py", line 737, in build
exec(text, spec_namespace)
File "<string>", line 16, in <module>
File "c:\users\bedep\appdata\local\programs\python\python36-32\lib\site-packages\PyInstaller\building\build_main.py", line 213, in __init__
self.__postinit__()
File "c:\users\bedep\appdata\local\programs\python\python36-32\lib\site-packages\PyInstaller\building\datastruct.py", line 161, in __postinit__
self.assemble()
File "c:\users\bedep\appdata\local\programs\python\python36-32\lib\site-packages\PyInstaller\building\build_main.py", line 415, in assemble
priority_scripts.append(self.graph.run_script(script))
File "c:\users\bedep\appdata\local\programs\python\python36-32\lib\site-packages\PyInstaller\depend\analysis.py", line 201, in run_script
self._top_script_node = super(PyiModuleGraph, self).run_script(pathname)
File "c:\users\bedep\appdata\local\programs\python\python36-32\lib\site-packages\PyInstaller\lib\modulegraph\modulegraph.py", line 1338, in run_script
contents = fp.read() + '\n'
File "c:\users\bedep\appdata\local\programs\python\python36-32\lib\codecs.py", line 321, in decode
(result, consumed) = self._buffer_decode(data, self.errors, final)
UnicodeDecodeError: 'utf-8' codec can't decode byte 0x90 in position 2: invalid start byte

0 个答案:

没有答案