Skip to content

Python Pylint Import Error #46885

Discussion options

You must be logged in to vote

This issue I have managed to fix it.

Using ChatGBT I was able to narrow down the issue to the VSCode setting for the path to Pylint being incorrectly pointed at a random Pylint stored inside the /usr directory.

After adjusting it to the Pylint in my Pyenv Environment settings and reloading the container. VSCode then re-installed Pylance (No idea why) and then upon a 2nd reload after that the issue is now resolved.

I do not understand why this was necessary and why adjusting the interpreter doesn't just override that setting. It has to be that Codespaces is forcefully pointing VSCode at the Pylint stored in /usr

For anyone who stumbles across this:

  1. Hit "ctrl" + ","
  2. Search for "python.lint…

Replies: 3 comments 7 replies

Comment options

You must be logged in to vote
5 replies
@PancakePuncher
Comment options

@mammaddrik
Comment options

@PancakePuncher
Comment options

@mammaddrik
Comment options

@PancakePuncher
Comment options

Comment options

You must be logged in to vote
2 replies
@aniljatt
Comment options

@iuritorres
Comment options

Answer selected by PancakePuncher
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something isn't working correctly Codespaces Your development environment, in the cloud. Run VS Code and code on GitHub's cloud platform,
5 participants