From 6ca24ff7b421dad2599207e7fbd71f16b983d455 Mon Sep 17 00:00:00 2001 From: Kernc Date: Thu, 6 Feb 2025 04:00:35 +0100 Subject: [PATCH] MNT: Pin PyInstaller==6.9 where Linux build still execs PyInstaller 6.10+ results in: Traceback (most recent call last): File "run.py", line 2, in import efck.__main__ File "PyInstaller/loader/pyimod02_importers.py", line 378, in exec_module File "efck/__main__.py", line 61, in main() File "efck/__main__.py", line 53, in main from .config import load_config File "PyInstaller/loader/pyimod02_importers.py", line 378, in exec_module File "efck/config.py", line 6, in from .tabs import EmojiTab ImportError: cannot import name 'EmojiTab' from 'efck.tabs' (dist/efck-chat-keyboard/_internal/efck/tabs/__init__.pyc) [PYI-2785842:ERROR] Failed to execute script 'run' due to unhandled exception! --- packaging/pyinstaller.spec | 2 +- setup.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packaging/pyinstaller.spec b/packaging/pyinstaller.spec index 0755f98..546f892 100644 --- a/packaging/pyinstaller.spec +++ b/packaging/pyinstaller.spec @@ -74,7 +74,7 @@ a = Analysis( win_no_prefer_redirects=False, win_private_assemblies=False, cipher=block_cipher, - noarchive=False, + noarchive=False, # Setting this to False may fix PyInstaller build ) # DO NOT remove system libs diff --git a/setup.py b/setup.py index cf831fa..1c116d8 100644 --- a/setup.py +++ b/setup.py @@ -39,7 +39,7 @@ 'dev': [ 'flake8', 'coverage', - 'pyinstaller', + 'pyinstaller == 6.9', 'pillow', # for pyinstaller ], 'extra': [