Skip to content

Cannot use both '--mode=' and deprecated options that specify mode. #3237

@Erriez

Description

@Erriez

Github Action building a Python release build generates the following failure for both Linux and Windows:

Successfully installed nuitka-2.5.5
...
Nuitka-Options: Used command line options: --output-dir=. --output-file=erriez-midi-sysex-io-linux --include-data-dir=images=images --include-data-dir=data=data --standalone --onefile --mode=app --assume-yes-for-downloads --script-name=main.py --enable-plugins=pyside6
FATAL: Cannot use both '--mode=' and deprecated options that specify mode.

Github action build config: build-release.yml

      - name: Build Linux executable
        if: runner.os == 'Linux'
        uses: Nuitka/Nuitka-Action@main
        with:
          script-name: main.py
          output-dir: .
          output-file: erriez-midi-sysex-io-linux
          include-data-dir: |
            images=images
            data=data
          standalone: true
          onefile: true
          enable-plugins: pyside6
      - name: Build Windows executable
        uses: Nuitka/Nuitka-Action@main
        with:
          script-name: main.py
          output-dir: .
          output-file: erriez-midi-sysex-io.exe
          include-data-dir: |
            images=images
            data=data
          standalone: true
          onefile: true
          disable-console: true
          windows-icon-from-ico: images/midi.ico
          enable-plugins: pyside6

Buildlog: https://github.com/Erriez/midi-sysex-io/actions/runs/12125747829

FATAL: Cannot use both '--mode=' and deprecated options that specify mode.

The error message is unclear. If this mode cannot be used anymore, where is documented how to migrate existing projects to resolve this problem?

Metadata

Metadata

Assignees

Labels

help wantedPlease help with this, we think you can

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions