René's URL Explorer Experiment


Title: BUG: [py3.11] AttributeError: 'PathDistribution' object has no attribute '_normalized_name' · Issue #98706 · python/cpython · GitHub

Open Graph Title: BUG: [py3.11] AttributeError: 'PathDistribution' object has no attribute '_normalized_name' · Issue #98706 · python/cpython

X Title: BUG: [py3.11] AttributeError: 'PathDistribution' object has no attribute '_normalized_name' · Issue #98706 · python/cpython

Description: This shows up while trying to run the numpy test suite with python 3.11 and the newest pytest etc. ==================================== ERRORS ==================================== ________________________ ERROR collecting test session __...

Open Graph Description: This shows up while trying to run the numpy test suite with python 3.11 and the newest pytest etc. ==================================== ERRORS ==================================== _________________...

X Description: This shows up while trying to run the numpy test suite with python 3.11 and the newest pytest etc. ==================================== ERRORS ==================================== _________________...

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

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"BUG: [py3.11] AttributeError: 'PathDistribution' object has no attribute '_normalized_name'","articleBody":"This shows up while [trying](https://github.com/conda-forge/numpy-feedstock/pull/283) to run the numpy test suite with python 3.11 and the newest pytest etc.\r\n\r\n```\r\n==================================== ERRORS ====================================\r\n________________________ ERROR collecting test session _________________________\r\n\r\n[...]\r\n\r\n=========================== short test summary info ============================\r\nERROR  - AttributeError: 'PathDistribution' object has no attribute '_normalized_name'\r\nERROR  - AttributeError: 'PathDistribution' object has no attribute '_normalized_name'\r\n2 errors in 1.41s\r\n```\r\n\r\nMore precisely, the error appears in the vendored import_lib module\r\n```\r\n[...]/lib/python3.11/importlib/metadata/__init__.py:472: in load\r\n    ordered = sorted(eps, key=by_group)\r\n        by_group   = operator.attrgetter('group')\r\n        cls        = \u003cclass 'importlib.metadata.SelectableGroups'\u003e\r\n        eps        = \u003citertools.chain object at 0x7f19804ea5f0\u003e\r\n[...]/lib/python3.11/importlib/metadata/__init__.py:1013: in \u003cgenexpr\u003e\r\n    eps = itertools.chain.from_iterable(\r\n        .0         = \u003cgenerator object unique_everseen at 0x7f19805e9d40\u003e\r\n[...]/lib/python3.11/importlib/metadata/_itertools.py:16: in unique_everseen\r\n    k = key(element)\r\nE   AttributeError: 'PathDistribution' object has no attribute '_normalized_name'\r\n        element    = \u003cimportlib_metadata.PathDistribution object at 0x7f19802c0450\u003e\r\n        iterable   = \u003citertools.chain object at 0x7f19804eae00\u003e\r\n        key        = operator.attrgetter('_normalized_name')\r\n        seen       = set()\r\n        seen_add   = \u003cbuilt-in method add of set object at 0x7f198035b060\u003e\r\n```\r\n\r\nTurns out this is https://github.com/python/importlib_metadata/issues/396 (fixed in 4.13.0), where @jaraco noted: \r\n\u003e Perhaps importlib_metadata should provide a compatibility shim to honor name normalization in distributions not supplying it (or at least not crash).\r\n\r\nUnfortunately, the vendored version present in python 3.11 is [only](https://github.com/python/cpython/blob/3.11/Lib/importlib/metadata/__init__.py) at 4.11.3, hence does not carry the fix.","author":{"url":"https://github.com/h-vetinari","@type":"Person","name":"h-vetinari"},"datePublished":"2022-10-26T08:50:48.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":4},"url":"https://github.com/98706/cpython/issues/98706"}

