FileNotFoundError: [Errno 2] No such file or directory: '.\config\settings.yaml'
In many documented cases, an unknown file named mspm-source.exe running unexpectedly in the background is associated with , specifically unauthorized cryptocurrency miners or adware. It disguises itself with a name resembling legitimate Microsoft processes (like mspmpsvc.exe , which is Windows Defender).
Navigate to the folder where your executable is saved using the cd command. For example: cd C:\Users\YourUsername\Downloads\AppFolder Use code with caution. failed to execute script mspm-source
The traceback ends with FileNotFoundError: [Errno 2] No such file or directory pointing to a .env , .ini , .json , or asset folder.
The phrase "failed to execute script" means that the Windows operating system successfully launched the outer wrapper of the executable file, but the core Python script inside ( mspm-source ) crashed immediately upon startup. FileNotFoundError: [Errno 2] No such file or directory: '
How to Fix the "Failed to Execute Script mspm-source" Error If you are encountering the error, you are likely trying to run a compiled Python executable ( .exe ) on a Windows machine. This error is a generic crash message generated by PyInstaller , the tool developers use to bundle Python code into standalone desktop applications.
Understanding the root cause is the first step to a permanent fix. The error is rarely due to a serious Windows corruption or a dangerous virus. Instead, the main culprits fall into a few common categories: How to Fix the "Failed to Execute Script
Then rebuild with --add-data "config/settings.yaml;config" .
This error is most often caused by a corrupted download or an incomplete extraction of files. The executable cannot find the "source" script it needs to run.
(Replace module_name with the missing library shown in your command prompt traceback). 5. Verify Environment Variables and Paths