Open mmatous opened 1 week ago
Humm, I think it is the way I validate the spinner function: https://github.com/rsalmei/alive-progress/blob/aa73aa78ae467139828512969b296b788f44975d/alive_progress/core/configuration.py#L49-L51
I'm not sure what this pyinstaller makes with the Python source files, but I'm sure this second condition, which ensures the function came from one of my sources, failed.
Can you debug it? Just put in your file something like this, between spinner =
and with alive_bar(
:
from ..animations import spinner_compiler
print(spinner_compiler.__file__)
print(spinner.__code__.co_name)
print(spinner.__code__.co_filename)
plain script:
/home/mmatous/playground/aptest/venv/lib/python3.12/site-packages/alive_progress/animations/spinner_compiler.py spinner_compiler_dispatcher_factory /home/mmatous/playground/aptest/venv/lib/python3.12/site-packages/alive_progress/animations/spinner_compiler.py
bundled version:
/tmp/_MEIVE8Zos/alive_progress/animations/spinner_compiler.pyc spinner_compiler_dispatcher_factory alive_progress/animations/spinner_compiler.py
Getting rid of the second condition in ap's venv sources before bundling works. I'm OK with that workaround. Feel free to close the issue if you don't want to come up with a more permanent fix in AP.
I encountered the same problem as described in #123 and applied the solution only to get a different error. I tried the CLI, specfile, and downgrade but the result is the same.
The error:
Example ap.py:
SW: Gentoo Linux Python 3.12.6 PyInstaller 6.10.0 alive-progress 3.1.5 (tried 1.6.2)