spine-tools / Spine-Toolbox

Spine Toolbox is an open source Python package to manage data, scenarios and workflows for modelling and simulation. You can have your local workflow, but work as a team through version control and SQL databases.
https://www.tools-for-energy-system-modelling.org/
GNU Lesser General Public License v3.0
73 stars 18 forks source link

Support PySide6 6.8.x #2980

Open ptsavol opened 1 month ago

ptsavol commented 1 month ago

Toolbox crashes on PySide6 6.8.0. The crash happens in qtpy's QtGui.py line 120 from PySide6.QtGui import *, which is called by qtconsole's util.py line from qtpy import QtCore, QtGui, which is called in our code in file jupyter_console_widget.py line from qtconsole.client import QtKernelClient. I don't think we can do anything about it but to wait for a new version of qtpy or PySide 6.8.1.

Related to #2979.

soininen commented 1 month ago

Unit tests fail on 6.8.0.1 too. Commit d100b1e3eceede140217c770952928d31d667fe7 disables that PySide6, too.

soininen commented 1 month ago

Looks like the issue with 6.8.0.1 is that it segfaults when we e.g. set the text for QGraphicsTextItems in icons on Design view --- i.e. it is a bug in PySide6's text handling/rendering.