route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:8022bad4-c09f-c56e-bb53-7cb8396e52e1
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-id996C:11D50D:BC474F:FB5AC1:696996F4
html-safe-nonce54b4b31d2a802e4ce9c3247495b9dd2720d1b0f3ef7c992047ac2935a5ddfe25
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5OTZDOjExRDUwRDpCQzQ3NEY6RkI1QUMxOjY5Njk5NkY0IiwidmlzaXRvcl9pZCI6IjgzNjA4ODA3NzUyMzczMTAxOTYiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac08984cf65d766592df307b6d07b07f1409b650ab1a43aeca24094a271d2319f9
hovercard-subject-tagissue:1423663988
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/98706/issue_layout
twitter:imagehttps://opengraph.githubassets.com/2cfaf9d9a31d443ec3ab50d65b3f3675d47142ccd55b3ae1b1253608137b6c3a/python/cpython/issues/98706
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/2cfaf9d9a31d443ec3ab50d65b3f3675d47142ccd55b3ae1b1253608137b6c3a/python/cpython/issues/98706
og:image:altThis shows up while trying to run the numpy test suite with python 3.11 and the newest pytest etc. ==================================== ERRORS ==================================== _________________...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameh-vetinari
hostnamegithub.com
expected-hostnamegithub.com
None3542e147982176a7ebaa23dfb559c8af16f721c03ec560c68c56b64a0f35e751
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
releaseaf80af7cc9e3de9c336f18b208a600950a3c187c
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/python/cpython/issues/98706#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fissues%2F98706
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub SparkBuild and deploy intelligent appshttps://github.com/features/spark
GitHub ModelsManage and compare promptshttps://github.com/features/models
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
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
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
GitHub SponsorsFund open source developershttps://github.com/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/accelerator
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://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/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fissues%2F98706
Sign up https://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/98706
Reloadhttps://github.com/python/cpython/issues/98706
Reloadhttps://github.com/python/cpython/issues/98706
python https://github.com/python
cpythonhttps://github.com/python/cpython
Please reload this pagehttps://github.com/python/cpython/issues/98706
Notifications https://github.com/login?return_to=%2Fpython%2Fcpython
Fork 33.9k https://github.com/login?return_to=%2Fpython%2Fcpython
Star 71.1k https://github.com/login?return_to=%2Fpython%2Fcpython
Code https://github.com/python/cpython
Issues 5k+ https://github.com/python/cpython/issues
Pull requests 2.1k https://github.com/python/cpython/pulls
Actions https://github.com/python/cpython/actions
Projects 31 https://github.com/python/cpython/projects
Security Uh oh! There was an error while loading. Please reload this page. https://github.com/python/cpython/security
Please reload this pagehttps://github.com/python/cpython/issues/98706
Insights https://github.com/python/cpython/pulse
Code https://github.com/python/cpython
Issues https://github.com/python/cpython/issues
Pull requests https://github.com/python/cpython/pulls
Actions https://github.com/python/cpython/actions
Projects https://github.com/python/cpython/projects
Security https://github.com/python/cpython/security
Insights https://github.com/python/cpython/pulse
New issuehttps://github.com/login?return_to=https://github.com/python/cpython/issues/98706
New issuehttps://github.com/login?return_to=https://github.com/python/cpython/issues/98706
BUG: [py3.11] AttributeError: 'PathDistribution' object has no attribute '_normalized_name'https://github.com/python/cpython/issues/98706#top
https://github.com/jaraco
topic-importlibhttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22topic-importlib%22
type-bugAn unexpected behavior, bug, or errorhttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22type-bug%22
https://github.com/h-vetinari
https://github.com/h-vetinari
h-vetinarihttps://github.com/h-vetinari
on Oct 26, 2022https://github.com/python/cpython/issues/98706#issue-1423663988
tryinghttps://github.com/conda-forge/numpy-feedstock/pull/283
python/importlib_metadata#396https://github.com/python/importlib_metadata/issues/396
@jaracohttps://github.com/jaraco
onlyhttps://github.com/python/cpython/blob/3.11/Lib/importlib/metadata/__init__.py
jaracohttps://github.com/jaraco
topic-importlibhttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22topic-importlib%22
type-bugAn unexpected behavior, bug, or errorhttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22type-bug%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.