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

six.py SystemError in frozen apps that embed PySide2

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P2: Important
    • Resolution: Done
    • Affects Version/s: 5.12.1
    • Fix Version/s: 5.12.2
    • Component/s: PySide, Shiboken
    • Labels:
      None
    • Environment:
      Python 3.6, Python 3.7, macOS, Windows, PyInstaller, py2app, cx_freeze
    • Platform/s:
      All
    • Commits:
      f324cced79a004d6ecb698a01189500384d0f966 (pyside/pyside-setup/5.12) 723aea37263571865edc9e0299fedbe266a47223 (pyside/pyside-setup/5.12)

      Description

      When embedding PySide2 5.12.1 using either PyInstaller, py2app, or cx_freeze in a frozen executable, the app crashes right after opening.

      The traceback points to six.py, specifically: 

      File "six.pyc", line 318, in <module>
        moves = _MovedItems(__name__ + ".moves")
      File "six.pyc", line 128, in __init__
        self.__doc__ = self.__class__.__doc__
      SystemError: <method-wrapper '__get__' of getset_descriptor object at 0x100072bd0> returned a result with an error set
      

      This error does not show up if the same codebase is executed from sources.

      This issue has been experienced by other developers and reported on the PyInstaller (link) and six.py (link) trackers.

      So far, we have reports of this issue on Windows and macOS. with Python 3.6 and 3.7.

        Attachments

          Issue Links

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

            Activity

              People

              • Assignee:
                ctismer Christian Tismer
                Reporter:
                alby128 Alberto Sottile
              • Votes:
                1 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Gerrit Reviews

                  There are no open Gerrit changes