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

Issue Report Checklist

  • Searched the issues page for similar reports
  • Read the relevant sections of the Spyder Troubleshooting Guide and followed its advice
  • Reproduced the issue after updating with conda update spyder (or pip, if not using Anaconda)
  • Could not reproduce inside jupyter qtconsole (if console-related)
  • Tried basic troubleshooting (if a bug/error)
    • Restarted Spyder
    • Reset preferences with spyder --reset
    • Reinstalled the latest version of Anaconda
    • Tried the other applicable steps from the Troubleshooting Guide
  • Completed the Problem Description, Steps to Reproduce and Version sections below

Problem Description

After a few seconds of opening Spyder, I get the message in the title of the issue. LSP Python is down. Linting and completion work for a few seconds when opening Spyder, then stopped and the pop up shows again. Same problem as the one describe on #11026. As requested there, I’m opening a new issue.

Steps taken that didn’t help the issue

  • Running conda update -all
  • Reinstalled Anaconda.
  • Running spyder --reset
  • Unable to reproduce issue on Windows.

What steps reproduce the problem?

  1. Open Spyder.
  2. Wait a few seconds.
  3. The pop-up shows again.

Versions

  • Spyder version: 4.1.4
  • Python version: 3.7.7
  • Operating System name/version: macOS 10.15.6

Screenshots

Screenshot 2020-08-02 at 02 22 25 pm Screenshot 2020-08-02 at 02 22 41 pm

About this issue

  • Original URL
  • State: closed
  • Created 6 years ago
  • Reactions: 2
  • Comments: 18 (9 by maintainers)

Most upvoted comments

Yes! Working now. Thanks so much!

It seems that there’s a problem in the environment, so to fix it please go to User\Anaconda\envs\not-working-env\Lib\site-packages inside that folder please run in cmd DEL /Q /F /S "*.pyc" After that the LSP should be working fine, please let me know if this fixes the issue

@steff456 seems that the problem was resolved by a clean installation. Thanks.

Hi @joseavegaa, That sounds like a nice idea, please let me know if reinstalling Anaconda your problem is fixed

Hi @joseavegaa, Can you please create a new conda environment and run spyder from there? Maybe the conda update -all damaged something in your environment.

conda create -n test-env python=3.7
conda activate test-env
conda install spyder=4.1.4

Please let me know if that works