Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Import "requests" could not be resolved Pylance: reportMissingModuleSource. #7

Closed
albas99 opened this issue Jun 15, 2022 · 1 comment

Comments

@albas99
Copy link
Owner

albas99 commented Jun 15, 2022

Other similar issues:
Import "tweepy" could not be resolved: reportMissingImports
Import "dotenv" could not be resolved from source: reportMissingImports

Potential solutions if error occurs on runtime:
https://dev.to/climentea/how-to-solve-pylance-missing-imports-in-vscode-359b
https://stackoverflow.com/questions/65252074/import-path-to-own-script-could-not-be-resolved-pylance-reportmissingimports

Info from official repo
https://github.com/microsoft/pylance-release/blob/main/DIAGNOSTIC_SEVERITY_RULES.md#diagnostic-severity-rules
microsoft/pylance-release#52

@albas99 albas99 changed the title Import "requests" could not be resolved Pylance. Import "requests" could not be resolved Pylance: reportMissingModuleSource. Jun 15, 2022
@albas99 albas99 moved this from Needs Research to (Potential)Bugs in Twttr-Notion Bkmrks Jun 15, 2022
@albas99
Copy link
Owner Author

albas99 commented Jun 16, 2022

Solution:
I was using the wrong python interpreter, once I changed that it solved the issue.

@albas99 albas99 closed this as completed Jun 16, 2022
Repository owner moved this from (Potential)Bugs to Done in Twttr-Notion Bkmrks Jun 16, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Development

No branches or pull requests

1 participant