Skip to content

PyInstaller build issue for QualCoder (windows) #1180

@Amgoth-Suresh

Description

@Amgoth-Suresh

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:

  1. Is this command sufficient, or should the official qualcoder.spec / qualcoder_onefile.spec be used?
  2. Are additional hidden imports or data files required for NumPy?
  3. Is there a recommended Windows build workflow for QualCoder using PyInstaller?

Any guidance would be greatly appreciated.

Thank you.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions