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

Initial script _utils.py looks for a wrong DLL and also fails to qRegisterResourceData()

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P3: Somewhat important
    • Resolution: Done
    • Affects Version/s: dev
    • Fix Version/s: dev
    • Component/s: PySide
    • Labels:
    • Environment:
      Windows 32 and 64-bit + Python 3.5

      Description

      The initial script "_utils.py.in" of pyside2 looks for a wrong DLL pattern:

              if sys.platform == 'win32':
                  pattern = ["QtCore*.dll"]
              else:
                  ...
      

      The pattern should be "Qt5Core*.dll" instead.

      The other problem is "rc_struct", "rc_name", "rc_data" always be garbage collected which makes the registered qt.conf resource invalid.

      rc_struct, rc_name, rc_data = _get_qt_conf_resource(prefix, binaries,
                                                               plugins, imports,
                                                               translations)
      

      A solution could be declaring the three variables global.

      global rc_struct, rc_name, rc_data
      

        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:
            jasonwu Jiasen Wu
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Gerrit Reviews

                There are no open Gerrit changes