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

Reg->6.7.0: GridCal no longer working

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Incomplete
    • Icon: Not Evaluated Not Evaluated
    • None
    • 6.7.0
    • PySide
    • None
    • Linux/Wayland

      I am the author of a python package that uses pyside6. The package name is GridCal.

      After installing GridCal the users can launch the program with the command "gridcal"

      Under ubuntu 22.04, python 3.11, when a user install GridCal (in an environment for instance)
      the latterst version as of the reporting date is pyside 6.7.0.

      When running the program with the "gridcal" command the error below happens. This does not occur when downgrading pyside to 6.6.3.1 or lower.

      I can confirm that there has been a regression in pyside because the trace stack points at a file that is generated from .ui files automatically using pyside6-rcc.

       

      shibokensupport/signature/parser.py:270: RuntimeWarning: pyside_type_init:_resolve_value

              UNRECOGNIZED:   'PySide6.QtGui.QPainterPath.Element'
              OFFENDING LINE: '0:PySide6.QtWidgets.QWidget.mapFrom(self,arg_1:PySide6.QtWidgets.QWidget,arg_2:typing.Union[PySide6.QtCore.QPointF, PySide6.QtCore.QPoint, PySide6.QtGui.QPainterPath.Element])->PySide6.QtCore.QPointF'
              
      shibokensupport/signature/parser.py:359: RuntimeWarning: pyside_type_init:_resolve_type

                      UNRECOGNIZED:   'typing.Union[PySide6.QtCore.QPointF, PySide6.QtCore.QPoint, PySide6.QtGui.QPainterPath.Element]'
                      OFFENDING LINE: '0:PySide6.QtWidgets.QWidget.mapFrom(self,arg_1:PySide6.QtWidgets.QWidget,arg_2:typing.Union[PySide6.QtCore.QPointF, PySide6.QtCore.QPoint, PySide6.QtGui.QPainterPath.Element])->PySide6.QtCore.QPointF'
                      
      shibokensupport/signature/parser.py:270: RuntimeWarning: pyside_type_init:_resolve_value

              UNRECOGNIZED:   'PySide6.QtCore.QPointF, PySide6.QtCore.QPoint, PySide6.QtGui.QPainterPath.Element'
              OFFENDING LINE: '0:PySide6.QtWidgets.QWidget.mapFrom(self,arg_1:PySide6.QtWidgets.QWidget,arg_2:typing.Union[PySide6.QtCore.QPointF, PySide6.QtCore.QPoint, PySide6.QtGui.QPainterPath.Element])->PySide6.QtCore.QPointF'
              
      shibokensupport/signature/parser.py:270: RuntimeWarning: pyside_type_init:_resolve_value

              UNRECOGNIZED:   'PySide6.QtGui.QPainterPath.Element'
              OFFENDING LINE: '0:PySide6.QtWidgets.QWidget.mapFromGlobal(self,arg__1:typing.Union[PySide6.QtCore.QPointF, PySide6.QtCore.QPoint, PySide6.QtGui.QPainterPath.Element])->PySide6.QtCore.QPointF'
              
      shibokensupport/signature/parser.py:359: RuntimeWarning: pyside_type_init:_resolve_type

                      UNRECOGNIZED:   'typing.Union[PySide6.QtCore.QPointF, PySide6.QtCore.QPoint, PySide6.QtGui.QPainterPath.Element]'
                      OFFENDING LINE: '0:PySide6.QtWidgets.QWidget.mapFromGlobal(self,arg__1:typing.Union[PySide6.QtCore.QPointF, PySide6.QtCore.QPoint, PySide6.QtGui.QPainterPath.Element])->PySide6.QtCore.QPointF'
                      
      shibokensupport/signature/parser.py:270: RuntimeWarning: pyside_type_init:_resolve_value

              UNRECOGNIZED:   'PySide6.QtCore.QPointF, PySide6.QtCore.QPoint, PySide6.QtGui.QPainterPath.Element'
              OFFENDING LINE: '0:PySide6.QtWidgets.QWidget.mapFromGlobal(self,arg__1:typing.Union[PySide6.QtCore.QPointF, PySide6.QtCore.QPoint, PySide6.QtGui.QPainterPath.Element])->PySide6.QtCore.QPointF'
              
      shibokensupport/signature/parser.py:270: RuntimeWarning: pyside_type_init:_resolve_value

              UNRECOGNIZED:   'PySide6.QtGui.QPainterPath.Element'
              OFFENDING LINE: '0:PySide6.QtWidgets.QWidget.mapFromParent(self,arg__1:typing.Union[PySide6.QtCore.QPointF, PySide6.QtCore.QPoint, PySide6.QtGui.QPainterPath.Element])->PySide6.QtCore.QPointF'
              
      shibokensupport/signature/parser.py:359: RuntimeWarning: pyside_type_init:_resolve_type

                      UNRECOGNIZED:   'typing.Union[PySide6.QtCore.QPointF, PySide6.QtCore.QPoint, PySide6.QtGui.QPainterPath.Element]'
                      OFFENDING LINE: '0:PySide6.QtWidgets.QWidget.mapFromParent(self,arg__1:typing.Union[PySide6.QtCore.QPointF, PySide6.QtCore.QPoint, PySide6.QtGui.QPainterPath.Element])->PySide6.QtCore.QPointF'
                      
      shibokensupport/signature/parser.py:270: RuntimeWarning: pyside_type_init:_resolve_value

              UNRECOGNIZED:   'PySide6.QtCore.QPointF, PySide6.QtCore.QPoint, PySide6.QtGui.QPainterPath.Element'
              OFFENDING LINE: '0:PySide6.QtWidgets.QWidget.mapFromParent(self,arg__1:typing.Union[PySide6.QtCore.QPointF, PySide6.QtCore.QPoint, PySide6.QtGui.QPainterPath.Element])->PySide6.QtCore.QPointF'
              
      shibokensupport/signature/parser.py:270: RuntimeWarning: pyside_type_init:_resolve_value

              UNRECOGNIZED:   'PySide6.QtGui.QPainterPath.Element'
              OFFENDING LINE: '0:PySide6.QtWidgets.QWidget.mapTo(self,arg_1:PySide6.QtWidgets.QWidget,arg_2:typing.Union[PySide6.QtCore.QPointF, PySide6.QtCore.QPoint, PySide6.QtGui.QPainterPath.Element])->PySide6.QtCore.QPointF'
              
      shibokensupport/signature/parser.py:359: RuntimeWarning: pyside_type_init:_resolve_type

                      UNRECOGNIZED:   'typing.Union[PySide6.QtCore.QPointF, PySide6.QtCore.QPoint, PySide6.QtGui.QPainterPath.Element]'
                      OFFENDING LINE: '0:PySide6.QtWidgets.QWidget.mapTo(self,arg_1:PySide6.QtWidgets.QWidget,arg_2:typing.Union[PySide6.QtCore.QPointF, PySide6.QtCore.QPoint, PySide6.QtGui.QPainterPath.Element])->PySide6.QtCore.QPointF'
                      
      shibokensupport/signature/parser.py:270: RuntimeWarning: pyside_type_init:_resolve_value

              UNRECOGNIZED:   'PySide6.QtCore.QPointF, PySide6.QtCore.QPoint, PySide6.QtGui.QPainterPath.Element'
              OFFENDING LINE: '0:PySide6.QtWidgets.QWidget.mapTo(self,arg_1:PySide6.QtWidgets.QWidget,arg_2:typing.Union[PySide6.QtCore.QPointF, PySide6.QtCore.QPoint, PySide6.QtGui.QPainterPath.Element])->PySide6.QtCore.QPointF'
              
      shibokensupport/signature/parser.py:270: RuntimeWarning: pyside_type_init:_resolve_value

              UNRECOGNIZED:   'PySide6.QtGui.QPainterPath.Element'
              OFFENDING LINE: '0:PySide6.QtWidgets.QWidget.mapToGlobal(self,arg__1:typing.Union[PySide6.QtCore.QPointF, PySide6.QtCore.QPoint, PySide6.QtGui.QPainterPath.Element])->PySide6.QtCore.QPointF'
              
      shibokensupport/signature/parser.py:359: RuntimeWarning: pyside_type_init:_resolve_type

                      UNRECOGNIZED:   'typing.Union[PySide6.QtCore.QPointF, PySide6.QtCore.QPoint, PySide6.QtGui.QPainterPath.Element]'
                      OFFENDING LINE: '0:PySide6.QtWidgets.QWidget.mapToGlobal(self,arg__1:typing.Union[PySide6.QtCore.QPointF, PySide6.QtCore.QPoint, PySide6.QtGui.QPainterPath.Element])->PySide6.QtCore.QPointF'
                      
      shibokensupport/signature/parser.py:270: RuntimeWarning: pyside_type_init:_resolve_value

              UNRECOGNIZED:   'PySide6.QtCore.QPointF, PySide6.QtCore.QPoint, PySide6.QtGui.QPainterPath.Element'
              OFFENDING LINE: '0:PySide6.QtWidgets.QWidget.mapToGlobal(self,arg__1:typing.Union[PySide6.QtCore.QPointF, PySide6.QtCore.QPoint, PySide6.QtGui.QPainterPath.Element])->PySide6.QtCore.QPointF'
              
      shibokensupport/signature/parser.py:270: RuntimeWarning: pyside_type_init:_resolve_value

              UNRECOGNIZED:   'PySide6.QtGui.QPainterPath.Element'
              OFFENDING LINE: '0:PySide6.QtWidgets.QWidget.mapToParent(self,arg__1:typing.Union[PySide6.QtCore.QPointF, PySide6.QtCore.QPoint, PySide6.QtGui.QPainterPath.Element])->PySide6.QtCore.QPointF'
              
      shibokensupport/signature/parser.py:359: RuntimeWarning: pyside_type_init:_resolve_type

                      UNRECOGNIZED:   'typing.Union[PySide6.QtCore.QPointF, PySide6.QtCore.QPoint, PySide6.QtGui.QPainterPath.Element]'
                      OFFENDING LINE: '0:PySide6.QtWidgets.QWidget.mapToParent(self,arg__1:typing.Union[PySide6.QtCore.QPointF, PySide6.QtCore.QPoint, PySide6.QtGui.QPainterPath.Element])->PySide6.QtCore.QPointF'
                      
      shibokensupport/signature/parser.py:270: RuntimeWarning: pyside_type_init:_resolve_value

              UNRECOGNIZED:   'PySide6.QtCore.QPointF, PySide6.QtCore.QPoint, PySide6.QtGui.QPainterPath.Element'
              OFFENDING LINE: '0:PySide6.QtWidgets.QWidget.mapToParent(self,arg__1:typing.Union[PySide6.QtCore.QPointF, PySide6.QtCore.QPoint, PySide6.QtGui.QPainterPath.Element])->PySide6.QtCore.QPointF'
              
      Traceback (most recent call last):
        File "/home/santi/Documentos/Git/GitHub/GridCal/src/GridCal/ExecuteGridCal.py", line 39, in <module>
          runGridCal()
        File "/home/santi/Documentos/Git/GitHub/GridCal/src/GridCal/Gui/Main/GridCalMain.py", line 128, in runGridCal
          window_ = MainGUI()
                    ^^^^^^^^^
        File "/home/santi/Documentos/Git/GitHub/GridCal/src/GridCal/Gui/Main/GridCalMain.py", line 49, in {}init{}
          ScriptingMain.{}init{}(self, parent=None)
        File "/home/santi/Documentos/Git/GitHub/GridCal/src/GridCal/Gui/Main/SubClasses/Scripting/scripting.py", line 40, in {}init{}
          IoMain.{}init{}(self, parent)
        File "/home/santi/Documentos/Git/GitHub/GridCal/src/GridCal/Gui/Main/SubClasses/io.py", line 54, in {}init{}
          ConfigurationMain.{}init{}(self, parent)
        File "/home/santi/Documentos/Git/GitHub/GridCal/src/GridCal/Gui/Main/SubClasses/Settings/configuration.py", line 91, in {}init{}
          ResultsMain.{}init{}(self, parent)
        File "/home/santi/Documentos/Git/GitHub/GridCal/src/GridCal/Gui/Main/SubClasses/Results/results.py", line 44, in {}init{}
          SimulationsMain.{}init{}(self, parent)
        File "/home/santi/Documentos/Git/GitHub/GridCal/src/GridCal/Gui/Main/SubClasses/simulations.py", line 58, in {}init{}
          TimeEventsMain.{}init{}(self, parent)
        File "/home/santi/Documentos/Git/GitHub/GridCal/src/GridCal/Gui/Main/SubClasses/Model/time_events.py", line 43, in {}init{}
          ObjectsTableMain.{}init{}(self, parent)
        File "/home/santi/Documentos/Git/GitHub/GridCal/src/GridCal/Gui/Main/SubClasses/Model/objects.py", line 52, in {}init{}
          DiagramsMain.{}init{}(self, parent)
        File "/home/santi/Documentos/Git/GitHub/GridCal/src/GridCal/Gui/Main/SubClasses/Model/diagrams.py", line 63, in {}init{}
          CompiledArraysMain.{}init{}(self, parent)
        File "/home/santi/Documentos/Git/GitHub/GridCal/src/GridCal/Gui/Main/SubClasses/Model/compiled_arrays.py", line 39, in {}init{}
          BaseMainGui.{}init{}(self, parent)
        File "/home/santi/Documentos/Git/GitHub/GridCal/src/GridCal/Gui/Main/SubClasses/base_gui.py", line 132, in {}init{}
          self.ui.setupUi(self)
        File "/home/santi/Documentos/Git/GitHub/GridCal/src/GridCal/Gui/Main/MainWindow.py", line 448, in setupUi
          self.centralwidget = QWidget(mainWindow)
                               ^^^^^^^^^^^^^^^^^^^
      TypeError: 'PySide6.QtWidgets.QWidget.{}init{}' called with wrong argument types:
        PySide6.QtWidgets.QWidget.{}init{}(MainGUI)
      Supported signatures:
        PySide6.QtWidgets.QWidget.{}init{}(Optional[PySide6.QtWidgets.QWidget] = None, PySide6.QtCore.Qt.WindowType = Default(Qt.WindowFlags))

       

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

            crmaurei Cristian Maureira-Fredes
            sanpen san pen
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes