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

uic.exe in PySide2 v5.14+ outputs bad syntax

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Not Evaluated
    • Resolution: Duplicate
    • Affects Version/s: 5.14.0
    • Fix Version/s: None
    • Component/s: Tooling
    • Labels:
      None
    • Platform/s:
      Linux/X11, macOS, Windows

      Description

      Compiling some .ui files produces SyntaxError py sources:

      File "/home/l/tmp__/SDAT/sdat/ui/declarative/ui_general_settings.py", line 199
      {{ self.getting_started_checkBox.raise()}}
                                        ^
      SyntaxError: invalid syntax

      raise as known, is reserved word in Python. I do not know where the raise is from...

       

      This started when I used new  uic tool inside PySide2 v5.14.0

        Attachments

        1. ui_general_settings.py
          23 kB
          Miloš Korenčiak
        2. ui_general_settings.ui
          24 kB
          Miloš Korenčiak
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

            Assignee:
            crmaurei Cristian Maureira-Fredes
            Reporter:
            mailos Miloš Korenčiak
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Gerrit Reviews

                There are no open Gerrit changes