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

six.py SystemError in frozen apps that embed PySide2

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P2: Important
    • 5.12.2
    • 5.12.1
    • PySide, Shiboken
    • None
    • Python 3.6, Python 3.7, macOS, Windows, PyInstaller, py2app, cx_freeze
    • All
    • 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

              ctismer Christian Tismer
              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