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

App executable crashes (built with cxfreeze)

    XMLWordPrintable

Details

    • Bug
    • Resolution: Invalid
    • Not Evaluated
    • None
    • 6.0.1
    • PySide
    • None
    • Python 3.8.5 64-bit
    • Windows

    Description

      I have an app based on PySide6. It gets built with cxfreeze and executed fine on PySide 6.0.0.

      However after upgrading to 6.0.1 the executable fails with the following error:

      ---------------------------
       cx_Freeze: Python error in main script
       ---------------------------
       Traceback (most recent call last):
       File "d:\python38\lib\site-packages\cx_Freeze\initscripts__startup__.py", line 41, in run
       module.run()
       File "d:\python38\lib\site-packages\cx_Freeze\initscripts\Console.py", line 36, in run
       exec(code, m.__dict__)
       File "myapp.py", line 3, in <module>
       File "C:\Users\user\AppData\Local\Temp\embedded._ngy9us3.zip\shibokensupport__feature__.py", line 140, in _import
       ImportError: DLL load failed while importing QtWidgets: The specified module could not be found.
      

      The line referenced in the error above (line 3) is as follows:

      from PySide6.QtWidgets import QWidget, QApplication, QSystemTrayIcon, QMenu, QDialog, QTableWidgetItem, QAbstractScrollArea, QTableWidgetSelectionRange, QMainWindow, QMessageBox, QStyleFactory
      

      The build command is:

      cxfreeze myapp.py --target-dir dist --base-name Win32GUI --include-modules atexit
      

       

      Attachments

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

        Activity

          People

            crmaurei Cristian Maureira-Fredes
            midnightdim Dmitry B
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes