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

    • Type: Suggestion
    • Status: Closed
    • Priority: P2: Important
    • Resolution: Won't Do
    • Affects Version/s: 5.15.0
    • Fix Version/s: 5.15.1
    • Component/s: PySide
    • Labels:
      None
    • Environment:

      Python 3.8.1 + PySide2 5.15.0 + Windows 10

    • Platform/s:
      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

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

          Activity

            People

            Assignee:
            ctismer Christian Tismer
            Reporter:
            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