Details
-
Bug
-
Resolution: Fixed
-
Not Evaluated
-
None
-
6.8.1
-
None
-
❯ python -m nuitka --version
2.5.9
Commercial: None
Python: 3.11.10 (main, Oct 16 2024, 04:38:48) [Clang 18.1.8 ]
Flavor: Unknown
Executable: ~/Develop/Workspace/mutimedia/.venv/bin/python
OS: Linux
Arch: x86_64
Distribution: Ubuntu (based on Debian) 22.04.5
Version C compiler: /usr/bin/gcc (gcc 11).
❯ python --version
Python 3.11.10
Ubuntu 22.04.5 LTS 64-bit
❯ gcc --version
gcc (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0
Copyright (C) 2021 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
❯ pip list
Package Version
------------------ -------
nuitka 2.5.9
ordered-set 4.1.0
pyside6 6.8.1
pyside6-addons 6.8.1
pyside6-essentials 6.8.1
shiboken6 6.8.1
zstandard 0.23.0
pyside6 6.8.1
❯ python -m nuitka --version 2.5.9 Commercial: None Python: 3.11.10 (main, Oct 16 2024, 04:38:48) [Clang 18.1.8 ] Flavor: Unknown Executable: ~/Develop/Workspace/mutimedia/.venv/bin/python OS: Linux Arch: x86_64 Distribution: Ubuntu (based on Debian) 22.04.5 Version C compiler: /usr/bin/gcc (gcc 11). ❯ python --version Python 3.11.10 Ubuntu 22.04.5 LTS 64-bit ❯ gcc --version gcc (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0 Copyright (C) 2021 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. ❯ pip list Package Version ------------------ ------- nuitka 2.5.9 ordered-set 4.1.0 pyside6 6.8.1 pyside6-addons 6.8.1 pyside6-essentials 6.8.1 shiboken6 6.8.1 zstandard 0.23.0 pyside6 6.8.1
Description
When depoly PySide6 multimedia module, an error is encountered: No QtMultimedia backends found. Only QMediaDevices, QAudioDevice, QSoundEffect, QAudioSink, and QAudioSource are available.
This only happens after deployment.
mutimedia/build/demo.dist via 🐍 v3.11.10 (mutimedia) ❯ ./demo No QtMultimedia backends found. Only QMediaDevices, QAudioDevice, QSoundEffect, QAudioSink, and QAudioSource are available. Failed to initialize QCamera "Not available" Failed to create QVideoSink "Not available" Failed to initialize QMediaCaptureSession "Not available"
import sys from PySide6.QtMultimedia import QCamera, QMediaCaptureSession, QMediaDevices from PySide6.QtMultimediaWidgets import QVideoWidget from PySide6.QtWidgets import QApplication, QVBoxLayout, QWidget class View(QWidget): def __init__(self) -> None: super().__init__() self.camera = QCamera(QMediaDevices.defaultVideoInput()) self.camera.start() self.viewfinder = QVideoWidget() self.captureSession = QMediaCaptureSession() self.captureSession.setCamera(self.camera) self.captureSession.setVideoOutput(self.viewfinder) self.mainLayout = QVBoxLayout(self) self.mainLayout.addWidget(self.viewfinder) def main() -> int: app = QApplication() view = View() view.show() return app.exec() if __name__ == "__main__": sys.exit(main())
build command
`❯ python -m nuitka demo.py --show-progress --show-memory --prefer-source-code --standalone --enable-plugin=pyside6 --output-dir=build --output-filename=demo
`
i also submited on nuitka at https://github.com/Nuitka/Nuitka/issues/3279