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

PySide6 missing typesystem includes

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P3: Somewhat important
    • 6.5.1, 6.6.0
    • 6.5.0
    • PySide
    • None
    • All
    • b35a0eb98 (dev), a09f6aa2a (6.5)

    Description

      I am using shiboken6-generator to generate bindings to my Qt component and I need to load typesystem_quick.xml

      This is included with PySide6 but it references XML entities that do not exist such as &glgetv_includes;

      These entity references should resolve to a typesystem file like typesystem_glgetv_includes.xml - but these are not include in the PySide6 typesystem files.

      https://doc.qt.io/qtforpython-6/shiboken6/typesystem_specifying_types.html#including-snippets

       

      Simple reproduction:

      $ python -m venv venv
      $ PIP_EXTRA_INDEX_URL=https://download.qt.io/official_releases/QtForPython venv/bin/pip install PySide6 shiboken6 shiboken6-generator
      $ touch bindings.h
      $ cat <<EOF > bindings.xml
      <typesystem package="shiboken_test">
          <load-typesystem name="typesystem_quick.xml" generate="no"/>
      </typesystem>
      EOF
      $ venv/bin/shiboken6 --generator-set=shiboken --enable-pyside-extensions -T../venv/lib/python3.11/site-packages/PySide6/typesystems/ --output-directory=/tmp bindings.h bindings.xml
      
      qt.shiboken: (bindings) Cannot resolve entity "glgetv_includes": Unable to resolve: glgetv_includes
      qt.shiboken: (bindings) /Users/aw/Projects/rectalogic/vsqfx/experiments/builder/venv/lib/python3.11/site-packages/PySide6/typesystems/typesystem_opengl.xml:159:23: Error: Entity 'glgetv_includes' not declared.
      qt.shiboken: (bindings) /Users/aw/Projects/rectalogic/vsqfx/experiments/builder/venv/lib/python3.11/site-packages/PySide6/typesystems/typesystem_quick.xml:10:65: Error: Failed to parse: 'typesystem_opengl.xml'
      qt.shiboken: (bindings) /Users/aw/Projects/rectalogic/vsqfx/experiments/builder/shiboken-test/bindings.xml:2:64: Error: Failed to parse: 'typesystem_quick.xml'
      Cannot parse file: bindings.xml
      shiboken: Error running ApiExtractor.
      Command line:
          "--generator-set=shiboken"
          "--enable-pyside-extensions"
          "-T../venv/lib/python3.11/site-packages/PySide6/typesystems/"
          "--output-directory=/tmp"
          "bindings.h"
          "bindings.xml"

      Attachments

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

        Activity

          People

            kleint Friedemann Kleint
            rectalogic Andrew Wason
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes