Skip to content

Required QtMultimedia plugin not packed #7352

Closed

Description

@Numerlor

Description of the issue

A Qt app using QtMultimedia crashes on startup because of missing plugin dll.

Context information (for bug reports)

  • Output of pyinstaller --version: 5.7.0

  • Version of Python: 3.11

  • Platform: Windows

  • How you installed Python: python.org/downloads

  • Did you also try this on another platform? No

  • try the latest development version, using the following command:

pip install https://github.com/pyinstaller/pyinstaller/archive/develop.zip

Make sure everything is packaged correctly

  • start with clean installation
  • use the latest development version
  • Run your frozen program from a command window (shell) — instead of double-clicking on it
  • Package your program in --onedir mode
  • Package without UPX, say: use the option --noupx or set upx=False in your .spec-file
  • 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

from PySide6 import QtMultimedia, QtCore

app = QtCore.QCoreApplication()
player = QtMultimedia.QMediaPlayer(app)

Stacktrace / full error message

Qt logs

19:22:08 | <Qt> | WARNING | could not load multimedia backend ""
19:22:08 | <Qt> |   ERROR | QtMultimedia is not currently supported on this platform or compiler.

Copying multimedia/windowsmediaplugin.dll into PySide6 plugins seems to fix the issue

Activity

  1. added and removed
    triagePlease triage and relabel this issue
    on Dec 25, 2022
  2. locked as resolved and limited conversation to collaborators on Feb 25, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions