E:\svn9\Development_library\A14168\04.CameraTest\AutoTest\Model_B_Camera_10>pyinstaller -F CameraAllFunctionTest.py 790 INFO: PyInstaller: 3.3 791 INFO: Python: 2.7.13 792 INFO: Platform: Windows-7-6.1.7601-SP1 794 INFO: wrote E:\svn9\Development_library\A14168\04.CameraTest\AutoTest\Model_B_Camera_10\CameraAllFunctionTest.spec 799 INFO: UPX is not available. 801 INFO: Extending PYTHONPATH with paths ['E:\\svn9\\Development_library\\A14168\\04.CameraTest\\AutoTest', 'E:\\svn9\\Development_library\\A14168\\04.CameraTest\\AutoTest\\Model_B_Camera_10'] 802 INFO: checking Analysis 829 INFO: checking PYZ 852 INFO: checking PKG 855 INFO: Building because toc changed 855 INFO: Building PKG (CArchive) out00-PKG.pkg 855 WARNING: pyinstaller bincache may be corrupted; use pyinstaller --clean to fix Traceback (most recent call last): File "C:\PYTHON27\SCRIPTS\pyinstaller-script.py", line 11, in <module> load_entry_point('PyInstaller==3.3', 'console_scripts', 'pyinstaller')() File "C:\PYTHON27\lib\site-packages\PyInstaller\__main__.py", line 92, in run run_build(pyi_config, spec_file, **vars(args)) File "C:\PYTHON27\lib\site-packages\PyInstaller\__main__.py", line 46, in run_build PyInstaller.building.build_main.main(pyi_config, spec_file, **kwargs) File "C:\PYTHON27\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:\PYTHON27\lib\site-packages\PyInstaller\building\build_main.py", line 737, in build exec(text, spec_namespace) File "<string>", line 29, in <module> File "C:\PYTHON27\lib\site-packages\PyInstaller\building\api.py", line 411, in __init__ strip_binaries=self.strip, upx_binaries=self.upx, File "C:\PYTHON27\lib\site-packages\PyInstaller\building\api.py", line 196, in __init__ self.__postinit__() File "C:\PYTHON27\lib\site-packages\PyInstaller\building\datastruct.py", line 161, in __postinit__ self.assemble() File "C:\PYTHON27\lib\site-packages\PyInstaller\building\api.py", line 259, in assemble dist_nm=inm) File "C:\PYTHON27\lib\site-packages\PyInstaller\building\utils.py", line 174, in checkCache cache_index = load_py_data_struct(cacheindexfn) File "C:\PYTHON27\lib\site-packages\PyInstaller\utils\misc.py", line 230, in load_py_data_struct return eval(f.read()) File "C:\PYTHON27\lib\codecs.py", line 686, in read return self.reader.read(size) File "C:\PYTHON27\lib\codecs.py", line 492, in read newchars, decodedbytes = self.decode(data, self.errors) UnicodeDecodeError: 'utf8' codec can't decode byte 0x84 in position 6: invalid start byte
前面用pyinstaller打包还好好的,今天使用就出现这个问题了 `尝试打包原来能够打包的文件,依然无法成功。
E:\svn9\Development_library\A14168\04.CameraTest\AutoTest\Model_B_Camera_10>pyinstaller -F CameraAllFunctionTest.py 790 INFO: PyInstaller: 3.3 791 INFO: Python: 2.7.13 792 INFO: Platform: Windows-7-6.1.7601-SP1 794 INFO: wrote E:\svn9\Development_library\A14168\04.CameraTest\AutoTest\Model_B_Camera_10\CameraAllFunctionTest.spec 799 INFO: UPX is not available. 801 INFO: Extending PYTHONPATH with paths ['E:\\svn9\\Development_library\\A14168\\04.CameraTest\\AutoTest', 'E:\\svn9\\Development_library\\A14168\\04.CameraTest\\AutoTest\\Model_B_Camera_10'] 802 INFO: checking Analysis 829 INFO: checking PYZ 852 INFO: checking PKG 855 INFO: Building because toc changed 855 INFO: Building PKG (CArchive) out00-PKG.pkg 855 WARNING: pyinstaller bincache may be corrupted; use pyinstaller --clean to fix Traceback (most recent call last): File "C:\PYTHON27\SCRIPTS\pyinstaller-script.py", line 11, in <module> load_entry_point('PyInstaller==3.3', 'console_scripts', 'pyinstaller')() File "C:\PYTHON27\lib\site-packages\PyInstaller\__main__.py", line 92, in run run_build(pyi_config, spec_file, **vars(args)) File "C:\PYTHON27\lib\site-packages\PyInstaller\__main__.py", line 46, in run_build PyInstaller.building.build_main.main(pyi_config, spec_file, **kwargs) File "C:\PYTHON27\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:\PYTHON27\lib\site-packages\PyInstaller\building\build_main.py", line 737, in build exec(text, spec_namespace) File "<string>", line 29, in <module> File "C:\PYTHON27\lib\site-packages\PyInstaller\building\api.py", line 411, in __init__ strip_binaries=self.strip, upx_binaries=self.upx, File "C:\PYTHON27\lib\site-packages\PyInstaller\building\api.py", line 196, in __init__ self.__postinit__() File "C:\PYTHON27\lib\site-packages\PyInstaller\building\datastruct.py", line 161, in __postinit__ self.assemble() File "C:\PYTHON27\lib\site-packages\PyInstaller\building\api.py", line 259, in assemble dist_nm=inm) File "C:\PYTHON27\lib\site-packages\PyInstaller\building\utils.py", line 174, in checkCache cache_index = load_py_data_struct(cacheindexfn) File "C:\PYTHON27\lib\site-packages\PyInstaller\utils\misc.py", line 230, in load_py_data_struct return eval(f.read()) File "C:\PYTHON27\lib\codecs.py", line 686, in read return self.reader.read(size) File "C:\PYTHON27\lib\codecs.py", line 492, in read newchars, decodedbytes = self.decode(data, self.errors) UnicodeDecodeError: 'utf8' codec can't decode byte 0x84 in position 6: invalid start byte