René's URL Explorer Experiment


Title: pywin32 pth files create nested search paths and prevent imports of modules by some names · Issue #1360 · microsoft/python-language-server · GitHub

Open Graph Title: pywin32 pth files create nested search paths and prevent imports of modules by some names · Issue #1360 · microsoft/python-language-server

X Title: pywin32 pth files create nested search paths and prevent imports of modules by some names · Issue #1360 · microsoft/python-language-server

Description: Install pywin32 from PyPI and then try to do: import win32api Which fails. The language server prints: [Info - 2:29:32 PM] Interpreter search paths: [Info - 2:29:32 PM] c:\python37\dlls [Info - 2:29:32 PM] c:\python37\lib [Info - 2:29:32...

Open Graph Description: Install pywin32 from PyPI and then try to do: import win32api Which fails. The language server prints: [Info - 2:29:32 PM] Interpreter search paths: [Info - 2:29:32 PM] c:\python37\dlls [Info - 2:2...

X Description: Install pywin32 from PyPI and then try to do: import win32api Which fails. The language server prints: [Info - 2:29:32 PM] Interpreter search paths: [Info - 2:29:32 PM] c:\python37\dlls [Info - 2:2...

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

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"pywin32 pth files create nested search paths and prevent imports of modules by some names","articleBody":"Install `pywin32` from PyPI and then try to do:\r\n\r\n```python\r\nimport win32api\r\n```\r\n\r\nWhich fails. The language server prints:\r\n\r\n```\r\n[Info  - 2:29:32 PM] Interpreter search paths:\r\n[Info  - 2:29:32 PM]     c:\\python37\\dlls\r\n[Info  - 2:29:32 PM]     c:\\python37\\lib\r\n[Info  - 2:29:32 PM]     c:\\python37\r\n[Info  - 2:29:32 PM]     c:\\users\\jabaile\\test_projects\\win32thing\\venv\r\n[Info  - 2:29:32 PM]     c:\\users\\jabaile\\test_projects\\win32thing\\venv\\lib\\site-packages\r\n[Info  - 2:29:32 PM]     c:\\users\\jabaile\\test_projects\\win32thing\\venv\\lib\\site-packages\\win32\r\n[Info  - 2:29:32 PM]     c:\\users\\jabaile\\test_projects\\win32thing\\venv\\lib\\site-packages\\win32\\lib\r\n[Info  - 2:29:32 PM]     c:\\users\\jabaile\\test_projects\\win32thing\\venv\\lib\\site-packages\\pythonwin\r\n```\r\n\r\nNote that `win32` is in `site-packages` and `lib` is inside of `win32`.\r\n\r\nThis package ships multiple modules, and uses a `pth` file to add those search paths:\r\n\r\n```\r\n# .pth file for the PyWin32 extensions\r\nwin32\r\nwin32\\lib\r\nPythonwin\r\n```\r\n\r\nThe module `win32api` is located in the `win32` directory. However, due to the ordering of the paths (`site-packages` comes first), we end up in a scenario where only this works:\r\n\r\n```python\r\nimport win32.win32api\r\n# or equivalently to the original example\r\nfrom win32 import win32api\r\n```\r\n\r\nBecause we've already \"carved\" out `site-packages`, and any module below it must be fully specified, even though a later search path allows the module to have a second name.\r\n\r\nThis is a concrete example of similar issues we have with extraPaths on user code, but due to the use of `pth` files here to add search paths, this breaks out into library code.","author":{"url":"https://github.com/jakebailey","@type":"Person","name":"jakebailey"},"datePublished":"2019-07-22T21:43:49Z","url":"https://github.com/microsoft/python-language-server/issues/1360"}

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:5681c7e0-1ee0-18d1-0c72-28e152cb7602
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-id8B00:729DB:17391C:1E39F4:6AFE57E6
html-safe-nonced94fb6e02cd96e45b5bb35c9386f89925d326ccdd15e265b3c32d2769af70648
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4QjAwOjcyOURCOjE3MzkxQzoxRTM5RjQ6NkFGRTU3RTYiLCJ2aXNpdG9yX2lkIjoiNjI2NjgzNzk3MDgwODg4NzI3MCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac7324628fb844c5dee84c979b4f3c81953ec89a6b0f79df652054e5cf054b2025
hovercard-subject-tagissue:471352229
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/1360/issue_layout
twitter:imagehttps://opengraph.githubassets.com/95e0fda4a8b86e9d15b934cb68cb59a9174b6b62cf9bbd8d8721feee86c9c627/microsoft/python-language-server/issues/1360
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/95e0fda4a8b86e9d15b934cb68cb59a9174b6b62cf9bbd8d8721feee86c9c627/microsoft/python-language-server/issues/1360
og:image:altInstall pywin32 from PyPI and then try to do: import win32api Which fails. The language server prints: [Info - 2:29:32 PM] Interpreter search paths: [Info - 2:29:32 PM] c:\python37\dlls [Info - 2:2...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamejakebailey
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/1360#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fmicrosoft%2Fpython-language-server%2Fissues%2F1360
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%2F1360
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/1360
Reloadhttps://github.com/microsoft/python-language-server/issues/1360
Reloadhttps://github.com/microsoft/python-language-server/issues/1360
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
pywin32 pth files create nested search paths and prevent imports of modules by some nameshttps://github.com/microsoft/python-language-server/issues/1360#top
https://github.com/jakebailey
feature: importshttps://github.com/microsoft/python-language-server/issues?q=state%3Aopen%20label%3A%22feature%3A%20imports%22
https://github.com/jakebailey
Jake Bailey (jakebailey)https://github.com/jakebailey
on Jul 22, 2019https://github.com/microsoft/python-language-server/issues/1360#issue-471352229
https://github.com/jakebailey
Jake Bailey (jakebailey)https://github.com/jakebailey
on Jul 22, 2019https://github.com/microsoft/python-language-server/issues/1360#issuecomment-513967537
#1289https://github.com/microsoft/python-language-server/pull/1289
#443https://github.com/microsoft/python-language-server/issues/443
#1060https://github.com/microsoft/python-language-server/issues/1060
Jake Bailey (jakebailey)https://github.com/jakebailey
feature: importshttps://github.com/microsoft/python-language-server/issues?q=state%3Aopen%20label%3A%22feature%3A%20imports%22
on Sep 18, 2019https://github.com/microsoft/python-language-server/issues/1360#event-2644977473
Jude Kavalam (judej)https://github.com/judej
Jake Bailey (jakebailey)https://github.com/jakebailey
on Oct 10, 2019https://github.com/microsoft/python-language-server/issues/1360#event-2704435111
Sign up for freehttps://github.com/signup?return_to=https://github.com/microsoft/python-language-server/issues/1360
Sign in to commenthttps://github.com/login?return_to=https://github.com/microsoft/python-language-server/issues/1360
Jake Bailey (jakebailey)https://github.com/jakebailey
feature: importshttps://github.com/microsoft/python-language-server/issues?q=state%3Aopen%20label%3A%22feature%3A%20imports%22
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.