René's URL Explorer Experiment


Title: Python unresolved import issue · Issue #5786 · microsoft/vscode-python · GitHub

Open Graph Title: Python unresolved import issue · Issue #5786 · microsoft/vscode-python

X Title: Python unresolved import issue · Issue #5786 · microsoft/vscode-python

Description: Environment data VS Code version: 1.34.0 Extension version (available under the Extensions sidebar): 2019.4.12954 OS and version: Windows 10 v. 1809 Python version (& distribution if applicable, e.g. Anaconda): 3.5.2 64-bit without Conda...

Open Graph Description: Environment data VS Code version: 1.34.0 Extension version (available under the Extensions sidebar): 2019.4.12954 OS and version: Windows 10 v. 1809 Python version (& distribution if applicable, e....

X Description: Environment data VS Code version: 1.34.0 Extension version (available under the Extensions sidebar): 2019.4.12954 OS and version: Windows 10 v. 1809 Python version (& distribution if applicable...

Opengraph URL: https://github.com/microsoft/vscode-python/issues/5786

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Python unresolved import issue","articleBody":"\u003c!-- \r\nDo you have a question instead of a bug report or enhancement request? Please ask it on https://stackoverflow.com/questions/tagged/visual-studio-code+python. \r\n\r\nUnable to install a linter or formatter? 'No installers available'? \r\nWindows - https://stackoverflow.com/questions/4750806/how-do-i-install-pip-on-windows\r\nLinux - https://www.cyberciti.biz/faq/debian-ubuntu-centos-rhel-linux-install-pipclient/ , https://www.tecmint.com/install-pip-in-linux/\r\n\r\nPython configuration issues? Please check https://code.visualstudio.com/docs/python/python-tutorial#_prerequisites\r\n\r\nOtherwise **please** fill in the requested details below. \"XXX\" markers should not be present in the final bug report.\r\n\r\nIf you think a GIF of what is happening would be helpful, consider tools like https://www.cockos.com/licecap/, https://github.com/phw/peek or https://www.screentogif.com/ .\r\n-->\r\n\r\n## Environment data\r\n\r\n- VS Code version: 1.34.0\r\n- Extension version (available under the Extensions sidebar): 2019.4.12954\r\n- OS and version: Windows 10 v. 1809\r\n- Python version (& distribution if applicable, e.g. Anaconda): 3.5.2 64-bit without Conda\r\n- Type of virtual environment used (N/A | venv | virtualenv | conda | ...): I guess I have no venv set up.  \r\n- Relevant/affected Python packages and their versions: Microsoft Python Language Server v. 0.2.86\r\n\r\n## Actual behaviour\r\n\r\nI open VSCode in a root folder where all my code exists. Part of it looks like this:\r\n\r\n* workspaceRootFolder\r\n  * .vscode\r\n  * network\r\n    * section_network_input.py\r\n  * timepredictionslib\r\n    * build\r\n    * dist\r\n    * timepredictionslib\r\n      * Here in subfolders are all my classes in the module\r\n  * .env\r\n\r\nIn the 'network' folder I have some script that I run straight from PowerShell whereas in 'timepredictionslib' I have my custom module where I store all reuasuable classes.\r\n\r\n All code runs smooth when run by the Python interpreter, however when I disabled Jedi and switched to Microsoft Python Language Server I get the 'unresolved import' error\r\n![image](https://user-images.githubusercontent.com/29259905/58382040-661d6c80-7fc5-11e9-99c4-a967f0984131.png)\r\n\r\nI already added the '.env' file with the following content:  \r\nPYTHONPATH=timepredictionslib\r\n\r\nand added the file as python.envFile as was advised here: \r\nhttps://github.com/Microsoft/vscode-python/issues/3840#issuecomment-463789294\r\n\r\nAlso I added python.autoComplete.extraPaths as was proposed here: \r\nhttps://github.com/microsoft/python-language-server/issues/1099\r\n\r\nBut none of these helped. Do you guys have any idea what else I need to do for the Lanugage Server to discover my library?\r\n\r\nOne more thing. When I tried to update the first import presented in the attached screen it is then discovered by the Language Server and IntelliSense but not by Pylint and the Python interpreter: \r\n![image](https://user-images.githubusercontent.com/29259905/58382006-0fb02e00-7fc5-11e9-9b56-465b8be956e4.png)\r\n\r\n## Steps to reproduce:\r\nIf needed I will create a smaller project with similiar configuration and push it to GutHub.\r\n\r\n## Logs\r\nOutput for `Python` in the `Output` panel\r\n![image](https://user-images.githubusercontent.com/29259905/58381848-0aea7a80-7fc3-11e9-987b-2a3480e8dedb.png)\r\n\r\n## settings.json for Python\r\n![image](https://user-images.githubusercontent.com/29259905/58381930-cdd2b800-7fc3-11e9-9d4d-ec050d64f1f5.png)\r\n","author":{"url":"https://github.com/chudytom","@type":"Person","name":"chudytom"},"datePublished":"2019-05-26T12:50:21Z","url":"https://github.com/microsoft/vscode-python/issues/5786"}

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322
route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:4266ee21-30b8-a91f-7e4d-6053de25766b
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-id95A4:E34D0:BA27F5:FC15BE:6AFE6BFA
html-safe-nonce2e3b8edd6ee322bdc49adeeb29e3a41e037a9247a2ec3065cdce96340596a611
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5NUE0OkUzNEQwOkJBMjdGNTpGQzE1QkU6NkFGRTZCRkEiLCJ2aXNpdG9yX2lkIjoiMjcyOTAzODAwOTk3MzIzODc3OCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmace0e3e0e75ffe69360c5d8481e93c90f87a0e284662fe48e5aa73ff74551b8742
hovercard-subject-tagissue:448563915
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/microsoft/vscode-python/5786/issue_layout
twitter:imagehttps://opengraph.githubassets.com/f52a49a9a3d7e84b4997bb267591f230977cb2f74b8bf234a279f5fcfea92e2e/microsoft/vscode-python/issues/5786
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/f52a49a9a3d7e84b4997bb267591f230977cb2f74b8bf234a279f5fcfea92e2e/microsoft/vscode-python/issues/5786
og:image:altEnvironment data VS Code version: 1.34.0 Extension version (available under the Extensions sidebar): 2019.4.12954 OS and version: Windows 10 v. 1809 Python version (& distribution if applicable, e....
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamechudytom
hostnamegithub.com
expected-hostnamegithub.com
Noneb3c0f155eafc27e60db6e254d1ffff0e072e9ab3b4018a5ee518797c19d89f86
turbo-cache-controlno-preview
go-importgithub.com/microsoft/vscode-python git https://github.com/microsoft/vscode-python.git
octolytics-dimension-user_id6154722
octolytics-dimension-user_loginmicrosoft
octolytics-dimension-repository_id106462765
octolytics-dimension-repository_nwomicrosoft/vscode-python
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forktrue
octolytics-dimension-repository_parent_id49946255
octolytics-dimension-repository_parent_nwoDonJayamanne/pythonVSCode
octolytics-dimension-repository_network_root_id49946255
octolytics-dimension-repository_network_root_nwoDonJayamanne/pythonVSCode
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release4a10310af51a1bfffbedc4fd81cb582acf0cb0ff
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/microsoft/vscode-python/issues/5786#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fmicrosoft%2Fvscode-python%2Fissues%2F5786
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fmicrosoft%2Fvscode-python%2Fissues%2F5786
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=microsoft%2Fvscode-python
Reloadhttps://github.com/microsoft/vscode-python/issues/5786
Reloadhttps://github.com/microsoft/vscode-python/issues/5786
Reloadhttps://github.com/microsoft/vscode-python/issues/5786
microsofthttps://github.com/microsoft
vscode-pythonhttps://github.com/microsoft/vscode-python
Codehttps://github.com/microsoft/vscode-python
Issues344 (344)https://github.com/microsoft/vscode-python/issues
Pull requests54 (54)https://github.com/microsoft/vscode-python/pulls
Discussionshttps://github.com/microsoft/vscode-python/discussions
Actionshttps://github.com/microsoft/vscode-python/actions
Wikihttps://github.com/microsoft/vscode-python/wiki
Security and quality2 (2)https://github.com/microsoft/vscode-python/security
Insightshttps://github.com/microsoft/vscode-python/insights
https://github.com/microsoft/vscode-python
New issuehttps://github.com/login?return_to=https://github.com/microsoft/vscode-python/issues/5786
New issuehttps://github.com/login?return_to=https://github.com/microsoft/vscode-python/issues/5786
Python unresolved import issuehttps://github.com/microsoft/vscode-python/issues/5786#top
https://github.com/chudytom
Tomasz Chudzik (chudytom)https://github.com/chudytom
on May 26, 2019https://github.com/microsoft/vscode-python/issues/5786#issue-448563915
https://user-images.githubusercontent.com/29259905/58382040-661d6c80-7fc5-11e9-99c4-a967f0984131.png
#3840 (comment)https://github.com/microsoft/vscode-python/issues/3840#issuecomment-463789294
microsoft/python-language-server#1099https://github.com/microsoft/python-language-server/issues/1099
https://user-images.githubusercontent.com/29259905/58382006-0fb02e00-7fc5-11e9-9b56-465b8be956e4.png
https://user-images.githubusercontent.com/29259905/58381848-0aea7a80-7fc3-11e9-987b-2a3480e8dedb.png
https://user-images.githubusercontent.com/29259905/58381930-cdd2b800-7fc3-11e9-9d4d-ec050d64f1f5.png
triage-neededNeeds assignment to the proper sub-teamhttps://github.com/microsoft/vscode-python/issues?q=state%3Aopen%20label%3A%22triage-needed%22
on May 26, 2019https://github.com/microsoft/vscode-python/issues/5786#event-2367800051
Don Jayamanne (DonJayamanne)https://github.com/DonJayamanne
completedhttps://github.com/microsoft/vscode-python/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
on May 28, 2019https://github.com/microsoft/vscode-python/issues/5786#event-2372635140
https://github.com/DonJayamanne
Don Jayamanne (DonJayamanne)https://github.com/DonJayamanne
on May 28, 2019https://github.com/microsoft/vscode-python/issues/5786#issuecomment-496620555
microsoft/python-language-server #1137https://github.com/microsoft/python-language-server/issues/1137
ZenHubhttps://www.zenhub.com/
triage-neededNeeds assignment to the proper sub-teamhttps://github.com/microsoft/vscode-python/issues?q=state%3Aopen%20label%3A%22triage-needed%22
on May 28, 2019https://github.com/microsoft/vscode-python/issues/5786#event-2372635238
lockhttps://github.com/apps/lock
on Jun 4, 2019https://github.com/microsoft/vscode-python/issues/5786#event-2389083962
Sign up for freehttps://github.com/signup?return_to=https://github.com/microsoft/vscode-python/issues/5786
Sign in to commenthttps://github.com/login?return_to=https://github.com/microsoft/vscode-python/issues/5786
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.