FS#78993 - [pyside6] Entry point pyside6-designer is missing

Attached to Project: Arch Linux
Opened by Vlad (Leopooh) - Wednesday, 05 July 2023, 15:31 GMT
Last edited by Antonio Rojas (arojas) - Wednesday, 05 July 2023, 18:12 GMT
Task Type Feature Request
Category Packages: Extra
Status Closed
Assigned To No-one
Architecture x86_64
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Arch package pyside6 provides python PySide6 package that depends on python packages PySide6-Essentials and PySide6-Addons (i.e. it should contain both of them).
At the same time entry-point pyside6-designer provided by PySide6-Essentials is missing in pyside6 package.

This entry point is a mandatory pre-requisite for python Custom Widgets in Qt Designer as described here https://doc.qt.io/qtforpython-6/tutorials/basictutorial/uifiles.html#troubleshooting-the-qt-designer-plugin :
"The launcher pyside6-designer must be used. The standalone Qt Designer will not load the plugin."

Could you please add pyside6-designer entry-point to pyside6 package?
This task depends upon

Closed by  Antonio Rojas (arojas)
Wednesday, 05 July 2023, 18:12 GMT
Reason for closing:  Fixed
Additional comments about closing:  pyside6-tools 6.5.1.1-3
Comment by Antonio Rojas (arojas) - Wednesday, 05 July 2023, 16:13 GMT
Those entry points are only created when installing with setuptools, not with cmake. Please provide step by step instructions for reproducing your issue.
Comment by Vlad (Leopooh) - Wednesday, 05 July 2023, 16:36 GMT
Hi Antonio.
Here are steps to reproduce the problem:

1. Install pyside6 package.
2. Download Qt custom widget example from https://doc.qt.io/qtforpython-6/examples/example_designer_taskmenuextension.html (direct link to zip file https://doc.qt.io/qtforpython-6/_downloads/39e60d561bbfc47785ed0dec52791f83/taskmenuextension.zip)
3. Unpack zip-file into directory, let's assume its name to be /example_dir
4. Set environment variable:
export PYSIDE_DESIGNER_PLUGINS=/example_dir/
5. Run designer6 (that belongs to pyside6 package) - you will get following error output in console and there won't be TicTacToe widget available:

[user@pc ~]$ export PYSIDE_DESIGNER_PLUGINS=/example_dir/
[user@pc ~]$ designer6
PySide6/__init__.py: Unable to import Shiboken from /example_dir, /usr/lib/python311.zip, /usr/lib/python3.11, /usr/lib/python3.11/lib-dynload, /usr/lib/python3.11/site-packages
qt.pysideplugin: Error running /example_dir/registertictactoe.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.
[user@pc ~]$

There will be no errors and TicTacToe widget will be loaded successfully if you run pyside6-designer instead. The behavior was confirmed by Qt team in first reply to https://bugreports.qt.io/browse/PYSIDE-2382.

Loading...