-
Notifications
You must be signed in to change notification settings - Fork 123
Description
Hello @ccbogel and QualCoder team,
Thank you for maintaining QualCoder.
I am building QualCoder as a Windows executable using PyInstaller on a Windows local machine. The EXE file is created successfully, but it fails when executed.
Environment:
- OS: Windows 10 (local machine)
- Python: 3.10 (virtual environment)
- PyInstaller: latest
- QualCoder: source from GitHub
Exact PyInstaller command used:
pyinstaller --onefile --clean --noconfirm --name QualCoder --noconsole main.py
Runtime error when launching the EXE:
Traceback (most recent call last):
File "qualcoder_main_.py", line 51, in
File "PyInstaller\loader\pyimod02_importers.py", line 419, in exec_module
File "qualcoder\code_text.py", line 54, in
File "PyInstaller\loader\pyimod02_importers.py", line 419, in exec_module
File "qualcoder\ai_chat.py", line 49, in
File "PyInstaller\loader\pyimod02_importers.py", line 419, in exec_module
File "qualcoder\ai_llm.py", line 33, in
ImportError: numpy.core.multiarray failed to import
Additional details:
- The EXE is generated successfully
- On execution, it fails with "failed to execute script"
- numpy works correctly in the virtual environment
- The issue occurs only in the PyInstaller-built EXE
Questions:
- Is this command sufficient, or should the official qualcoder.spec / qualcoder_onefile.spec be used?
- Are additional hidden imports or data files required for NumPy?
- Is there a recommended Windows build workflow for QualCoder using PyInstaller?
Any guidance would be greatly appreciated.
Thank you.