Closed
Description
Description of the bug
Lastest pymupdf with pyinstaller and console option set to false, throws on import AssertionError: No output specified.
Happen with last and older pyinstaller versions, dosen't happen with pythonw.exe.
Traceback (most recent call last):
File "pymupdf_test.pyw", line 1, in <module>
File "<frozen importlib._bootstrap>", line 1176, in _find_and_load
File "<frozen importlib._bootstrap>", line 1147, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 690, in _load_unlocked
File "PyInstaller\loader\pyimod02_importers.py", line 384, in exec_module
File "pymupdf\__init__.py", line 164, in <module>
File "pymupdf\__init__.py", line 160, in _make_output
AssertionError: No output specified.
How to reproduce the bug
pymupdf_test.pyw:
import pymupdf
print(pymupdf.version)
pyinstaller command:
pyinstaller --noconsole pymupdf_test.pyw
PyMuPDF version
1.24.12
Operating system
Windows
Python version
3.12