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

Cannot package code with Nuitka for applications that use PySide2 5.15.0

    XMLWordPrintable

Details

    • Suggestion
    • Resolution: Won't Do
    • P2: Important
    • 5.15.1
    • 5.15.0
    • PySide
    • None
    • Python 3.8.1 + PySide2 5.15.0 + Windows 10

    • Windows

    Description

      When I tried to package a program with Nuitka, the generated exe file told me

      "

      Traceback (most recent call last):
      File "D:\programs\python\a_qt_app\out\a_qt_app.dist\a_qt_app.pyw", line 2, in <module>
      File "<frozen importlib._bootstrap>", line 991, in _find_and_load
      File "<frozen importlib._bootstrap>", line 975, in _find_and_load_unlocked
      File "<frozen importlib._bootstrap>", line 671, in _load_unlocked
      File "D:\programs\python\a_qt_app\out\a_qt_app.dist\PySide2_init_.py", line 88, in <module PySide2>
      File "D:\programs\python\a_qt_app\out\a_qt_app.dist\PySide2_init_.py", line 62, in _setupQtDirectories
      AttributeError: type object 'type' has no attribute '_signature_'

      ", so I see the source code and found that this line was fine, because it imported the Shiboken2 package, and since which line of code would not go wrong at runtime, I suggested changing"type._signature_"to"

      "

      try:

          type._signature

      except AttributeError:
          pass

      "

      Attachments

        For Gerrit Dashboard: PYSIDE-1352
        # Subject Branch Project Status CR V

        Activity

          People

            ctismer Christian Tismer
            qiyixiang 齐 奕翔
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes