Details
Description
use the example code:
https://doc.qt.io/qtforpython-6/tutorials/qmlintegration/qmlintegration.html#tutorial-qmlintegration
just exec :
pyside6-deploy --name Demo1 main.py
I get these:
Error, failed to find path @rpath/QtQuickControls2FluentWinUI3StyleImpl.framework/Versions/A/QtQuickControls2FluentWinUI3StyleImpl (resolved DLL to /Users/qiguangsen1/.pyenv/versions/3.12.2/lib/python3.12/site-packages/PySide6/Qt/qml/QtQuick/Controls/FluentWinUI3/QtQuickControls2FluentWinUI3StyleImpl.framework/Versions/A/QtQuickControls2FluentWinUI3StyleImpl) for /Users/qiguangsen1/.pyenv/versions/3.12.2/lib/python3.12/site-packages/PySide6/Qt/qml/QtQuick/Controls/FluentWinUI3/libqtquickcontrols2fluentwinui3styleplugin.dylib from 'PySide6', please report the bug. [DEPLOY] Exception occurred: Traceback (most recent call last): File "/Users/qiguangsen1/.pyenv/versions/3.12.2/lib/python3.12/site-packages/PySide6/scripts/deploy_lib/commands.py", line 27, in run_command subprocess.check_call(command, shell=is_windows) File "/Users/qiguangsen1/.pyenv/versions/3.12.2/lib/python3.12/subprocess.py", line 413, in check_call raise CalledProcessError(retcode, cmd) subprocess.CalledProcessError: Command '[PosixPath('/Users/qiguangsen1/.pyenv/versions/3.12.2/bin/python3.12'), '-m', 'nuitka', '/Users/qiguangsen1/work/B_Project/BBG/Reverse-Engineering/python-qml/main.py', '--follow-imports', '--enable-plugin=pyside6', '--output-dir=/Users/qiguangsen1/work/B_Project/BBG/Reverse-Engineering/python-qml/deployment', '--quiet', '--noinclude-qt-translations', '--static-libpython=no', '--standalone', '--macos-create-app-bundle', '--noinclude-dlls=*.cpp.o', '--noinclude-dlls=*.qsb', '--noinclude-dlls=*.webp', '--include-data-files=/Users/qiguangsen1/work/B_Project/BBG/Reverse-Engineering/python-qml/Main/Main.qml=./Main/Main.qml', '--noinclude-dlls=libQt6Charts*', '--noinclude-dlls=libQt6Quick3D*', '--noinclude-dlls=libQt6Sensors*', '--noinclude-dlls=libQt6Test*', '--noinclude-dlls=libQt6WebEngine*', '--noinclude-dlls=*/qml/QtQuickEffectMaker/*', '--macos-app-icon=/Users/qiguangsen1/.pyenv/versions/3.12.2/lib/python3.12/site-packages/PySide6/scripts/deploy_lib/pyside_icon.icns', '--include-qt-plugins=accessiblebridge,networkaccess,networkinformation,platforminputcontexts,platforms/darwin,qml,qmltooling,scenegraph']' returned non-zero exit status 1.
During handling of the above exception, another exception occurred:
Traceback (most recent call last): File "/Users/qiguangsen1/.pyenv/versions/3.12.2/lib/python3.12/site-packages/PySide6/scripts/deploy.py", line 154, in main command_str = nuitka.create_executable(source_file=config.source_file, ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/Users/qiguangsen1/.pyenv/versions/3.12.2/lib/python3.12/site-packages/PySide6/scripts/deploy_lib/nuitka_helper.py", line 172, in create_executable command_str, _ = run_command(command=command, dry_run=dry_run) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/Users/qiguangsen1/.pyenv/versions/3.12.2/lib/python3.12/site-packages/PySide6/scripts/deploy_lib/commands.py", line 33, in run_command raise RuntimeError( RuntimeError: [DEPLOY] Command /Users/qiguangsen1/.pyenv/versions/3.12.2/bin/python3.12 -m nuitka /Users/qiguangsen1/work/B_Project/BBG/Reverse-Engineering/python-qml/main.py --follow-imports --enable-plugin=pyside6 --output-dir=/Users/qiguangsen1/work/B_Project/BBG/Reverse-Engineering/python-qml/deployment --quiet --noinclude-qt-translations --static-libpython=no --standalone --macos-create-app-bundle --noinclude-dlls=*.cpp.o --noinclude-dlls=*.qsb --noinclude-dlls=*.webp --include-data-files=/Users/qiguangsen1/work/B_Project/BBG/Reverse-Engineering/python-qml/Main/Main.qml=./Main/Main.qml --noinclude-dlls=libQt6Charts* --noinclude-dlls=libQt6Quick3D* --noinclude-dlls=libQt6Sensors* --noinclude-dlls=libQt6Test* --noinclude-dlls=libQt6WebEngine* --noinclude-dlls=*/qml/QtQuickEffectMaker/* --macos-app-icon=/Users/qiguangsen1/.pyenv/versions/3.12.2/lib/python3.12/site-packages/PySide6/scripts/deploy_lib/pyside_icon.icns --include-qt-plugins=accessiblebridge,networkaccess,networkinformation,platforminputcontexts,platforms/darwin,qml,qmltooling,scenegraph failed with error Command '[PosixPath('/Users/qiguangsen1/.pyenv/versions/3.12.2/bin/python3.12'), '-m', 'nuitka', '/Users/qiguangsen1/work/B_Project/BBG/Reverse-Engineering/python-qml/main.py', '--follow-imports', '--enable-plugin=pyside6', '--output-dir=/Users/qiguangsen1/work/B_Project/BBG/Reverse-Engineering/python-qml/deployment', '--quiet', '--noinclude-qt-translations', '--static-libpython=no', '--standalone', '--macos-create-app-bundle', '--noinclude-dlls=*.cpp.o', '--noinclude-dlls=*.qsb', '--noinclude-dlls=*.webp', '--include-data-files=/Users/qiguangsen1/work/B_Project/BBG/Reverse-Engineering/python-qml/Main/Main.qml=./Main/Main.qml', '--noinclude-dlls=libQt6Charts*', '--noinclude-dlls=libQt6Quick3D*', '--noinclude-dlls=libQt6Sensors*', '--noinclude-dlls=libQt6Test*', '--noinclude-dlls=libQt6WebEngine*', '--noinclude-dlls=*/qml/QtQuickEffectMaker/*', '--macos-app-icon=/Users/qiguangsen1/.pyenv/versions/3.12.2/lib/python3.12/site-packages/PySide6/scripts/deploy_lib/pyside_icon.icns', '--include-qt-plugins=accessiblebridge,networkaccess,networkinformation,platforminputcontexts,platforms/darwin,qml,qmltooling,scenegraph']' returned non-zero exit status 1. and return_code1 [DEPLOY] Executed file created in Demo1.app
why?
Where can I find a complete example of building and packaging a QML application?
Attachments
Issue Links
- relates to
-
PYSIDE-2919 pyside6-deploy fails if the directory and file of a qml element have the same name
- Closed