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

Packaging: libQt6ShaderTools.so.6 bundled in PySide6-Addons when it should be in Essentials

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Not Evaluated
    • 6.8.0
    • 6.7.2
    • Build System
    • Linux/Wayland, Linux/X11, Linux/Yocto, Linux/Other display system
    • a967421e4 (dev), 8d5d047e9 (6.7)

    Description

      Qt5Compat's Graphical Effects library (libqtgraphicaleffectsprivateplugin.so) depends on Qt's Shader library (libQt6ShaderTools.so.6).

      However, Qt5Compat is currently bundled with PySide6-Essentials while Qt's Shader library is bundled with PySide6-Addons, resulting in a nasty error message whenever someone tries to use Qt5Compat's Graphical Effects without PySide6-Addons installed:

      <file>.qml: Type LinearGradient unavailable
      qrc:/qt-project.org/imports/Qt5Compat/GraphicalEffects/LinearGradient.qml:5:1: Cannot load library <python lib>/site-packages/PySide6/Qt/qml/Qt5Compat/GraphicalEffects/private/libqtgraphicaleffectsprivateplugin.so: libQt6ShaderTools.so.6: cannot open shared object file: No such file or directory

      Steps to reproduce:

      1. Download both bug.qml and bug.py and put them into a single directory.
      2. Launch bug.py in an environment with PySide6-Essentials but not PySide6-Addons
      3. Watch the error message appear

      Steps to fix:
      Either move PySide6/Qt/lib/libQt6ShaderTools.so.6 from Addons to Essentials or bundle Qt5Compat with Addons.
       

      Attachments

        1. bug.py
          0.2 kB
        2. bug.qml
          0.4 kB

        Issue Links

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

          Activity

            People

              shpremna Shyamnath Premnadh
              ad5001 Ad Sooi
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes