Collectives™ on Stack Overflow

Find centralized, trusted content and collaborate around the technologies you use most.

Learn more about Collectives

Teams

Q&A for work

Connect and share knowledge within a single location that is structured and easy to search.

Learn more about Teams

Pylance is now the default language server ( see here ). As such, I resolved the issue by changing my settings.json to:

"python.languageServer": "Pylance"

You may need to install the Pylance extension, if you don't already have it.

I met this issue on Ubuntu 18.04 LTS with python interpreter python3.6.9 + VS code python extension 2022.14

  • If I downgrade the VS code python extension to 2022.06, it works.
  • If I install a new version python (e.g. python3.9), it works.
  • So the reason should be:

    The new version python extension is not compatible with old python version 3.6.9.

    Solution:

    either downgrade the python extension to 2022.06(can be even earlier, not fully tested); or upgrade the python interpreter version.

    it is my case. After changing interpreter env 3.6 -> to -> 3.8 all error pop-ups disappeared. – ati ince Dec 8, 2022 at 14:44