`pyi-makespec` ignores `--log-level` argument

Author: bersbersbersCreated Dec 20, 2023Updated Apr 13, 2026

Description of the issue

Context information (for bug reports)

  • Output of pyinstaller --version: 6.3.0

  • Version of Python: 3.12.1

  • Platform: Windows

  • How you installed Python: scoop

  • Did you also try this on another platform? No

  • try the latest development version? same thing

  • follow all the instructions in our "If Things Go Wrong" Guide

    • start with clean installation
    • use the latest development version
    • [n/a] Run your frozen program from a command window (shell) — instead of double-clicking on it
    • [n/a] Package your program in --onedir mode
    • [n/a] Package without UPX, say: use the option --noupx or set upx=False in your .spec-file
    • [n/a] Repackage you application in verbose/debug mode. For this, pass the option --debug to pyi-makespec or pyinstaller or use EXE(..., debug=1, ...) in your .spec file.

A minimal example program which shows the error

touch empty.py
pyi-makespec empty.py --log-level ERROR

Stacktrace / full error message

Wrote C:\Code\project\empty.spec.
Now run pyinstaller.py to build the executable.

There should not be any output since no errors occured.