![]() |
при компиляции выдает такую ошибку:
AttributeError: module 'PyInstaller.compat' has no attribute 'is_py312' |
Цитата:
на крайняк добавь в скрытые импорты, ибо пайинсталлер может скомпилить даже не рабочий код -hidden-import=PyInstaller.compat |
Цитата:
Цитата:
Building directory: C:\Users\GTA\AppData\Local\Temp\tmpeke67llt Provided command: pyinstaller --noconfirm --onedir --console --icon "C:\Users\GTA\Desktop\s\TestImgui\go_img.ico" --add-data "C:\Users\GTA\Desktop\s\TestImgui\res;res/" --add-data "C:\Users\GTA\Desktop\s\TestImgui\cfg.txt;." --add-data "C:\Users\GTA\Desktop\s\TestImgui\screenshot.png;. " --add-data "C:\Users\GTA\Desktop\NEWENV\Lib\site-packages\customtkinter;customtkinter/" "C:\Users\GTA\Desktop\s\TestImgui\operaGX.py" Recursion Limit is set to 5000 Executing: pyinstaller --noconfirm --onedir --console --icon C:\Users\GTA\Desktop\s\TestImgui\go_img.ico --add-data C:\Users\GTA\Desktop\s\TestImgui\res;res/ --add-data C:\Users\GTA\Desktop\s\TestImgui\cfg.txt;. --add-data C:\Users\GTA\Desktop\s\TestImgui\screenshot.png;. --add-data C:\Users\GTA\Desktop\NEWENV\Lib\site-packages\customtkinter;customtkinter/ C:\Users\GTA\Desktop\s\TestImgui\operaGX.py --distpath C:\Users\GTA\AppData\Local\Temp\tmpeke67llt\applic ation --workpath C:\Users\GTA\AppData\Local\Temp\tmpeke67llt\build --specpath C:\Users\GTA\AppData\Local\Temp\tmpeke67llt 55692 INFO: PyInstaller: 6.9.0 55702 INFO: Python: 3.8.10 55741 INFO: Platform: Windows-7-6.1.7601-SP1 55748 INFO: wrote C:\Users\GTA\AppData\Local\Temp\tmpeke67llt\operaG X.spec 55757 INFO: UPX is not available. 55767 INFO: Extending PYTHONPATH with paths ['C:\\Users\\GTA\\Desktop\\s\\TestImgui'] 57431 INFO: Appending 'datas' from .spec 57517 INFO: checking Analysis 57522 INFO: Building Analysis because Analysis-00.toc is non existent 57531 INFO: Initializing module dependency graph... 57549 INFO: Caching module graph hooks... 57617 INFO: Analyzing base_library.zip ... 63688 INFO: Loading module hook 'hook-heapq.py' from 'C:\\Users\\GTA\\Desktop\\NEWENV\\lib\\site-packages\\PyInstaller\\hooks'... 64298 INFO: Loading module hook 'hook-encodings.py' from 'C:\\Users\\GTA\\Desktop\\NEWENV\\lib\\site-packages\\PyInstaller\\hooks'... 69293 INFO: Loading module hook 'hook-pickle.py' from 'C:\\Users\\GTA\\Desktop\\NEWENV\\lib\\site-packages\\PyInstaller\\hooks'... 72830 INFO: Caching module dependency graph... 73339 INFO: running Analysis Analysis-00.toc 73407 INFO: Adding Microsoft.Windows.Common-Controls to dependent assemblies of final executable required by C:\Users\GTA\AppData\Local\Programs\Python\Python3 8\python.exe 73894 INFO: Analyzing C:\Users\GTA\Desktop\s\TestImgui\operaGX.py 74028 INFO: Loading module hook 'hook-customtkinter.py' from 'C:\\Users\\GTA\\Desktop\\NEWENV\\lib\\site-packages\\_pyinstaller_hooks_contrib\\hooks\\stdho oks'... 74727 INFO: Processing pre-safe import module hook distutils from 'C:\\Users\\GTA\\Desktop\\NEWENV\\lib\\site-packages\\PyInstaller\\hooks\\pre_safe_import_modu le\\hook-distutils.py'. An error occurred while packaging Traceback (most recent call last): File "C:\Users\GTA\Desktop\NEWENV\lib\site-packages\auto_py_to_exe\packaging.py", line 132, in package run_pyinstaller(pyinstaller_args[1:]) File "C:\Users\GTA\Desktop\NEWENV\lib\site-packages\PyInstaller\__main__.py", line 180, in run run_build(pyi_config, spec_file, **vars(args)) File "C:\Users\GTA\Desktop\NEWENV\lib\site-packages\PyInstaller\__main__.py", line 61, in run_build PyInstaller.building.build_main.main(pyi_config, spec_file, **kwargs) File "C:\Users\GTA\Desktop\NEWENV\lib\site-packages\PyInstaller\building\build_main.py", line 1006, in main build(specfile, distpath, workpath, clean_build) File "C:\Users\GTA\Desktop\NEWENV\lib\site-packages\PyInstaller\building\build_main.py", line 928, in build exec(code, spec_namespace) File "C:\Users\GTA\AppData\Local\Temp\tmpeke67llt\opera GX.spec", line 7, in a = Analysis( File "C:\Users\GTA\Desktop\NEWENV\lib\site-packages\PyInstaller\building\build_main.py", line 428, in __init__ self.__postinit__() File "C:\Users\GTA\Desktop\NEWENV\lib\site-packages\PyInstaller\building\datastruct.py", line 184, in __postinit__ self.assemble() File "C:\Users\GTA\Desktop\NEWENV\lib\site-packages\PyInstaller\building\build_main.py", line 581, in assemble priority_scripts.append(self.graph.add_script(scri pt)) File "C:\Users\GTA\Desktop\NEWENV\lib\site-packages\PyInstaller\depend\analysis.py", line 268, in add_script self._top_script_node = super().add_script(pathname) File "C:\Users\GTA\Desktop\NEWENV\lib\site-packages\PyInstaller\lib\modulegraph\modulegraph.p y", line 1433, in add_script self._process_imports File "C:\Users\GTA\Desktop\NEWENV\lib\site-packages\PyInstaller\lib\modulegraph\modulegraph.p y", line 2881, in _process_imports target_modules = self._safe_import_hook(*import_info, **kwargs) File "C:\Users\GTA\Desktop\NEWENV\lib\site-packages\PyInstaller\depend\analysis.py", line 432, in _safe_import_hook return super()._safe_import_hook(target_module_partname, source_module, target_attr_names, level, edge_attr) File "C:\Users\GTA\Desktop\NEWENV\lib\site-packages\PyInstaller\lib\modulegraph\modulegraph.p y", line 2332, in _safe_import_hook target_modules = self.import_hook( File "C:\Users\GTA\Desktop\NEWENV\lib\site-packages\PyInstaller\lib\modulegraph\modulegraph.p y", line 1505, in import_hook target_package, target_module_partname = self._find_head_package( File "C:\Users\GTA\Desktop\NEWENV\lib\site-packages\PyInstaller\lib\modulegraph\modulegraph.p y", line 1684, in _find_head_package target_package = self._safe_import_module( File "C:\Users\GTA\Desktop\NEWENV\lib\site-packages\PyInstaller\depend\analysis.py", line 479, in _safe_import_module return super()._safe_import_module(module_basename, module_name, parent_package) File "C:\Users\GTA\Desktop\NEWENV\lib\site-packages\PyInstaller\lib\modulegraph\modulegraph.p y", line 2062, in _safe_import_module self._process_imports File "C:\Users\GTA\Desktop\NEWENV\lib\site-packages\PyInstaller\lib\modulegraph\modulegraph.p y", line 2881, in _process_imports target_modules = self._safe_import_hook(*import_info, **kwargs) File "C:\Users\GTA\Desktop\NEWENV\lib\site-packages\PyInstaller\depend\analysis.py", line 432, in _safe_import_hook return super()._safe_import_hook(target_module_partname, source_module, target_attr_names, level, edge_attr) File "C:\Users\GTA\Desktop\NEWENV\lib\site-packages\PyInstaller\lib\modulegraph\modulegraph.p y", line 2332, in _safe_import_hook target_modules = self.import_hook( File "C:\Users\GTA\Desktop\NEWENV\lib\site-packages\PyInstaller\lib\modulegraph\modulegraph.p y", line 1505, in import_hook target_package, target_module_partname = self._find_head_package( File "C:\Users\GTA\Desktop\NEWENV\lib\site-packages\PyInstaller\lib\modulegraph\modulegraph.p y", line 1684, in _find_head_package target_package = self._safe_import_module( File "C:\Users\GTA\Desktop\NEWENV\lib\site-packages\PyInstaller\depend\analysis.py", line 479, in _safe_import_module return super()._safe_import_module(module_basename, module_name, parent_package) File "C:\Users\GTA\Desktop\NEWENV\lib\site-packages\PyInstaller\lib\modulegraph\modulegraph.p y", line 2062, in _safe_import_module self._process_imports File "C:\Users\GTA\Desktop\NEWENV\lib\site-packages\PyInstaller\lib\modulegraph\modulegraph.p y", line 2881, in _process_imports target_modules = self._safe_import_hook(*import_info, **kwargs) File "C:\Users\GTA\Desktop\NEWENV\lib\site-packages\PyInstaller\depend\analysis.py", line 432, in _safe_import_hook return super()._safe_import_hook(target_module_partname, source_module, target_attr_names, level, edge_attr) File "C:\Users\GTA\Desktop\NEWENV\lib\site-packages\PyInstaller\lib\modulegraph\modulegraph.p y", line 2332, in _safe_import_hook target_modules = self.import_hook( File "C:\Users\GTA\Desktop\NEWENV\lib\site-packages\PyInstaller\lib\modulegraph\modulegraph.p y", line 1505, in import_hook target_package, target_module_partname = self._find_head_package( File "C:\Users\GTA\Desktop\NEWENV\lib\site-packages\PyInstaller\lib\modulegraph\modulegraph.p y", line 1684, in _find_head_package target_package = self._safe_import_module( File "C:\Users\GTA\Desktop\NEWENV\lib\site-packages\PyInstaller\depend\analysis.py", line 479, in _safe_import_module return super()._safe_import_module(module_basename, module_name, parent_package) File "C:\Users\GTA\Desktop\NEWENV\lib\site-packages\PyInstaller\lib\modulegraph\modulegraph.p y", line 2062, in _safe_import_module self._process_imports File "C:\Users\GTA\Desktop\NEWENV\lib\site-packages\PyInstaller\lib\modulegraph\modulegraph.p y", line 2881, in _process_imports target_modules = self._safe_import_hook(*import_info, **kwargs) File "C:\Users\GTA\Desktop\NEWENV\lib\site-packages\PyInstaller\depend\analysis.py", line 432, in _safe_import_hook return super()._safe_import_hook(target_module_partname, source_module, target_attr_names, level, edge_attr) File "C:\Users\GTA\Desktop\NEWENV\lib\site-packages\PyInstaller\lib\modulegraph\modulegraph.p y", line 2332, in _safe_import_hook target_modules = self.import_hook( File "C:\Users\GTA\Desktop\NEWENV\lib\site-packages\PyInstaller\lib\modulegraph\modulegraph.p y", line 1505, in import_hook target_package, target_module_partname = self._find_head_package( File "C:\Users\GTA\Desktop\NEWENV\lib\site-packages\PyInstaller\lib\modulegraph\modulegraph.p y", line 1684, in _find_head_package target_package = self._safe_import_module( File "C:\Users\GTA\Desktop\NEWENV\lib\site-packages\PyInstaller\depend\analysis.py", line 469, in _safe_import_module hook_module.pre_safe_import_module(hook_api) File "C:\Users\GTA\Desktop\NEWENV\lib\site-packages\PyInstaller\hooks\pre_safe_import_module\ hook-distutils.py", line 24, in pre_safe_import_module if compat.is_py312: AttributeError: module 'PyInstaller.compat' has no attribute 'is_py312' Project output will not be moved to output folder Complete. вот все что выдает |
| Время: 10:43 |