Details
-
Bug
-
Resolution: Unresolved
-
P4: Low
-
None
-
6.8.0
-
None
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
- relates to
-
PYSIDE-3000 Reg->6.8.2: Windows: MSVC runtime no longer bundled/Importing fails with "Unable to import Shiboken from {empty path}, {more paths}"
-
- Closed
-