René's URL Explorer Experiment


Title: files(...).joinpath doesn't accept variable number of arguments in Python 3.10+ · Issue #257 · python/importlib_resources · GitHub

Open Graph Title: files(...).joinpath doesn't accept variable number of arguments in Python 3.10+ · Issue #257 · python/importlib_resources

X Title: files(...).joinpath doesn't accept variable number of arguments in Python 3.10+ · Issue #257 · python/importlib_resources

Description: This happens to me when I try to access resources in a native namespace package. Tested on: Windows, Python 3.10.4 Docker in WSL2, image python:3.10-slim, Python 3.10.5 The reason seems to be that importlib_resources.files() returns Mult...

Open Graph Description: This happens to me when I try to access resources in a native namespace package. Tested on: Windows, Python 3.10.4 Docker in WSL2, image python:3.10-slim, Python 3.10.5 The reason seems to be that ...

X Description: This happens to me when I try to access resources in a native namespace package. Tested on: Windows, Python 3.10.4 Docker in WSL2, image python:3.10-slim, Python 3.10.5 The reason seems to be that ...

Opengraph URL: https://github.com/python/importlib_resources/issues/257

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"files(...).joinpath doesn't accept variable number of arguments in Python 3.10+","articleBody":"This happens to me when I try to access resources in a native namespace package.\r\n\r\nTested on:\r\n- Windows, `Python 3.10.4`\r\n- Docker in WSL2, image `python:3.10-slim`, `Python 3.10.5`\r\n\r\n---\r\n\r\nThe reason seems to be that `importlib_resources.files()` returns `MultiplexedPath` from stdlib (`importlib.readers`) rather than from `importlib_resources.readers`.\r\n\r\nTo recreate:\r\n1. Install any namespace package, e.g. `sphinxcontrib-htmlhelp`;\r\n   ```\r\n   pip install sphinxcontrib-htmlhelp\r\n   ```\r\n\r\n1. Use `files` with `joinpath` to get the path of  a resource.\r\n   ```python\r\n   from importlib_resources import files\r\n\r\n   print(root:=files('sphinxcontrib'), 'from', root.__module__)\r\n   print(root.joinpath('htmlhelp', 'templates'))\r\n   ```\r\n\r\nExpected output (which I get with Pythons 3.7-3.9):\r\n```\r\nMultiplexedPath('/usr/local/lib/python3.9/site-packages/sphinxcontrib') from importlib_resources.readers\r\n/usr/local/lib/python3.9/site-packages/sphinxcontrib/htmlhelp/templates\r\n```\r\n\r\nBug with Pythons 3.10:\r\n```\r\nMultiplexedPath('/usr/local/lib/python3.10/site-packages/sphinxcontrib') from importlib.readers\r\nTraceback (most recent call last):\r\n  File \"\u003cstring>\", line 1, in \u003cmodule>\r\nTypeError: MultiplexedPath.joinpath() takes 2 positional arguments but 3 were given\r\n```\r\n\r\nI also tested with the code in #254 but to no aval.","author":{"url":"https://github.com/Jakub-CZ","@type":"Person","name":"Jakub-CZ"},"datePublished":"2022-07-12T15:30:25Z","url":"https://github.com/python/importlib_resources/issues/257"}

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:886ea655-2a4d-61ac-3a67-8d9d8da129ef
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-id9128:2463C6:F13FFD:143DD5B:6B005B4F
html-safe-nonce5e4065e2bba01132d3b15589d36be4037cc04544a232982349b8a72a32117b02
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5MTI4OjI0NjNDNjpGMTNGRkQ6MTQzREQ1Qjo2QjAwNUI0RiIsInZpc2l0b3JfaWQiOiI0MTUzOTA4MDg5NTk2MzgzNTEiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmaca691310bd0382bb85cba9c8ed48adff058f05f66b036db1d6596c38924aa3449
hovercard-subject-tagissue:1302227080
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/importlib_resources/257/issue_layout
twitter:imagehttps://opengraph.githubassets.com/6665d612a0ab761ea76a3ecf0e3c1e1bdd03a7d0fa6d4066b9384750c6ad06a7/python/importlib_resources/issues/257
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/6665d612a0ab761ea76a3ecf0e3c1e1bdd03a7d0fa6d4066b9384750c6ad06a7/python/importlib_resources/issues/257
og:image:altThis happens to me when I try to access resources in a native namespace package. Tested on: Windows, Python 3.10.4 Docker in WSL2, image python:3.10-slim, Python 3.10.5 The reason seems to be that ...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameJakub-CZ
hostnamegithub.com
expected-hostnamegithub.com
None29be975efff6507a5d135de9c7d634cf7ff8f0c55222a64386ab3202209aaf73
turbo-cache-controlno-preview
go-importgithub.com/python/importlib_resources git https://github.com/python/importlib_resources.git
octolytics-dimension-user_id1525981
octolytics-dimension-user_loginpython
octolytics-dimension-repository_id306147182
octolytics-dimension-repository_nwopython/importlib_resources
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id306147182
octolytics-dimension-repository_network_root_nwopython/importlib_resources
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
releaseeacd927ba6112e3b01ba99c762bd699a4a4f5df7
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/python/importlib_resources/issues/257#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fimportlib_resources%2Fissues%2F257
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%2Fimportlib_resources%2Fissues%2F257
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%2Fimportlib_resources
Reloadhttps://github.com/python/importlib_resources/issues/257
Reloadhttps://github.com/python/importlib_resources/issues/257
Reloadhttps://github.com/python/importlib_resources/issues/257
pythonhttps://github.com/python
importlib_resourceshttps://github.com/python/importlib_resources
Codehttps://github.com/python/importlib_resources
Issues5 (5)https://github.com/python/importlib_resources/issues
Pull requests7 (7)https://github.com/python/importlib_resources/pulls
Actionshttps://github.com/python/importlib_resources/actions
Projectshttps://github.com/python/importlib_resources/projects
Security and qualityhttps://github.com/python/importlib_resources/security
Insightshttps://github.com/python/importlib_resources/insights
https://github.com/python/importlib_resources
New issuehttps://github.com/login?return_to=https://github.com/python/importlib_resources/issues/257
New issuehttps://github.com/login?return_to=https://github.com/python/importlib_resources/issues/257
#301https://github.com/python/importlib_resources/pull/301
#268https://github.com/python/importlib_resources/pull/268
files(...).joinpath doesn't accept variable number of arguments in Python 3.10+https://github.com/python/importlib_resources/issues/257#top
#301https://github.com/python/importlib_resources/pull/301
#268https://github.com/python/importlib_resources/pull/268
https://github.com/Jakub-CZ
Jakub-CZhttps://github.com/Jakub-CZ
on Jul 12, 2022https://github.com/python/importlib_resources/issues/257#issue-1302227080
#254https://github.com/python/importlib_resources/pull/254
https://github.com/jaraco
jaracohttps://github.com/jaraco
on Jul 22, 2022https://github.com/python/importlib_resources/issues/257#issuecomment-1192847904
8e1a218https://github.com/python/importlib_resources/commit/8e1a218a0e45ef28eee7e56c1040138f9615326c
pip-runhttps://pypi.org/project/pip-run
MultiplexedPath.joinpath only accepted one parameterhttps://github.com/python/importlib_resources/blob/8e1a218a0e45ef28eee7e56c1040138f9615326c/importlib_resources/readers.py#L84
6440323https://github.com/python/importlib_resources/commit/64403234fdbc3b9df60a57ff1ee76778a03a83b4
https://github.com/jaraco
jaracohttps://github.com/jaraco
on Jul 22, 2022https://github.com/python/importlib_resources/issues/257#issuecomment-1192863274
wraps the spechttps://github.com/python/importlib_resources/blob/31102947fd9babef636d3b82c2a5d58883f9c1f5/importlib_resources/_adapters.py#L165-L170
defers to that implementationhttps://github.com/python/importlib_resources/blob/31102947fd9babef636d3b82c2a5d58883f9c1f5/importlib_resources/_adapters.py#L151-L156
https://github.com/jaraco
jaracohttps://github.com/jaraco
on Jul 22, 2022https://github.com/python/importlib_resources/issues/257#issuecomment-1192865054
@FFY00https://github.com/FFY00
https://github.com/FFY00
FFY00https://github.com/FFY00
on Jul 22, 2022https://github.com/python/importlib_resources/issues/257#issuecomment-1192876867
jaracohttps://github.com/jaraco
on Oct 5, 2022https://github.com/python/importlib_resources/issues/257#event-7528411591
Disable native reader even if it supplies files, because it might not…https://github.com/python/importlib_resources/commit/ed8fa4558a4d2afc0208dfd1262c376c7463c63e
https://docs.github.com/articles/closing-issues-via-commit-messages
ed8fa45https://github.com/python/importlib_resources/commit/ed8fa4558a4d2afc0208dfd1262c376c7463c63e
jaracohttps://github.com/jaraco
on Dec 24, 2022https://github.com/python/importlib_resources/issues/257#event-8107710533
Disable native reader even if it supplies files, because it might not…https://github.com/python/importlib_resources/commit/9396ffc1d86fe9dde9c63f9c0cd5d36c6b9de88b
https://docs.github.com/articles/closing-issues-via-commit-messages
9396ffchttps://github.com/python/importlib_resources/commit/9396ffc1d86fe9dde9c63f9c0cd5d36c6b9de88b
jaracohttps://github.com/jaraco
on Feb 17, 2023https://github.com/python/importlib_resources/issues/257#event-8551229541
Disable native reader even if it supplies files, because it might not…https://github.com/python/importlib_resources/commit/68be8b432051731aae620297e42660bd547d5551
https://docs.github.com/articles/closing-issues-via-commit-messages
68be8b4https://github.com/python/importlib_resources/commit/68be8b432051731aae620297e42660bd547d5551
jaracohttps://github.com/jaraco
completedhttps://github.com/python/importlib_resources/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
68be8b4https://github.com/python/importlib_resources/commit/68be8b432051731aae620297e42660bd547d5551
on Feb 17, 2023https://github.com/python/importlib_resources/issues/257#event-8551498747
jaracohttps://github.com/jaraco
on Mar 15, 2024https://github.com/python/importlib_resources/issues/257#event-12132831571
https://github.com/Jakub-CZ
Jakub-CZhttps://github.com/Jakub-CZ
on Mar 15, 2024https://github.com/python/importlib_resources/issues/257#issuecomment-2000252689
jaracohttps://github.com/jaraco
on Mar 16, 2024https://github.com/python/importlib_resources/issues/257#event-12140139598
Add test capturing missed expectation. Ref #257.https://github.com/python/importlib_resources/commit/2cec87b8226a3808c3047cb0c8272dac542588f3
#257https://github.com/python/importlib_resources/issues/257
2cec87bhttps://github.com/python/importlib_resources/commit/2cec87b8226a3808c3047cb0c8272dac542588f3
Mark test as xfail on Python 3.10 where it fails. Ref #257.https://github.com/python/importlib_resources/commit/d7b6cfbf73317aaa69500444811a44c94eb75a95
#257https://github.com/python/importlib_resources/issues/257
d7b6cfbhttps://github.com/python/importlib_resources/commit/d7b6cfbf73317aaa69500444811a44c94eb75a95
https://github.com/jaraco
jaracohttps://github.com/jaraco
on Mar 16, 2024https://github.com/python/importlib_resources/issues/257#issuecomment-2002012680
importlib_resources/importlib_resources/future/adapters.pyhttps://github.com/python/importlib_resources/blob/9f5b437d9af146edde9e4d1f2757cb808b5c3803/importlib_resources/future/adapters.py#L26-L28
9f5b437https://github.com/python/importlib_resources/commit/9f5b437d9af146edde9e4d1f2757cb808b5c3803
jaracohttps://github.com/jaraco
on Mar 16, 2024https://github.com/python/importlib_resources/issues/257#event-12140184968
Ensure stdlib readers are excluded on Python 3.10 even when found in …https://github.com/python/importlib_resources/commit/d9e44b65dfb6a51f2ec9ee1e041ff46ca75befef
https://docs.github.com/articles/closing-issues-via-commit-messages
d9e44b6https://github.com/python/importlib_resources/commit/d9e44b65dfb6a51f2ec9ee1e041ff46ca75befef
jaracohttps://github.com/jaraco
completedhttps://github.com/python/importlib_resources/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
#301https://github.com/python/importlib_resources/pull/301
on Mar 16, 2024https://github.com/python/importlib_resources/issues/257#event-12140193417
Sign up for freehttps://github.com/signup?return_to=https://github.com/python/importlib_resources/issues/257
Sign in to commenthttps://github.com/login?return_to=https://github.com/python/importlib_resources/issues/257
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.