Even though the executable is supposed to be self-contained, sometimes the packager (PyInstaller, etc.) failed to include a specific dynamic link library (DLL) or data file (like a .json , .xml , or .dll ). When the script tries to import or open that missing resource, it crashes.
Access is denied when querying restricted APIs or hardware logs. failed to execute script mspm-source