René's URL Explorer Experiment


Title: Python unresolved import issue · Issue #1137 · microsoft/python-language-server · GitHub

Open Graph Title: Python unresolved import issue · Issue #1137 · microsoft/python-language-server

X Title: Python unresolved import issue · Issue #1137 · microsoft/python-language-server

Description: Tomasz Chudzik (@chudytom) commented on Sun May 26 2019 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 i...

Open Graph Description: Tomasz Chudzik (@chudytom) commented on Sun May 26 2019 Environment data VS Code version: 1.34.0 Extension version (available under the Extensions sidebar): 2019.4.12954 OS and version: Windows 10 ...

X Description: Tomasz Chudzik (@chudytom) commented on Sun May 26 2019 Environment data VS Code version: 1.34.0 Extension version (available under the Extensions sidebar): 2019.4.12954 OS and version: Windows 10 ...

Opengraph URL: https://github.com/microsoft/python-language-server/issues/1137

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":"@chudytom commented on [Sun May 26 2019](https://github.com/microsoft/vscode-python/issues/5786)\n\n\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\n\n","author":{"url":"https://github.com/DonJayamanne","@type":"Person","name":"DonJayamanne"},"datePublished":"2019-05-28T17:50:16Z","url":"https://github.com/microsoft/python-language-server/issues/1137"}

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:6f741f63-ed38-37c2-9efe-2b8a35c83acf
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idAE24:2826BD:56EAF2:71B3A7:6AFE686D
html-safe-noncebbd357ef9f7112e6123bbd5f27e6da27f87f7d74e328d23b4b95dd829921c924
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBRTI0OjI4MjZCRDo1NkVBRjI6NzFCM0E3OjZBRkU2ODZEIiwidmlzaXRvcl9pZCI6IjM2NDI3ODYzNzUxNDIzNjkzODkiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac0237fe41d80fc59c3f896b2674d8c07540fb94e45df0a3db0eb31a95d8de8ba8
hovercard-subject-tagissue:449398760
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/python-language-server/1137/issue_layout
twitter:imagehttps://opengraph.githubassets.com/6381b79f6ad7b56098a39cde83e6308be651de90fd2f43755f7f1835905f6180/microsoft/python-language-server/issues/1137
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/6381b79f6ad7b56098a39cde83e6308be651de90fd2f43755f7f1835905f6180/microsoft/python-language-server/issues/1137
og:image:altTomasz Chudzik (@chudytom) commented on Sun May 26 2019 Environment data VS Code version: 1.34.0 Extension version (available under the Extensions sidebar): 2019.4.12954 OS and version: Windows 10 ...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameDonJayamanne
hostnamegithub.com
expected-hostnamegithub.com
Noneb3c0f155eafc27e60db6e254d1ffff0e072e9ab3b4018a5ee518797c19d89f86
turbo-cache-controlno-preview
go-importgithub.com/microsoft/python-language-server git https://github.com/microsoft/python-language-server.git
octolytics-dimension-user_id6154722
octolytics-dimension-user_loginmicrosoft
octolytics-dimension-repository_id145901977
octolytics-dimension-repository_nwomicrosoft/python-language-server
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id145901977
octolytics-dimension-repository_network_root_nwomicrosoft/python-language-server
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/python-language-server/issues/1137#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fmicrosoft%2Fpython-language-server%2Fissues%2F1137
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%2Fpython-language-server%2Fissues%2F1137
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%2Fpython-language-server
Reloadhttps://github.com/microsoft/python-language-server/issues/1137
Reloadhttps://github.com/microsoft/python-language-server/issues/1137
Reloadhttps://github.com/microsoft/python-language-server/issues/1137
microsofthttps://github.com/microsoft
python-language-serverhttps://github.com/microsoft/python-language-server
Codehttps://github.com/microsoft/python-language-server
Issues309 (309)https://github.com/microsoft/python-language-server/issues
Pull requests6 (6)https://github.com/microsoft/python-language-server/pulls
Projectshttps://github.com/microsoft/python-language-server/projects
Wikihttps://github.com/microsoft/python-language-server/wiki
Security and qualityhttps://github.com/microsoft/python-language-server/security
Insightshttps://github.com/microsoft/python-language-server/insights
https://github.com/microsoft/python-language-server
#1183https://github.com/microsoft/python-language-server/pull/1183
Python unresolved import issuehttps://github.com/microsoft/python-language-server/issues/1137#top
#1183https://github.com/microsoft/python-language-server/pull/1183
https://github.com/jakebailey
editable-installspip editable installs / setup.py develophttps://github.com/microsoft/python-language-server/issues?q=state%3Aopen%20label%3A%22editable-installs%22
June 2019.1https://github.com/microsoft/python-language-server/milestone/19
https://github.com/DonJayamanne
Don Jayamanne (DonJayamanne)https://github.com/DonJayamanne
on May 28, 2019https://github.com/microsoft/python-language-server/issues/1137#issue-449398760
Tomasz Chudzik (@chudytom)https://github.com/chudytom
Sun May 26 2019https://github.com/microsoft/vscode-python/issues/5786
https://user-images.githubusercontent.com/29259905/58382040-661d6c80-7fc5-11e9-99c4-a967f0984131.png
microsoft/vscode-python#3840 (comment)https://github.com/microsoft/vscode-python/issues/3840#issuecomment-463789294
#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
https://github.com/rdrey
Rainer Dreyer (rdrey)https://github.com/rdrey
on May 29, 2019https://github.com/microsoft/python-language-server/issues/1137#issuecomment-496964249
https://github.com/rdrey/langservtesthttps://github.com/rdrey/langservtest
https://github.com/chudytom
Tomasz Chudzik (chudytom)https://github.com/chudytom
on May 29, 2019https://github.com/microsoft/python-language-server/issues/1137#issuecomment-497011739
https://github.com/chudytom/LangServerErrorhttps://github.com/chudytom/LangServerError
https://github.com/jakebailey
Jake Bailey (jakebailey)https://github.com/jakebailey
on May 29, 2019https://github.com/microsoft/python-language-server/issues/1137#issuecomment-497013214
https://github.com/chudytom
Tomasz Chudzik (chudytom)https://github.com/chudytom
on May 29, 2019https://github.com/microsoft/python-language-server/issues/1137#issuecomment-497021483
Jake Bailey (jakebailey)https://github.com/jakebailey
editable-installspip editable installs / setup.py develophttps://github.com/microsoft/python-language-server/issues?q=state%3Aopen%20label%3A%22editable-installs%22
on May 29, 2019https://github.com/microsoft/python-language-server/issues/1137#event-2375804644
https://github.com/rdrey
Rainer Dreyer (rdrey)https://github.com/rdrey
on May 30, 2019https://github.com/microsoft/python-language-server/issues/1137#issuecomment-497245829
https://github.com/jakebailey
Jake Bailey (jakebailey)https://github.com/jakebailey
on Jun 7, 2019https://github.com/microsoft/python-language-server/issues/1137#issuecomment-499984427
Rainer Dreyer (@rdrey)https://github.com/rdrey
https://user-images.githubusercontent.com/5341706/59124294-2c792980-8914-11e9-9927-aa1f1a0535e9.png
Tomasz Chudzik (@chudytom)https://github.com/chudytom
https://user-images.githubusercontent.com/5341706/59124360-487ccb00-8914-11e9-84d6-a0fa1a78a4f4.png
Jake Bailey (jakebailey)https://github.com/jakebailey
completedhttps://github.com/microsoft/python-language-server/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
#1183https://github.com/microsoft/python-language-server/pull/1183
on Jun 7, 2019https://github.com/microsoft/python-language-server/issues/1137#event-2398603991
https://github.com/jakebailey
Jake Bailey (jakebailey)https://github.com/jakebailey
on Jun 7, 2019https://github.com/microsoft/python-language-server/issues/1137#issuecomment-500069622
https://github.com/microsoft/python-language-server/blob/master/TROUBLESHOOTING.md#unresolved-import-warningshttps://github.com/microsoft/python-language-server/blob/master/TROUBLESHOOTING.md#unresolved-import-warnings
#1183https://github.com/microsoft/python-language-server/pull/1183
Jake Bailey (jakebailey)https://github.com/jakebailey
on Jun 7, 2019https://github.com/microsoft/python-language-server/issues/1137#event-2398620592
Jake Bailey (jakebailey)https://github.com/jakebailey
June 2019.1https://github.com/microsoft/python-language-server/milestone/19
on Jun 7, 2019https://github.com/microsoft/python-language-server/issues/1137#event-2398620610
https://github.com/chudytom
Tomasz Chudzik (chudytom)https://github.com/chudytom
on Jun 10, 2019https://github.com/microsoft/python-language-server/issues/1137#issuecomment-500592930
https://github.com/chudytom/LangServerErrorhttps://github.com/chudytom/LangServerError
#1183https://github.com/microsoft/python-language-server/pull/1183
microsoft/vscode-python#3977https://github.com/microsoft/vscode-python/issues/3977
Sign up for freehttps://github.com/signup?return_to=https://github.com/microsoft/python-language-server/issues/1137
Sign in to commenthttps://github.com/login?return_to=https://github.com/microsoft/python-language-server/issues/1137
Jake Bailey (jakebailey)https://github.com/jakebailey
editable-installspip editable installs / setup.py develophttps://github.com/microsoft/python-language-server/issues?q=state%3Aopen%20label%3A%22editable-installs%22
June 2019.1https://github.com/microsoft/python-language-server/milestone/19
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.