René's URL Explorer Experiment


Title: Add `import` suggestions for `ModuleNotFoundError` · Issue #134872 · python/cpython · GitHub

Open Graph Title: Add `import` suggestions for `ModuleNotFoundError` · Issue #134872 · python/cpython

X Title: Add `import` suggestions for `ModuleNotFoundError` · Issue #134872 · python/cpython

Description: Feature or enhancement Proposal: #134175 It is a suggest for the top module. But we can use it in this issue. In the feature in this issue, the child module will raise like this. >>>import multprocessing.dummy.connection #wrong in top mo...

Open Graph Description: Feature or enhancement Proposal: #134175 It is a suggest for the top module. But we can use it in this issue. In the feature in this issue, the child module will raise like this. >>>import multproc...

X Description: Feature or enhancement Proposal: #134175 It is a suggest for the top module. But we can use it in this issue. In the feature in this issue, the child module will raise like this. >>>import...

Opengraph URL: https://github.com/python/cpython/issues/134872

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Add `import` suggestions for `ModuleNotFoundError`","articleBody":"# Feature or enhancement\n\n### Proposal:\n\n#134175 It is a suggest for the top module. But we can use it in this issue.\n\nIn the feature in this issue, the child module will raise like this.\n\n```python\n>>>import multprocessing.dummy.connection #wrong in top module\nTraceback(most recent call last):\n    File \"\u003cpython-input-0>\" line 1, in \u003cmodule>\n        import multprocessing.dummy.connection #wrong in top module\n               ^^^^^^^^^^^^^^\nModuleNotFoundError: no module named 'multprocessing'. Did you mean 'multiprocessing'?\n>>>import multiprocessing.dumy.connection #wrong in first child module\nTraceback(most recent call last):\n    File \"\u003cpython-input-1>\" line 1, in \u003cmodule>\n        import multiprocessing.dumy.connection #wrong in first child module\n               ~~~~~~~~~~~~~~~~^^^^\nModuleNotFoundError: module 'multiprocessing' has no child module 'dumy'. Did you mean 'dummy'?\n>>>import multiprocessing.dummy.connections #wrong in second child module\nTraceback(most recent call last):\n    File \"\u003cpython-input-2>\" line 1, in \u003cmodule>\n        import multiprocessing.dummy.connections #wrong in second child module\n               ~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^\nModuleNotFoundError: module 'multiprocessing.dummy' has no child module 'connections'. Did you mean 'connection'?\n```\nThe user can see clearly which module is wrong first in import.\n\n\n### Has this already been discussed elsewhere?\n\nNo response given\n\n### Links to previous discussion of this feature:\n\n_No response_\n\n\u003c!-- gh-linked-prs -->\n### Linked PRs\n* gh-142512\n\u003c!-- /gh-linked-prs -->\n","author":{"url":"https://github.com/Locked-chess-official","@type":"Person","name":"Locked-chess-official"},"datePublished":"2025-05-29T01:23:44Z","url":"https://github.com/python/cpython/issues/134872"}

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:7331efd8-e9fd-7c25-be97-5683efe74c41
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idCBAC:136CDA:1757F56:1EE60DC:6B020967
html-safe-nonceaadd0be85e7ef07addd8e23df36dcbbdbd12c6582e43d33fd3c5b4c25cdc3004
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDQkFDOjEzNkNEQToxNzU3RjU2OjFFRTYwREM6NkIwMjA5NjciLCJ2aXNpdG9yX2lkIjoiMjE5OTc1NTMwMDE2MzE2MDQyMyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac75858af28fff8edfa77d2c6ff3d8021a6b0c0184c5287a72e6994d93eea56e5b
hovercard-subject-tagissue:3098902918
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/python/cpython/134872/issue_layout
twitter:imagehttps://opengraph.githubassets.com/a23d95365accc8845d845f202a11184e324f38e98a03e6b452e9acfb7326ea0b/python/cpython/issues/134872
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/a23d95365accc8845d845f202a11184e324f38e98a03e6b452e9acfb7326ea0b/python/cpython/issues/134872
og:image:altFeature or enhancement Proposal: #134175 It is a suggest for the top module. But we can use it in this issue. In the feature in this issue, the child module will raise like this. >>>import multproc...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameLocked-chess-official
hostnamegithub.com
expected-hostnamegithub.com
None87e774ee7c6b3bee0490394e4d3e57ec9dbc956f74b87ea685dc8996c1676456
turbo-cache-controlno-preview
go-importgithub.com/python/cpython git https://github.com/python/cpython.git
octolytics-dimension-user_id1525981
octolytics-dimension-user_loginpython
octolytics-dimension-repository_id81598961
octolytics-dimension-repository_nwopython/cpython
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id81598961
octolytics-dimension-repository_network_root_nwopython/cpython
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
release423dbb54c5e7bfecc838eb387c1435eb3d0e760d
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/python/cpython/issues/134872#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fissues%2F134872
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%2Fpython%2Fcpython%2Fissues%2F134872
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=python%2Fcpython
Reloadhttps://github.com/python/cpython/issues/134872
Reloadhttps://github.com/python/cpython/issues/134872
Reloadhttps://github.com/python/cpython/issues/134872
pythonhttps://github.com/python
cpythonhttps://github.com/python/cpython
Codehttps://github.com/python/cpython
Issues5k+ (5k+)https://github.com/python/cpython/issues
Pull requests2.4k (2.4k)https://github.com/python/cpython/pulls
Actionshttps://github.com/python/cpython/actions
Projectshttps://github.com/python/cpython/projects
Security and qualityhttps://github.com/python/cpython/security
Insightshttps://github.com/python/cpython/insights
https://github.com/python/cpython
New issuehttps://github.com/login?return_to=https://github.com/python/cpython/issues/134872
New issuehttps://github.com/login?return_to=https://github.com/python/cpython/issues/134872
Add import suggestions for ModuleNotFoundErrorhttps://github.com/python/cpython/issues/134872#top
interpreter-core(Objects, Python, Grammar, and Parser dirs)https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22interpreter-core%22
type-featureA feature request or enhancementhttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22type-feature%22
https://github.com/Locked-chess-official
Locked-chess-officialhttps://github.com/Locked-chess-official
on May 29, 2025https://github.com/python/cpython/issues/134872#issue-3098902918
#134175https://github.com/python/cpython/issues/134175
GH-134872: add ModuleNotFoundError suggestions #142512https://github.com/python/cpython/pull/142512
Locked-chess-officialhttps://github.com/Locked-chess-official
type-featureA feature request or enhancementhttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22type-feature%22
on May 29, 2025https://github.com/python/cpython/issues/134872#event-17860204932
picnixzhttps://github.com/picnixz
interpreter-core(Objects, Python, Grammar, and Parser dirs)https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22interpreter-core%22
on Aug 9, 2025https://github.com/python/cpython/issues/134872#event-19067061087
https://github.com/picnixz
picnixzhttps://github.com/picnixz
on Aug 9, 2025https://github.com/python/cpython/issues/134872#issuecomment-3170583950
picnixzhttps://github.com/picnixz
not plannedhttps://github.com/python/cpython/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Anot-planned
on Aug 9, 2025https://github.com/python/cpython/issues/134872#event-19067073058
https://github.com/Locked-chess-official
Locked-chess-officialhttps://github.com/Locked-chess-official
on Aug 9, 2025https://github.com/python/cpython/issues/134872#issuecomment-3170644036
…https://github.com/python/cpython/issues/134872
#134872https://github.com/python/cpython/issues/134872
python/cpython#134872https://github.com/python/cpython/issues/134872
https://github.com/picnixz
picnixzhttps://github.com/picnixz
on Aug 9, 2025https://github.com/python/cpython/issues/134872#issuecomment-3170653694
https://github.com/Locked-chess-official
Locked-chess-officialhttps://github.com/Locked-chess-official
on Aug 9, 2025https://github.com/python/cpython/issues/134872#issuecomment-3170703133
https://github.com/Locked-chess-official
Locked-chess-officialhttps://github.com/Locked-chess-official
on Aug 9, 2025https://github.com/python/cpython/issues/134872#issuecomment-3170704495
https://github.com/Locked-chess-official
Locked-chess-officialhttps://github.com/Locked-chess-official
on Aug 9, 2025https://github.com/python/cpython/issues/134872#issuecomment-3170709855
https://github.com/picnixz
picnixzhttps://github.com/picnixz
on Aug 9, 2025https://github.com/python/cpython/issues/134872#issuecomment-3170713342
https://github.com/Locked-chess-official
Locked-chess-officialhttps://github.com/Locked-chess-official
on Aug 9, 2025https://github.com/python/cpython/issues/134872#issuecomment-3171005078
https://github.com/Locked-chess-official
Locked-chess-officialhttps://github.com/Locked-chess-official
on Sep 9, 2025https://github.com/python/cpython/issues/134872#issuecomment-3270188927
herehttps://github.com/Locked-chess-official/cpython/tree/clear_module_not_found_error_message
friendly_module_not_found_errorhttps://pypi.org/project/friendly-module-not-found-error/
FFY00https://github.com/FFY00
on Oct 10, 2025https://github.com/python/cpython/issues/134872#event-20207111232
pythongh-134872: Add traceback suggestions for ModuleNotFoundErrorhttps://github.com/FFY00/cpython/commit/80167513fd944afe53ee7e4f8ce6fa068800ef9a
pythongh-134872https://github.com/python/cpython/issues/134872
8016751https://github.com/FFY00/cpython/commit/80167513fd944afe53ee7e4f8ce6fa068800ef9a
pythongh-134872: Add traceback suggestions for ModuleNotFoundErrorhttps://github.com/FFY00/cpython/commit/9acd19c01b2433b63a6fb92e6921b244e73a37be
pythongh-134872https://github.com/python/cpython/issues/134872
9acd19chttps://github.com/FFY00/cpython/commit/9acd19c01b2433b63a6fb92e6921b244e73a37be
https://github.com/FFY00
FFY00https://github.com/FFY00
on Oct 10, 2025https://github.com/python/cpython/issues/134872#issuecomment-3390019160
GH-139899https://github.com/python/cpython/issues/139899
Here'shttps://github.com/FFY00/cpython/tree/ModuleNotFoundError-suggestions
GH-139900https://github.com/python/cpython/pull/139900
FFY00https://github.com/FFY00
on Oct 10, 2025https://github.com/python/cpython/issues/134872#event-20207304244
picnixzhttps://github.com/picnixz
on Oct 10, 2025https://github.com/python/cpython/issues/134872#event-20209267133
picnixzhttps://github.com/picnixz
on Oct 10, 2025https://github.com/python/cpython/issues/134872#event-20209279818
Introduce MetaPathFinder.discover and PathEntryFinder.discover #139899https://github.com/python/cpython/issues/139899
FFY00https://github.com/FFY00
on Dec 10, 2025https://github.com/python/cpython/issues/134872#event-21478238951
pythongh-134872: Add traceback suggestions for ModuleNotFoundErrorhttps://github.com/FFY00/cpython/commit/3ef83d6b7c0a3829e1632fc2a2ca9ae6ef2f7fe0
pythongh-134872https://github.com/python/cpython/issues/134872
3ef83d6https://github.com/FFY00/cpython/commit/3ef83d6b7c0a3829e1632fc2a2ca9ae6ef2f7fe0
pythongh-134872: Add traceback suggestions for ModuleNotFoundErrorhttps://github.com/FFY00/cpython/commit/889c7ce70aadb0965e920459fe5cec851d6eb173
pythongh-134872https://github.com/python/cpython/issues/134872
889c7cehttps://github.com/FFY00/cpython/commit/889c7ce70aadb0965e920459fe5cec851d6eb173
FFY00https://github.com/FFY00
on Feb 19, 2026https://github.com/python/cpython/issues/134872#event-22919702517
pythongh-134872: Add traceback suggestions for ModuleNotFoundErrorhttps://github.com/FFY00/cpython/commit/c98677fc8ad2f22bd094b5b2be2cb7f42b23e3b8
pythongh-134872https://github.com/python/cpython/issues/134872
c98677fhttps://github.com/FFY00/cpython/commit/c98677fc8ad2f22bd094b5b2be2cb7f42b23e3b8
pythongh-134872: Add traceback suggestions for ModuleNotFoundErrorhttps://github.com/FFY00/cpython/commit/c739aa6d94bb2a894d9b57e012a70467f5d9d845
pythongh-134872https://github.com/python/cpython/issues/134872
c739aa6https://github.com/FFY00/cpython/commit/c739aa6d94bb2a894d9b57e012a70467f5d9d845
GH-134872: add ModuleNotFoundError suggestions (#142512)https://github.com/python/cpython/commit/f282f7aed91a872078ea88df3d22a780bbd7bee0
GH-134872https://github.com/python/cpython/issues/134872
#142512https://github.com/python/cpython/pull/142512
f282f7ahttps://github.com/python/cpython/commit/f282f7aed91a872078ea88df3d22a780bbd7bee0
https://github.com/FFY00
FFY00https://github.com/FFY00
on Feb 19, 2026https://github.com/python/cpython/issues/134872#issuecomment-3928800397
GH-142512https://github.com/python/cpython/pull/142512
FFY00https://github.com/FFY00
completedhttps://github.com/python/cpython/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
on Feb 19, 2026https://github.com/python/cpython/issues/134872#event-22923509749
brijkapadiahttps://github.com/brijkapadia
on Feb 28, 2026https://github.com/python/cpython/issues/134872#event-23156608594
pythonGH-134872: add ModuleNotFoundError suggestions (python#142512)https://github.com/brijkapadia/cpython/commit/863dbc22e98a613a7365a1dc0d1282889c1d2a5a
pythonGH-134872https://github.com/python/cpython/issues/134872
python#142512https://github.com/python/cpython/pull/142512
863dbc2https://github.com/brijkapadia/cpython/commit/863dbc22e98a613a7365a1dc0d1282889c1d2a5a
ljfphttps://github.com/ljfp
on Apr 25, 2026https://github.com/python/cpython/issues/134872#event-24868317557
pythonGH-134872: add ModuleNotFoundError suggestions (python#142512)https://github.com/ljfp/cpython/commit/634cdd7cc55fffcc7396454b59494594b96814de
pythonGH-134872https://github.com/python/cpython/issues/134872
python#142512https://github.com/python/cpython/pull/142512
634cdd7https://github.com/ljfp/cpython/commit/634cdd7cc55fffcc7396454b59494594b96814de
Sign up for freehttps://github.com/signup?return_to=https://github.com/python/cpython/issues/134872
Sign in to commenthttps://github.com/login?return_to=https://github.com/python/cpython/issues/134872
interpreter-core(Objects, Python, Grammar, and Parser dirs)https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22interpreter-core%22
type-featureA feature request or enhancementhttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22type-feature%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.