r/pythonhelp • u/Jaded-Sky376 • 21h ago
Autopep8 issue upon launching VSCODE
Hello everyone, I am new to vscode and just started learning Python.
I have this issue where when I open vscode Autopep8 sends 3 error messages straight away.
I have tried things like: Selecting the correct interpreter( Not that it really matters I only use python global), uninstalling and reinstalling the extension, setting it as default formatter, changing user settings (JSON). I get error messages in the bottom right corner such as:
autopep8 client: couldn't create connection to server.
The autopep8 server crashed 5 times in the last 3 minutes. The server will not be restarted. See the output for more information.
Pending response rejected since connection got disposed.
Here are my settings.json:
{
"workbench.colorTheme": "Dark Modern",
"workbench.iconTheme": "vscode-icons",
"editor.defaultFormatter": "ms-python.autopep8",
"notebook.defaultFormatter": "ms-python.autopep8",
"[python]": {
"editor.defaultFormatter": "ms-python.autopep8"
},
"editor.formatOnSave": true,
"autopep8.interpreter": [
"C:\\Users\\Windows Desktop\\AppData\\Local\\Python\\pythoncore-3.15-64\\python.exe"
]
}
If anybody has a solution to this problem I would appreciate your help down in the comments.
Thanks in advance.