VS Code 1.75.1 Error – „pythonPath“ is not valid

With VS Code 1.75.1 you could get this error message.

What helped in my environment was, to patch an extension file in the WSL.

You can find this file with

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
cd $HOME/.vscode-server
find . -type f -exec grep "is not valid" {} \;
cd $HOME/.vscode-server find . -type f -exec grep "is not valid" {} \;
cd $HOME/.vscode-server
find . -type f -exec grep "is not valid" {} \;
Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
$HOME/.vscode-server/extensions/ms-python.python-2023.5.10591006/pythonFiles/lib/python/debugpy/adapter/clients.py
$HOME/.vscode-server/extensions/ms-python.python-2023.5.10591006/pythonFiles/lib/python/debugpy/adapter/clients.py
$HOME/.vscode-server/extensions/ms-python.python-2023.5.10591006/pythonFiles/lib/python/debugpy/adapter/clients.py