Python PyInstaller help needed
Budget: $10 – $30 USD
I am using PyInstaller on a new Win-11 64-bit system to create an exe file for a large complex python program.
When I run the exe file created by PyInstaller, an error message says "The application has failed to start because its side-by-side configuration is incorrect."
Looking in the Windows application event viewer I see these details:
Activation context generation failed for "C:\Users\vernk\Documents\TelemetryPro\ProgramFiles\TelemPro.exe.Manifest".
Error in manifest or policy file "C:\Users\vernk\Documents\TelemetryPro\ProgramFiles\Microsoft.VC90.MFC.MANIFEST" on line 4.
Component identity found in manifest does not match the identity of the component requested.
Reference is Microsoft.VC90.MFC,processorArchitecture="amd64",publicKeyToken="1fc8b3b9a1e18e3b",type="win32",version="9.0.21022.8".
Definition is Microsoft.VC90.MFC,processorArchitecture="amd64",publicKeyToken="1fc8b3b9a1e18e3b",type="win32",version="9.0.30729.6161".
Looking back into the PyInstaller log I see it issuing warnings about not finding some DDL files. There are a lot of them but three examples are:
13896 WARNING: lib not found: api-ms-win-core-string-l1-1-0.dll dependency of C:\windows\system32\kernel32.dll
13934 WARNING: lib not found: api-ms-win-core-comm-l1-1-0.dll dependency of C:\windows\system32\kernel32.dll
13973 WARNING: lib not found: api-ms-win-core-libraryloader-l1-2-2.dll dependency of C:\windows\system32\kernel32.dll
PyInstaller is an old version 2.1 because the python program is written in python 2.7.
This older version of PyInstaller works fine on a Win-7 64-bit system.
Problem shows up running it on a new Win-11 machine.
How do I fix this?
When I run the exe file created by PyInstaller, an error message says "The application has failed to start because its side-by-side configuration is incorrect."
Looking in the Windows application event viewer I see these details:
Activation context generation failed for "C:\Users\vernk\Documents\TelemetryPro\ProgramFiles\TelemPro.exe.Manifest".
Error in manifest or policy file "C:\Users\vernk\Documents\TelemetryPro\ProgramFiles\Microsoft.VC90.MFC.MANIFEST" on line 4.
Component identity found in manifest does not match the identity of the component requested.
Reference is Microsoft.VC90.MFC,processorArchitecture="amd64",publicKeyToken="1fc8b3b9a1e18e3b",type="win32",version="9.0.21022.8".
Definition is Microsoft.VC90.MFC,processorArchitecture="amd64",publicKeyToken="1fc8b3b9a1e18e3b",type="win32",version="9.0.30729.6161".
Looking back into the PyInstaller log I see it issuing warnings about not finding some DDL files. There are a lot of them but three examples are:
13896 WARNING: lib not found: api-ms-win-core-string-l1-1-0.dll dependency of C:\windows\system32\kernel32.dll
13934 WARNING: lib not found: api-ms-win-core-comm-l1-1-0.dll dependency of C:\windows\system32\kernel32.dll
13973 WARNING: lib not found: api-ms-win-core-libraryloader-l1-2-2.dll dependency of C:\windows\system32\kernel32.dll
PyInstaller is an old version 2.1 because the python program is written in python 2.7.
This older version of PyInstaller works fine on a Win-7 64-bit system.
Problem shows up running it on a new Win-11 machine.
How do I fix this?