Failed To Execute Script Mspm-source Here
If the executable runs successfully after disabling your antivirus (temporarily):
When you see "failed to execute script mspm-source," you may also notice:
If none of the above work, perform a clean boot to see if a non-Microsoft service is triggering the script. failed to execute script mspm-source
Steps:
This error typically occurs when a Python script packaged into an executable fails at startup due to one of these reasons: If the executable runs successfully after disabling your
| Cause | Explanation |
|-------|-------------|
| Missing Python modules | Required packages not included during build |
| File path issues | Script assumes relative paths for data files, but executable runs from different working directory |
| Hidden imports | PyInstaller did not detect dynamically imported modules |
| Missing DLLs / system libraries | e.g., libpython.dll, vcruntime140.dll |
| Environment mismatch | Script tries to access environment vars that don’t exist at runtime |
| Permissions | Executable cannot write to temp or log directory |
If the traceback says FileNotFoundError: [Errno 2] No such file or directory: 'config.json': When you see "failed to execute script mspm-source,"
Alternatively, if the script expects a file path passed as an argument, run:
mspm-source.exe --input "C:\full\path\to\your\file.txt"
The file mspm-source is not a standard Windows system file. Instead, it is almost always associated with third-party software, most commonly McAfee Security Scan Plus or other McAfee products. The term "mspm" often stands for McAfee Security Platform Manager or a related background service.
The phrase "failed to execute script" indicates that a Python script (wrapped into an executable) or a similar automated script was triggered to run—usually at startup—but Windows could not find the necessary file, path, or dependencies to run it.