Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

VS Code: "The isort server crashed 5 times in the last 3 minutes..."

I may have messed up some environmental path variables.

I was tinkering around VS Code while learning about Django and virtual environments, and changing the directory path of my Python install. While figuring out how to point VS Code's default Python path, I deleted some User path variables.

Then, isort began to refuse to run.

I've tried uninstalling the extension(s), deleting the ms-python.'s, and uninstalling VS Code itself, clearing the Python Workspace Interpreter Settings, and restarting my computer.

Even if it's not my path variables, anyone know the defaults that should be in the "user" paths variables?

like image 854
Nikola da Vinci Avatar asked Dec 15 '25 11:12

Nikola da Vinci


2 Answers

Another reason maybe that you are using a python version older than 3.7, which isort is not supporting anymore. Here is a reference link.

like image 148
Yixuan Wei Avatar answered Dec 16 '25 23:12

Yixuan Wei


I also had this error on one of my windows machines. I don't know why the isort extension only chrashed on this machine and worked well on the other windows machines.

I fixed it by manually setting the path to python.exe in the settings of the isort extension:

In VSCode go to Settings > Extensions > isort > Interpreter and enter the path to python.exe for example:

C:\WinPython\WPy64-39100\python-3.9.10.amd64\python.exe

like image 39
Franky1 Avatar answered Dec 17 '25 01:12

Franky1



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!