Completion and linting in the editor for Python files will not work during current session, or stopped working

Question:

I don’t know how to repair the error. Every time I open Spyder the warnings shows up and restarting the aplication doesn’t solve the problem.

If you can help me I would appreciate it.

Spyder Completion Warning
enter image description here

Asked By: Acromyrmex

||

Answers:

As the dialog says you need to check your firewall or antivirus since probably one of them is stopping/preventing the launching of the process that Spyder uses to provide completions and linting. To check if either your firewall or antivirus is causing the problem you could try to deactivate/disable them temporarly and try to launch Spyder again. If that helps then you need to create rules to allow Python processes.

Another option, if you are ok without having those services (completion and linting), is to ignore this message and select the Don't show again checkbox to prevent seen it again.

For more details regarding completion and linting services that Spyder provides you can check the documentation here:

Answered By: Daniel Althviz

Disabling the firewall and antivirus didn’t work for me. I was able to fix this issue by resetting Spyder. In the Anaconda prompt, enter:

spyder --reset
Answered By: BenjaminDSmith

In my case the error was caused by incompatible versions and fixed by (here for Python 3.10)

python3.10 -m pip install -U python-language-server
Answered By: Dominik Kern
Categories: questions Tags: , ,
Answers are sorted by their score. The answer accepted by the question owner as the best is marked with
at the top-right corner.