We are using the official pywine docker from dockerhub to generate .exe binaries with PyInstaller inside the docker. At the end of our script we have a check by using wine generated_binary.exe -v to get the binary version. Since the update to Python 3.12, this command returns the following error :
[PYI-228:ERROR] Failed to load Python DLL 'C:\users\root\AppData\Local\Temp\_MEI2202\python312.dll'.
LoadLibrary: DLL initialization failed.
This can be reproduced with pywine:3.12 and pywine:latest (currently python 3.12.4).