albas99 / Twitter-bookmarks-to-Notion

MIT License
0 stars 0 forks source link

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

Closed albas99 closed 2 years ago

albas99 commented 2 years ago

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 https://github.com/microsoft/pylance-release/issues/52

albas99 commented 2 years ago

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