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

Qt Designer unable to import Shiboken on Linux

    XMLWordPrintable

Details

    • Bug
    • Resolution: Invalid
    • Not Evaluated
    • None
    • 6.5.1.1
    • Shiboken, Tooling
    • None
    • Linux/X11

    Description

      I use custom widgets in Qt Designer (as described in documentation).] Everything works fine under Windows OS.

      On Linux (Arch Linux), Qt Designer doesn't load custom widget plugins and shows errors in console:

      [user@pc]$ PYSIDE_DESIGNER_PLUGINS=/home/projects/widget_plugins/ 
      [user@pc]$ export PYSIDE_DESIGNER_PLUGINS 
      [user@pc]$ designer6 
      PySide6/__init__.py: Unable to import Shiboken from /home/projects/widget_plugins, /usr/lib/python311.zip, /usr/lib/python3.11, /usr/lib/python3.11/lib-dynload, /usr/lib/python3.11/site-packages 
      qt.pysideplugin: Error running /home/projects/widget_plugins/register_designer_plugins.py: /usr/lib/python3.11/lib-dynload/binascii.cpython-311-x86_64-linux-gnu.so: undefined symbol: _PyUnicode_Ready 
      qt.pysideplugin: No instance of QPyDesignerCustomWidgetCollection was found.

      Contents of register_designer_plugins.py is according to manual and very simple:

      from designer_plugins.plugin_date_range_selector import DateRangeSelectorPlugin
      from PySide6.QtDesigner import QPyDesignerCustomWidgetCollection
      
      if __name__ == '__main__':
          QPyDesignerCustomWidgetCollection.addCustomWidget(DateRangeSelectorPlugin()) 

      I found that similar errors were reported in past and were corrected in previous versions of Shiboken - this is the reason why I set Component=Shiboken.

      Attachments

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

        Activity

          People

            kleint Friedemann Kleint
            starterkit Ivan Ivanov
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes