Uploaded image for project: 'Qt for Python'
  1. Qt for Python
  2. PYSIDE-2910

macOS: pyside6-deploy QML build fail

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P3: Somewhat important
    • 6.8.1
    • 6.8.0.2
    • Tooling
    • None
    • macOS
    • d42c7ccd7 (dev), 6bf8afe51 (6.8), 1a3d1e822 (dev), 451a7dfce (6.8), c951f1119 (dev), ea6075cf0 (6.8), 3ea697977 (dev), aae675add (6.8), 435e739df (dev), 238907c3b (6.8)

    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

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

              crmaurei Cristian Maureira-Fredes
              bbg QI QI
              Votes:
              1 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: