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

You cannot package code with Nutka for an application.

    XMLWordPrintable

    Details

    • Type: Suggestion
    • Status: Closed
    • Priority: Not Evaluated
    • Resolution: Duplicate
    • Affects Version/s: 5.15.0
    • Fix Version/s: None
    • 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

          Issue Links

          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:
              qiyixiang 齐 奕翔
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Gerrit Reviews

                  There are no open Gerrit changes