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

Outdated Visual Studio Redistributables in Shiboken6

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P4: Low
    • None
    • 6.8.0
    • Build System
    • None
    • Windows

    Description

      The msvcp140.dll (and maybe other DLLs) vendored with Shiboken6 is not compatible with binary Python extensions that use DLL dependencies compiled with Visual Studio 2022 and the v143 toolset. In our case, the dependency requires at least version 14.40 of msvcp140.dll, while Shiboken includes version 14.39. The current version is 14.42.

      In this configuration, importing PyQt6 first causes the outdated msvcp140.dll to load. A subsequent import of the binary extension fails because the already loaded DLL is incompatible.

      A workaround exists by first importing the binary extension, causing the msvcp140.dll to be loaded from the system directory (which is usually the correct version provided by the VC Redistributables Installer).

      A mid-term solution would be to update the redistributable files included with Shiboken6.

      A more long-term solution would be to check in Shiboken6's {}init{}.py whether a newer version of the VC Redistributables is installed in the system and explicitly load those instead of the included DLLs.

      Attachments

        Issue Links

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

          Activity

            People

              crmaurei Cristian Maureira-Fredes
              bkloster Benjamin Kloster
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:

                Gerrit Reviews

                  There are no open Gerrit changes