python3.6使用pyinstaller出现tuple index out of range错误的解决

本文介绍了解决Python3.6版本中使用PyInstaller遇到的兼容性问题的方法。具体步骤包括从GitHub下载最新版本的PyInstaller并替换现有的PyInstaller文件夹。

原因:python3.6版本对pyinstaller的不支持

解决方案:

1. 到https://github.com/pyinstaller/pyinstaller下载pyinstaller

2.把下载的文件夹覆盖Root\Lib\site-packages下的Pyinstaller文件夹。注:Root指你的python安装目录

参考:https://www.zhihu.com/question/54777137

Microsoft Windows [版本 10.0.19045.6216] (c) Microsoft Corporation。保留所有权利。 C:\Windows\system32>cd C:\HaiGe\Code\WRD\ThreeDemo C:\HaiGe\Code\WRD\ThreeDemo>pyinstaller --onefile --add-data "templates;templates" --add-data "static;static" --name robot_platform app.py 40 DEPRECATION: Running PyInstaller as admin is not necessary nor sensible. Run PyInstaller from a non-administrator terminal. PyInstaller 7.0 will block this. 284 INFO: PyInstaller: 6.15.0, contrib hooks: 2025.8 284 INFO: Python: 3.10.0 292 INFO: Platform: Windows-10-10.0.19045-SP0 293 INFO: Python environment: C:\Users\pp136\AppData\Local\Programs\Python\Python310 293 INFO: wrote C:\HaiGe\Code\WRD\ThreeDemo\robot_platform.spec 297 INFO: Module search paths (PYTHONPATH): [&#39;C:\\Users\\pp136\\AppData\\Local\\Programs\\Python\\Python310\\Scripts\\pyinstaller.exe&#39;, &#39;C:\\Users\\pp136\\AppData\\Local\\Programs\\Python\\Python310\\python310.zip&#39;, &#39;C:\\Users\\pp136\\AppData\\Local\\Programs\\Python\\Python310\\DLLs&#39;, &#39;C:\\Users\\pp136\\AppData\\Local\\Programs\\Python\\Python310\\lib&#39;, &#39;C:\\Users\\pp136\\AppData\\Local\\Programs\\Python\\Python310&#39;, &#39;C:\\Users\\pp136\\AppData\\Local\\Programs\\Python\\Python310\\lib\\site-packages&#39;, &#39;C:\\Users\\pp136\\AppData\\Local\\Programs\\Python\\Python310\\lib\\site-packages\\setuptools\\_vendor&#39;, &#39;C:\\HaiGe\\Code\\WRD\\ThreeDemo&#39;] 712 INFO: Appending &#39;datas&#39; from .spec 715 INFO: checking Analysis 715 INFO: Building Analysis because Analysis-00.toc is non existent 715 INFO: Running Analysis Analysis-00.toc 715 INFO: Target bytecode optimization level: 0 715 INFO: Initializing module dependency graph... 716 INFO: Initializing module graph hook caches... 733 INFO: Analyzing modules for base_library.zip ... 1509 INFO: Processing standard module hook &#39;hook-heapq.py&#39; from &#39;C:\\Users\\pp136\\AppData\\Local\\Programs\\Python\\Python310\\lib\\site-packages\\PyInstaller\\hooks&#39; 1567 INFO: Processing standard module hook &#39;hook-encodings.py&#39; from &#39;C:\\Users\\pp136\\AppData\\Local\\Programs\\Python\\Python310\\lib\\site-packages\\PyInstaller\\hooks&#39; 2749 INFO: Processing standard module hook &#39;hook-pickle.py&#39; from &#39;C:\\Users\\pp136\\AppData\\Local\\Programs\\Python\\Python310\\lib\\site-packages\\PyInstaller\\hooks&#39; 3850 INFO: Caching module dependency graph... 3914 INFO: Looking for Python shared library... 3922 INFO: Using Python shared library: C:\Users\pp136\AppData\Local\Programs\Python\Python310\python310.dll 3922 INFO: Analyzing C:\HaiGe\Code\WRD\ThreeDemo\app.py 4200 INFO: Processing pre-safe-import-module hook &#39;hook-typing_extensions.py&#39; from &#39;C:\\Users\\pp136\\AppData\\Local\\Programs\\Python\\Python310\\lib\\site-packages\\PyInstaller\\hooks\\pre_safe_import_module&#39; 4202 INFO: SetuptoolsInfo: initializing cached setuptools info... 8347 INFO: Processing standard module hook &#39;hook-multiprocessing.util.py&#39; from &#39;C:\\Users\\pp136\\AppData\\Local\\Programs\\Python\\Python310\\lib\\site-packages\\PyInstaller\\hooks&#39; 8438 INFO: Processing standard module hook &#39;hook-xml.py&#39; from &#39;C:\\Users\\pp136\\AppData\\Local\\Programs\\Python\\Python310\\lib\\site-packages\\PyInstaller\\hooks&#39; 8645 INFO: Processing standard module hook &#39;hook-_ctypes.py&#39; from &#39;C:\\Users\\pp136\\AppData\\Local\\Programs\\Python\\Python310\\lib\\site-packages\\PyInstaller\\hooks&#39; Traceback (most recent call last): File "C:\Users\pp136\AppData\Local\Programs\Python\Python310\lib\runpy.py", line 196, in _run_module_as_main return _run_code(code, main_globals, None, File "C:\Users\pp136\AppData\Local\Programs\Python\Python310\lib\runpy.py", line 86, in _run_code exec(code, run_globals) File "C:\Users\pp136\AppData\Local\Programs\Python\Python310\Scripts\pyinstaller.exe\__main__.py", line 6, in <module> File "C:\Users\pp136\AppData\Local\Programs\Python\Python310\lib\site-packages\PyInstaller\__main__.py", line 231, in _console_script_run run() File "C:\Users\pp136\AppData\Local\Programs\Python\Python310\lib\site-packages\PyInstaller\__main__.py", line 215, in run run_build(pyi_config, spec_file, **vars(args)) File "C:\Users\pp136\AppData\Local\Programs\Python\Python310\lib\site-packages\PyInstaller\__main__.py", line 70, in run_build PyInstaller.building.build_main.main(pyi_config, spec_file, **kwargs) File "C:\Users\pp136\AppData\Local\Programs\Python\Python310\lib\site-packages\PyInstaller\building\build_main.py", line 1282, in main build(specfile, distpath, workpath, clean_build) File "C:\Users\pp136\AppData\Local\Programs\Python\Python310\lib\site-packages\PyInstaller\building\build_main.py", line 1220, in build exec(code, spec_namespace) File "C:\HaiGe\Code\WRD\ThreeDemo\robot_platform.spec", line 4, in <module> a = Analysis( File "C:\Users\pp136\AppData\Local\Programs\Python\Python310\lib\site-packages\PyInstaller\building\build_main.py", line 584, in __init__ self.__postinit__() File "C:\Users\pp136\AppData\Local\Programs\Python\Python310\lib\site-packages\PyInstaller\building\datastruct.py", line 184, in __postinit__ self.assemble() File "C:\Users\pp136\AppData\Local\Programs\Python\Python310\lib\site-packages\PyInstaller\building\build_main.py", line 716, in assemble program_scripts.append(self.graph.add_script(script)) File "C:\Users\pp136\AppData\Local\Programs\Python\Python310\lib\site-packages\PyInstaller\depend\analysis.py", line 283, in add_script self._top_script_node = super().add_script(pathname) File "C:\Users\pp136\AppData\Local\Programs\Python\Python310\lib\site-packages\PyInstaller\lib\modulegraph\modulegraph.py", line 1186, in add_script self._process_imports(n) File "C:\Users\pp136\AppData\Local\Programs\Python\Python310\lib\site-packages\PyInstaller\lib\modulegraph\modulegraph.py", line 2646, in _process_imports target_modules = self._safe_import_hook(*import_info, **kwargs) File "C:\Users\pp136\AppData\Local\Programs\Python\Python310\lib\site-packages\PyInstaller\depend\analysis.py", line 477, in _safe_import_hook ret_modules = super()._safe_import_hook( File "C:\Users\pp136\AppData\Local\Programs\Python\Python310\lib\site-packages\PyInstaller\lib\modulegraph\modulegraph.py", line 2095, in _safe_import_hook target_modules = self.import_hook( File "C:\Users\pp136\AppData\Local\Programs\Python\Python310\lib\site-packages\PyInstaller\lib\modulegraph\modulegraph.py", line 1258, in import_hook target_package, target_module_partname = self._find_head_package( File "C:\Users\pp136\AppData\Local\Programs\Python\Python310\lib\site-packages\PyInstaller\lib\modulegraph\modulegraph.py", line 1437, in _find_head_package target_package = self._safe_import_module( File "C:\Users\pp136\AppData\Local\Programs\Python\Python310\lib\site-packages\PyInstaller\depend\analysis.py", line 539, in _safe_import_module return super()._safe_import_module(module_basename, module_name, parent_package) File "C:\Users\pp136\AppData\Local\Programs\Python\Python310\lib\site-packages\PyInstaller\lib\modulegraph\modulegraph.py", line 1818, in _safe_import_module self._process_imports(n) File "C:\Users\pp136\AppData\Local\Programs\Python\Python310\lib\site-packages\PyInstaller\lib\modulegraph\modulegraph.py", line 2646, in _process_imports target_modules = self._safe_import_hook(*import_info, **kwargs) File "C:\Users\pp136\AppData\Local\Programs\Python\Python310\lib\site-packages\PyInstaller\depend\analysis.py", line 477, in _safe_import_hook ret_modules = super()._safe_import_hook( File "C:\Users\pp136\AppData\Local\Programs\Python\Python310\lib\site-packages\PyInstaller\lib\modulegraph\modulegraph.py", line 2304, in _safe_import_hook self.import_hook( File "C:\Users\pp136\AppData\Local\Programs\Python\Python310\lib\site-packages\PyInstaller\lib\modulegraph\modulegraph.py", line 1297, in import_hook for target_submodule in self._import_importable_package_submodules( File "C:\Users\pp136\AppData\Local\Programs\Python\Python310\lib\site-packages\PyInstaller\lib\modulegraph\modulegraph.py", line 1546, in _import_importable_package_submodules submodule = self._safe_import_module( File "C:\Users\pp136\AppData\Local\Programs\Python\Python310\lib\site-packages\PyInstaller\depend\analysis.py", line 539, in _safe_import_module return super()._safe_import_module(module_basename, module_name, parent_package) File "C:\Users\pp136\AppData\Local\Programs\Python\Python310\lib\site-packages\PyInstaller\lib\modulegraph\modulegraph.py", line 1818, in _safe_import_module self._process_imports(n) File "C:\Users\pp136\AppData\Local\Programs\Python\Python310\lib\site-packages\PyInstaller\lib\modulegraph\modulegraph.py", line 2646, in _process_imports target_modules = self._safe_import_hook(*import_info, **kwargs) File "C:\Users\pp136\AppData\Local\Programs\Python\Python310\lib\site-packages\PyInstaller\depend\analysis.py", line 477, in _safe_import_hook ret_modules = super()._safe_import_hook( File "C:\Users\pp136\AppData\Local\Programs\Python\Python310\lib\site-packages\PyInstaller\lib\modulegraph\modulegraph.py", line 2095, in _safe_import_hook target_modules = self.import_hook( File "C:\Users\pp136\AppData\Local\Programs\Python\Python310\lib\site-packages\PyInstaller\lib\modulegraph\modulegraph.py", line 1258, in import_hook target_package, target_module_partname = self._find_head_package( File "C:\Users\pp136\AppData\Local\Programs\Python\Python310\lib\site-packages\PyInstaller\lib\modulegraph\modulegraph.py", line 1437, in _find_head_package target_package = self._safe_import_module( File "C:\Users\pp136\AppData\Local\Programs\Python\Python310\lib\site-packages\PyInstaller\depend\analysis.py", line 539, in _safe_import_module return super()._safe_import_module(module_basename, module_name, parent_package) File "C:\Users\pp136\AppData\Local\Programs\Python\Python310\lib\site-packages\PyInstaller\lib\modulegraph\modulegraph.py", line 1818, in _safe_import_module self._process_imports(n) File "C:\Users\pp136\AppData\Local\Programs\Python\Python310\lib\site-packages\PyInstaller\lib\modulegraph\modulegraph.py", line 2646, in _process_imports target_modules = self._safe_import_hook(*import_info, **kwargs) File "C:\Users\pp136\AppData\Local\Programs\Python\Python310\lib\site-packages\PyInstaller\depend\analysis.py", line 477, in _safe_import_hook ret_modules = super()._safe_import_hook( File "C:\Users\pp136\AppData\Local\Programs\Python\Python310\lib\site-packages\PyInstaller\lib\modulegraph\modulegraph.py", line 2095, in _safe_import_hook target_modules = self.import_hook( File "C:\Users\pp136\AppData\Local\Programs\Python\Python310\lib\site-packages\PyInstaller\lib\modulegraph\modulegraph.py", line 1258, in import_hook target_package, target_module_partname = self._find_head_package( File "C:\Users\pp136\AppData\Local\Programs\Python\Python310\lib\site-packages\PyInstaller\lib\modulegraph\modulegraph.py", line 1437, in _find_head_package target_package = self._safe_import_module( File "C:\Users\pp136\AppData\Local\Programs\Python\Python310\lib\site-packages\PyInstaller\depend\analysis.py", line 539, in _safe_import_module return super()._safe_import_module(module_basename, module_name, parent_package) File "C:\Users\pp136\AppData\Local\Programs\Python\Python310\lib\site-packages\PyInstaller\lib\modulegraph\modulegraph.py", line 1818, in _safe_import_module self._process_imports(n) File "C:\Users\pp136\AppData\Local\Programs\Python\Python310\lib\site-packages\PyInstaller\lib\modulegraph\modulegraph.py", line 2646, in _process_imports target_modules = self._safe_import_hook(*import_info, **kwargs) File "C:\Users\pp136\AppData\Local\Programs\Python\Python310\lib\site-packages\PyInstaller\depend\analysis.py", line 477, in _safe_import_hook ret_modules = super()._safe_import_hook( File "C:\Users\pp136\AppData\Local\Programs\Python\Python310\lib\site-packages\PyInstaller\lib\modulegraph\modulegraph.py", line 2095, in _safe_import_hook target_modules = self.import_hook( File "C:\Users\pp136\AppData\Local\Programs\Python\Python310\lib\site-packages\PyInstaller\lib\modulegraph\modulegraph.py", line 1258, in import_hook target_package, target_module_partname = self._find_head_package( File "C:\Users\pp136\AppData\Local\Programs\Python\Python310\lib\site-packages\PyInstaller\lib\modulegraph\modulegraph.py", line 1437, in _find_head_package target_package = self._safe_import_module( File "C:\Users\pp136\AppData\Local\Programs\Python\Python310\lib\site-packages\PyInstaller\depend\analysis.py", line 539, in _safe_import_module return super()._safe_import_module(module_basename, module_name, parent_package) File "C:\Users\pp136\AppData\Local\Programs\Python\Python310\lib\site-packages\PyInstaller\lib\modulegraph\modulegraph.py", line 1818, in _safe_import_module self._process_imports(n) File "C:\Users\pp136\AppData\Local\Programs\Python\Python310\lib\site-packages\PyInstaller\lib\modulegraph\modulegraph.py", line 2646, in _process_imports target_modules = self._safe_import_hook(*import_info, **kwargs) File "C:\Users\pp136\AppData\Local\Programs\Python\Python310\lib\site-packages\PyInstaller\depend\analysis.py", line 477, in _safe_import_hook ret_modules = super()._safe_import_hook( File "C:\Users\pp136\AppData\Local\Programs\Python\Python310\lib\site-packages\PyInstaller\lib\modulegraph\modulegraph.py", line 2095, in _safe_import_hook target_modules = self.import_hook( File "C:\Users\pp136\AppData\Local\Programs\Python\Python310\lib\site-packages\PyInstaller\lib\modulegraph\modulegraph.py", line 1258, in import_hook target_package, target_module_partname = self._find_head_package( File "C:\Users\pp136\AppData\Local\Programs\Python\Python310\lib\site-packages\PyInstaller\lib\modulegraph\modulegraph.py", line 1437, in _find_head_package target_package = self._safe_import_module( File "C:\Users\pp136\AppData\Local\Programs\Python\Python310\lib\site-packages\PyInstaller\depend\analysis.py", line 539, in _safe_import_module return super()._safe_import_module(module_basename, module_name, parent_package) File "C:\Users\pp136\AppData\Local\Programs\Python\Python310\lib\site-packages\PyInstaller\lib\modulegraph\modulegraph.py", line 1818, in _safe_import_module self._process_imports(n) File "C:\Users\pp136\AppData\Local\Programs\Python\Python310\lib\site-packages\PyInstaller\lib\modulegraph\modulegraph.py", line 2646, in _process_imports target_modules = self._safe_import_hook(*import_info, **kwargs) File "C:\Users\pp136\AppData\Local\Programs\Python\Python310\lib\site-packages\PyInstaller\depend\analysis.py", line 477, in _safe_import_hook ret_modules = super()._safe_import_hook( File "C:\Users\pp136\AppData\Local\Programs\Python\Python310\lib\site-packages\PyInstaller\lib\modulegraph\modulegraph.py", line 2095, in _safe_import_hook target_modules = self.import_hook( File "C:\Users\pp136\AppData\Local\Programs\Python\Python310\lib\site-packages\PyInstaller\lib\modulegraph\modulegraph.py", line 1258, in import_hook target_package, target_module_partname = self._find_head_package( File "C:\Users\pp136\AppData\Local\Programs\Python\Python310\lib\site-packages\PyInstaller\lib\modulegraph\modulegraph.py", line 1437, in _find_head_package target_package = self._safe_import_module( File "C:\Users\pp136\AppData\Local\Programs\Python\Python310\lib\site-packages\PyInstaller\depend\analysis.py", line 539, in _safe_import_module return super()._safe_import_module(module_basename, module_name, parent_package) File "C:\Users\pp136\AppData\Local\Programs\Python\Python310\lib\site-packages\PyInstaller\lib\modulegraph\modulegraph.py", line 1818, in _safe_import_module self._process_imports(n) File "C:\Users\pp136\AppData\Local\Programs\Python\Python310\lib\site-packages\PyInstaller\lib\modulegraph\modulegraph.py", line 2646, in _process_imports target_modules = self._safe_import_hook(*import_info, **kwargs) File "C:\Users\pp136\AppData\Local\Programs\Python\Python310\lib\site-packages\PyInstaller\depend\analysis.py", line 477, in _safe_import_hook ret_modules = super()._safe_import_hook( File "C:\Users\pp136\AppData\Local\Programs\Python\Python310\lib\site-packages\PyInstaller\lib\modulegraph\modulegraph.py", line 2095, in _safe_import_hook target_modules = self.import_hook( File "C:\Users\pp136\AppData\Local\Programs\Python\Python310\lib\site-packages\PyInstaller\lib\modulegraph\modulegraph.py", line 1258, in import_hook target_package, target_module_partname = self._find_head_package( File "C:\Users\pp136\AppData\Local\Programs\Python\Python310\lib\site-packages\PyInstaller\lib\modulegraph\modulegraph.py", line 1437, in _find_head_package target_package = self._safe_import_module( File "C:\Users\pp136\AppData\Local\Programs\Python\Python310\lib\site-packages\PyInstaller\depend\analysis.py", line 539, in _safe_import_module return super()._safe_import_module(module_basename, module_name, parent_package) File "C:\Users\pp136\AppData\Local\Programs\Python\Python310\lib\site-packages\PyInstaller\lib\modulegraph\modulegraph.py", line 1818, in _safe_import_module self._process_imports(n) File "C:\Users\pp136\AppData\Local\Programs\Python\Python310\lib\site-packages\PyInstaller\lib\modulegraph\modulegraph.py", line 2646, in _process_imports target_modules = self._safe_import_hook(*import_info, **kwargs) File "C:\Users\pp136\AppData\Local\Programs\Python\Python310\lib\site-packages\PyInstaller\depend\analysis.py", line 477, in _safe_import_hook ret_modules = super()._safe_import_hook( File "C:\Users\pp136\AppData\Local\Programs\Python\Python310\lib\site-packages\PyInstaller\lib\modulegraph\modulegraph.py", line 2095, in _safe_import_hook target_modules = self.import_hook( File "C:\Users\pp136\AppData\Local\Programs\Python\Python310\lib\site-packages\PyInstaller\lib\modulegraph\modulegraph.py", line 1258, in import_hook target_package, target_module_partname = self._find_head_package( File "C:\Users\pp136\AppData\Local\Programs\Python\Python310\lib\site-packages\PyInstaller\lib\modulegraph\modulegraph.py", line 1437, in _find_head_package target_package = self._safe_import_module( File "C:\Users\pp136\AppData\Local\Programs\Python\Python310\lib\site-packages\PyInstaller\depend\analysis.py", line 539, in _safe_import_module return super()._safe_import_module(module_basename, module_name, parent_package) File "C:\Users\pp136\AppData\Local\Programs\Python\Python310\lib\site-packages\PyInstaller\lib\modulegraph\modulegraph.py", line 1818, in _safe_import_module self._process_imports(n) File "C:\Users\pp136\AppData\Local\Programs\Python\Python310\lib\site-packages\PyInstaller\lib\modulegraph\modulegraph.py", line 2646, in _process_imports target_modules = self._safe_import_hook(*import_info, **kwargs) File "C:\Users\pp136\AppData\Local\Programs\Python\Python310\lib\site-packages\PyInstaller\depend\analysis.py", line 477, in _safe_import_hook ret_modules = super()._safe_import_hook( File "C:\Users\pp136\AppData\Local\Programs\Python\Python310\lib\site-packages\PyInstaller\lib\modulegraph\modulegraph.py", line 2095, in _safe_import_hook target_modules = self.import_hook( File "C:\Users\pp136\AppData\Local\Programs\Python\Python310\lib\site-packages\PyInstaller\lib\modulegraph\modulegraph.py", line 1258, in import_hook target_package, target_module_partname = self._find_head_package( File "C:\Users\pp136\AppData\Local\Programs\Python\Python310\lib\site-packages\PyInstaller\lib\modulegraph\modulegraph.py", line 1437, in _find_head_package target_package = self._safe_import_module( File "C:\Users\pp136\AppData\Local\Programs\Python\Python310\lib\site-packages\PyInstaller\depend\analysis.py", line 539, in _safe_import_module return super()._safe_import_module(module_basename, module_name, parent_package) File "C:\Users\pp136\AppData\Local\Programs\Python\Python310\lib\site-packages\PyInstaller\lib\modulegraph\modulegraph.py", line 1818, in _safe_import_module self._process_imports(n) File "C:\Users\pp136\AppData\Local\Programs\Python\Python310\lib\site-packages\PyInstaller\lib\modulegraph\modulegraph.py", line 2646, in _process_imports target_modules = self._safe_import_hook(*import_info, **kwargs) File "C:\Users\pp136\AppData\Local\Programs\Python\Python310\lib\site-packages\PyInstaller\depend\analysis.py", line 477, in _safe_import_hook ret_modules = super()._safe_import_hook( File "C:\Users\pp136\AppData\Local\Programs\Python\Python310\lib\site-packages\PyInstaller\lib\modulegraph\modulegraph.py", line 2095, in _safe_import_hook target_modules = self.import_hook( File "C:\Users\pp136\AppData\Local\Programs\Python\Python310\lib\site-packages\PyInstaller\lib\modulegraph\modulegraph.py", line 1258, in import_hook target_package, target_module_partname = self._find_head_package( File "C:\Users\pp136\AppData\Local\Programs\Python\Python310\lib\site-packages\PyInstaller\lib\modulegraph\modulegraph.py", line 1437, in _find_head_package target_package = self._safe_import_module( File "C:\Users\pp136\AppData\Local\Programs\Python\Python310\lib\site-packages\PyInstaller\depend\analysis.py", line 539, in _safe_import_module return super()._safe_import_module(module_basename, module_name, parent_package) File "C:\Users\pp136\AppData\Local\Programs\Python\Python310\lib\site-packages\PyInstaller\lib\modulegraph\modulegraph.py", line 1818, in _safe_import_module self._process_imports(n) File "C:\Users\pp136\AppData\Local\Programs\Python\Python310\lib\site-packages\PyInstaller\lib\modulegraph\modulegraph.py", line 2646, in _process_imports target_modules = self._safe_import_hook(*import_info, **kwargs) File "C:\Users\pp136\AppData\Local\Programs\Python\Python310\lib\site-packages\PyInstaller\depend\analysis.py", line 477, in _safe_import_hook ret_modules = super()._safe_import_hook( File "C:\Users\pp136\AppData\Local\Programs\Python\Python310\lib\site-packages\PyInstaller\lib\modulegraph\modulegraph.py", line 2304, in _safe_import_hook self.import_hook( File "C:\Users\pp136\AppData\Local\Programs\Python\Python310\lib\site-packages\PyInstaller\lib\modulegraph\modulegraph.py", line 1297, in import_hook for target_submodule in self._import_importable_package_submodules( File "C:\Users\pp136\AppData\Local\Programs\Python\Python310\lib\site-packages\PyInstaller\lib\modulegraph\modulegraph.py", line 1546, in _import_importable_package_submodules submodule = self._safe_import_module( File "C:\Users\pp136\AppData\Local\Programs\Python\Python310\lib\site-packages\PyInstaller\depend\analysis.py", line 539, in _safe_import_module return super()._safe_import_module(module_basename, module_name, parent_package) File "C:\Users\pp136\AppData\Local\Programs\Python\Python310\lib\site-packages\PyInstaller\lib\modulegraph\modulegraph.py", line 1818, in _safe_import_module self._process_imports(n) File "C:\Users\pp136\AppData\Local\Programs\Python\Python310\lib\site-packages\PyInstaller\lib\modulegraph\modulegraph.py", line 2646, in _process_imports target_modules = self._safe_import_hook(*import_info, **kwargs) File "C:\Users\pp136\AppData\Local\Programs\Python\Python310\lib\site-packages\PyInstaller\depend\analysis.py", line 477, in _safe_import_hook ret_modules = super()._safe_import_hook( File "C:\Users\pp136\AppData\Local\Programs\Python\Python310\lib\site-packages\PyInstaller\lib\modulegraph\modulegraph.py", line 2095, in _safe_import_hook target_modules = self.import_hook( File "C:\Users\pp136\AppData\Local\Programs\Python\Python310\lib\site-packages\PyInstaller\lib\modulegraph\modulegraph.py", line 1271, in import_hook submodule = self._safe_import_module(head, mname, submodule) File "C:\Users\pp136\AppData\Local\Programs\Python\Python310\lib\site-packages\PyInstaller\depend\analysis.py", line 539, in _safe_import_module return super()._safe_import_module(module_basename, module_name, parent_package) File "C:\Users\pp136\AppData\Local\Programs\Python\Python310\lib\site-packages\PyInstaller\lib\modulegraph\modulegraph.py", line 1818, in _safe_import_module self._process_imports(n) File "C:\Users\pp136\AppData\Local\Programs\Python\Python310\lib\site-packages\PyInstaller\lib\modulegraph\modulegraph.py", line 2646, in _process_imports target_modules = self._safe_import_hook(*import_info, **kwargs) File "C:\Users\pp136\AppData\Local\Programs\Python\Python310\lib\site-packages\PyInstaller\depend\analysis.py", line 477, in _safe_import_hook ret_modules = super()._safe_import_hook( File "C:\Users\pp136\AppData\Local\Programs\Python\Python310\lib\site-packages\PyInstaller\lib\modulegraph\modulegraph.py", line 2095, in _safe_import_hook target_modules = self.import_hook( File "C:\Users\pp136\AppData\Local\Programs\Python\Python310\lib\site-packages\PyInstaller\lib\modulegraph\modulegraph.py", line 1258, in import_hook target_package, target_module_partname = self._find_head_package( File "C:\Users\pp136\AppData\Local\Programs\Python\Python310\lib\site-packages\PyInstaller\lib\modulegraph\modulegraph.py", line 1437, in _find_head_package target_package = self._safe_import_module( File "C:\Users\pp136\AppData\Local\Programs\Python\Python310\lib\site-packages\PyInstaller\depend\analysis.py", line 539, in _safe_import_module return super()._safe_import_module(module_basename, module_name, parent_package) File "C:\Users\pp136\AppData\Local\Programs\Python\Python310\lib\site-packages\PyInstaller\lib\modulegraph\modulegraph.py", line 1817, in _safe_import_module n = self._scan_code(module, co, co_ast) File "C:\Users\pp136\AppData\Local\Programs\Python\Python310\lib\site-packages\PyInstaller\lib\modulegraph\modulegraph.py", line 2433, in _scan_code self._scan_bytecode( File "C:\Users\pp136\AppData\Local\Programs\Python\Python310\lib\site-packages\PyInstaller\lib\modulegraph\modulegraph.py", line 2537, in _scan_bytecode for inst in util.iterate_instructions(module_code_object): File "C:\Users\pp136\AppData\Local\Programs\Python\Python310\lib\site-packages\PyInstaller\lib\modulegraph\util.py", line 13, in iterate_instructions yield from (i for i in dis.get_instructions(code_object) if i.opname != "EXTENDED_ARG") File "C:\Users\pp136\AppData\Local\Programs\Python\Python310\lib\site-packages\PyInstaller\lib\modulegraph\util.py", line 13, in <genexpr> yield from (i for i in dis.get_instructions(code_object) if i.opname != "EXTENDED_ARG") File "C:\Users\pp136\AppData\Local\Programs\Python\Python310\lib\dis.py", line 338, in _get_instructions_bytes argval, argrepr = _get_const_info(arg, constants) File "C:\Users\pp136\AppData\Local\Programs\Python\Python310\lib\dis.py", line 292, in _get_const_info argval = const_list[const_index] IndexError: tuple index out of range C:\HaiGe\Code\WRD\ThreeDemo>
最新发布
08-29
评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
红包 添加红包
表情包 插入表情
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值