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

Deployment Tool: Nuitka Qml patchelf error

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P2: Important P2: Important
    • 6.5.0, 6.6.0
    • 6.5
    • Tooling
    • None
    • Linux/X11
    • 94b30c720 (dev), 22f35d990 (6.5)

      Requirement already satisfied: patchelf in /home/shyamnath/qt-for-python/pyside-setup/venv_3_9_14/lib/python3.9/site-packages (0.17.0.0)
      [DEPLOY] Deploying application
      [DEPLOY] Running Nuitka
      Nuitka-Scons:WARNING: You are not using ccache.                                         
      FATAL: Error, call to 'patchelf' failed: ['/home/shyamnath/qt-for-python/pyside-setup/venv_3_9_14/bin/patchelf', '--set-rpath', '$ORIGIN/../../../..', '/home/shyamnath/qt-for-python/pyside-setup/examples/qml/editingmodel/deployment/main.dist/PySide6/qml/QtQuick3D/designer/propertyGroups.json'] -> b'patchelf: not an ELF executable'.
      ERROR:root:[DEPLOY] Command /home/shyamnath/qt-for-python/pyside-setup/venv_3_9_14/bin/python -m nuitka /home/shyamnath/qt-for-python/pyside-setup/examples/qml/editingmodel/main.py --follow-imports --onefile --enable-plugin=pyside6 --output-dir=/home/shyamnath/qt-for-python/pyside-setup/examples/qml/editingmodel/deployment --quiet --noinclude-qt-translations=True --include-qt-plugins=all --include-data-files=/home/shyamnath/qt-for-python/pyside-setup/examples/qml/editingmodel/main.qml=./main.qml --include-data-files=/home/shyamnath/qt-for-python/pyside-setup/examples/qml/editingmodel/MovingRectangle.qml=./MovingRectangle.qml --noinclude-dlls=libQt6Charts* --noinclude-dlls=libQt6Quick3D* --noinclude-dlls=libQt6Sensors* --noinclude-dlls=libQt6Test* --noinclude-dlls=libQt6WebEngine* --linux-onefile-icon=/home/shyamnath/qt-for-python/pyside-setup/sources/pyside-tools/deploy_lib/pyside_icon.jpg failed with error Command '['/home/shyamnath/qt-for-python/pyside-setup/venv_3_9_14/bin/python', '-m', 'nuitka', '/home/shyamnath/qt-for-python/pyside-setup/examples/qml/editingmodel/main.py', '--follow-imports', '--onefile', '--enable-plugin=pyside6', '--output-dir=/home/shyamnath/qt-for-python/pyside-setup/examples/qml/editingmodel/deployment', '--quiet', '--noinclude-qt-translations=True', '--include-qt-plugins=all', '--include-data-files=/home/shyamnath/qt-for-python/pyside-setup/examples/qml/editingmodel/main.qml=./main.qml', '--include-data-files=/home/shyamnath/qt-for-python/pyside-setup/examples/qml/editingmodel/MovingRectangle.qml=./MovingRectangle.qml', '--noinclude-dlls=libQt6Charts*', '--noinclude-dlls=libQt6Quick3D*', '--noinclude-dlls=libQt6Sensors*', '--noinclude-dlls=libQt6Test*', '--noinclude-dlls=libQt6WebEngine*', '--linux-onefile-icon=/home/shyamnath/qt-for-python/pyside-setup/sources/pyside-tools/deploy_lib/pyside_icon.jpg']' returned non-zero exit status 1. and return_code1
      Traceback (most recent call last):
        File "/home/shyamnath/qt-for-python/pyside-setup/sources/pyside-tools/deploy_lib/commands.py", line 26, in run_command
          subprocess.check_call(command, shell=is_windows)
        File "/home/shyamnath/.pyenv/versions/3.9.14/lib/python3.9/subprocess.py", line 373, in check_call
          raise CalledProcessError(retcode, cmd)
      subprocess.CalledProcessError: Command '['/home/shyamnath/qt-for-python/pyside-setup/venv_3_9_14/bin/python', '-m', 'nuitka', '/home/shyamnath/qt-for-python/pyside-setup/examples/qml/editingmodel/main.py', '--follow-imports', '--onefile', '--enable-plugin=pyside6', '--output-dir=/home/shyamnath/qt-for-python/pyside-setup/examples/qml/editingmodel/deployment', '--quiet', '--noinclude-qt-translations=True', '--include-qt-plugins=all', '--include-data-files=/home/shyamnath/qt-for-python/pyside-setup/examples/qml/editingmodel/main.qml=./main.qml', '--include-data-files=/home/shyamnath/qt-for-python/pyside-setup/examples/qml/editingmodel/MovingRectangle.qml=./MovingRectangle.qml', '--noinclude-dlls=libQt6Charts*', '--noinclude-dlls=libQt6Quick3D*', '--noinclude-dlls=libQt6Sensors*', '--noinclude-dlls=libQt6Test*', '--noinclude-dlls=libQt6WebEngine*', '--linux-onefile-icon=/home/shyamnath/qt-for-python/pyside-setup/sources/pyside-tools/deploy_lib/pyside_icon.jpg']' returned non-zero exit status 1.
      Exception occurred: Traceback (most recent call last):
        File "/home/shyamnath/qt-for-python/pyside-setup/sources/pyside-tools/deploy.py", line 143, in main
          command_str = python.create_executable(
        File "/home/shyamnath/qt-for-python/pyside-setup/sources/pyside-tools/deploy_lib/python_helper.py", line 138, in create_executable
          command_str = self.nuitka.create_executable(
        File "/home/shyamnath/qt-for-python/pyside-setup/sources/pyside-tools/deploy_lib/nuitka_helper.py", line 53, in create_executable
          command_str, _ = run_command(command=command, dry_run=dry_run)
        File "/home/shyamnath/qt-for-python/pyside-setup/sources/pyside-tools/deploy_lib/commands.py", line 26, in run_command
          subprocess.check_call(command, shell=is_windows)
        File "/home/shyamnath/.pyenv/versions/3.9.14/lib/python3.9/subprocess.py", line 373, in check_call
          raise CalledProcessError(retcode, cmd)
      subprocess.CalledProcessError: Command '['/home/shyamnath/qt-for-python/pyside-setup/venv_3_9_14/bin/python', '-m', 'nuitka', '/home/shyamnath/qt-for-python/pyside-setup/examples/qml/editingmodel/main.py', '--follow-imports', '--onefile', '--enable-plugin=pyside6', '--output-dir=/home/shyamnath/qt-for-python/pyside-setup/examples/qml/editingmodel/deployment', '--quiet', '--noinclude-qt-translations=True', '--include-qt-plugins=all', '--include-data-files=/home/shyamnath/qt-for-python/pyside-setup/examples/qml/editingmodel/main.qml=./main.qml', '--include-data-files=/home/shyamnath/qt-for-python/pyside-setup/examples/qml/editingmodel/MovingRectangle.qml=./MovingRectangle.qml', '--noinclude-dlls=libQt6Charts*', '--noinclude-dlls=libQt6Quick3D*', '--noinclude-dlls=libQt6Sensors*', '--noinclude-dlls=libQt6Test*', '--noinclude-dlls=libQt6WebEngine*', '--linux-onefile-icon=/home/shyamnath/qt-for-python/pyside-setup/sources/pyside-tools/deploy_lib/pyside_icon.jpg']' returned non-zero exit status 1. 

      There seems to be a patchelf error for Qml application deployed with pyside6-deploy. The error happens when nuitka uses the patchelf tool. The error seems to be from our end rather than Nuitka, because 6.4.0 works fine. 6.4.1 is broken.

        For Gerrit Dashboard: PYSIDE-2260
        # Subject Branch Project Status CR V

            shpremna Shyamnath Premnadh
            shpremna Shyamnath Premnadh
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes