René's URL Explorer Experiment


Title: macOS: universal package python3.12 crashes when running `pip debug` · Issue #684 · actions/setup-python · GitHub

Open Graph Title: macOS: universal package python3.12 crashes when running `pip debug` · Issue #684 · actions/setup-python

X Title: macOS: universal package python3.12 crashes when running `pip debug` · Issue #684 · actions/setup-python

Description: Description: It seems the new python3.12 universal2 packages released for macOS have been shipped with a version of pip (23.1.2) which contains a vendored dep that causes pip to crash at runtime. ref: pypa/pip#12053 python/typing_extensi...

Open Graph Description: Description: It seems the new python3.12 universal2 packages released for macOS have been shipped with a version of pip (23.1.2) which contains a vendored dep that causes pip to crash at runtime. r...

X Description: Description: It seems the new python3.12 universal2 packages released for macOS have been shipped with a version of pip (23.1.2) which contains a vendored dep that causes pip to crash at runtime. r...

Opengraph URL: https://github.com/actions/setup-python/issues/684

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"macOS: universal package python3.12 crashes when running `pip debug`","articleBody":"\u003c!--- Please direct any generic questions related to actions to our support community forum at https://github.community/c/code-to-cloud/github-actions/41 ---\u003e\r\n\u003c!--- Before opening up a new bug report, please make sure to check for similar existing issues --\u003e\r\n\r\n## **Description:**\r\n\r\n\r\nIt seems the new python3.12 universal2 packages released for macOS have been shipped with a version of pip (23.1.2) which contains a vendored dep that causes pip to crash at runtime.\r\n\r\n**ref**: \r\nhttps://github.com/pypa/pip/issues/12053\r\n\r\nhttps://github.com/python/typing_extensions/pull/162\r\n\r\nhttps://github.com/actions/setup-python/issues/108#issuecomment-1589663385\r\n\r\n## **Action version:**\r\n\r\n`actions/setup-python@v4`\r\n\r\n## **Platform:**\r\n- [ ] Ubuntu\r\n- [x] macOS\r\n- [ ] Windows\r\n\r\n## **Runner type:**\r\n- [x] Hosted\r\n- [ ] Self-hosted\r\n\r\n## **Tools version:**\r\n\u003c!--- Please list all of the affected Python versions (`3.8.2`, etc.)--\u003e\r\n\r\n3.12\r\n\r\n## **Repro steps:** \r\n\r\nFull example can be seen here https://github.com/deric4/github-action-runner-reference/actions/runs/5286208770/attempts/1#summary-14311090932\r\n\r\n## action configuration\r\n\r\n```yaml\r\n     - name: set it up\r\n       uses: actions/setup-python@v4\r\n       id: setup-python\r\n       with:\r\n         python-version: ${{ matrix.python-version }}\r\n         allow-prereleases: true\r\n         check-latest: true\r\n```\r\n\r\n\r\n**minimal workflow*\r\n```yaml\r\nname: setup python repro\r\non:\r\n  workflow_dispatch:\r\npermissions: {}\r\ndefaults:\r\n  run:\r\n    shell: bash \r\njobs:\r\n  dump-it-out:\r\n    name: \"${{ matrix.os}} python-version:${{matrix.python-version}} dump out\"\r\n    runs-on: ${{ matrix.os }} \r\n    strategy:\r\n      matrix:\r\n        os:\r\n          #- macos-10.15\r\n          #- macos-11\r\n          #- macos-12\r\n          - macos-13                   \r\n        python-version:\r\n          #- \"3.9\"\r\n          #- \"3.10\"\r\n          #- \"3.11\"\r\n          - \"3.12\"\r\n     - name: set it up\r\n       uses: actions/setup-python@v4\r\n       id: setup-python\r\n       with:\r\n         python-version: ${{ matrix.python-version }}\r\n         allow-prereleases: true\r\n         check-latest: true\r\n\r\n     - name: do the thing\r\n       id: do-the-thing\r\n       run: |\r\n         python3 --version --version\r\n\r\n         # this will crash\r\n         python3 -m pip debug\r\n```\r\n\r\n\r\n\r\n## **Expected behavior:**\r\n\r\nRunning `python3.12 -m pip debug` runs successfully.\r\n\r\n## **Actual behavior:**\r\n\r\nJob is cancelled because pip crashes.\r\n\r\n\u003cimg width=\"540\" alt=\"image\" src=\"https://github.com/actions/setup-python/assets/5762138/35e1e2cf-08cc-4c91-9456-ee4869eeba6f\"\u003e\r\n\r\n\r\n### output\r\n\r\n```console\r\n$ python3.12 --version --version\r\nPython 3.12.0b2 (v3.12.0b2:e6c0efa25a, Jun  6 2023, 11:36:52) [Clang 13.0.0 (clang-1300.0.29.30)]\r\n\r\n$ python3.12 -m pip debug\r\nWARNING: This command is only meant for debugging. Do not use this with automation for parsing and getting these details, since the output and options of this command may change without notice.\r\npip version: pip 23.1.2 from /Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/pip (python 3.12)\r\nsys.version: 3.12.0b2 (v3.12.0b2:e6c0efa25a, Jun  6 2023, 11:36:52) [Clang 13.0.0 (clang-1300.0.29.30)]\r\nsys.executable: /Library/Frameworks/Python.framework/Versions/3.12/bin/python3.12\r\nsys.getdefaultencoding: utf-8\r\nsys.getfilesystemencoding: utf-8\r\nlocale.getpreferredencoding: UTF-8\r\nsys.platform: darwin\r\nsys.implementation:\r\n  name: cpython\r\n'cert' config value: Not specified\r\nREQUESTS_CA_BUNDLE: None\r\nCURL_CA_BUNDLE: None\r\npip._vendor.certifi.where(): /Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/pip/_vendor/certifi/cacert.pem\r\npip._vendor.DEBUNDLED: False\r\nvendored library versions:\r\n  CacheControl==0.12.11\r\n  colorama==0.4.6\r\n  distlib==0.3.6\r\n  distro==1.8.0\r\n  msgpack==1.0.5\r\n  packaging==21.3\r\n  platformdirs==3.2.0\r\n  pyparsing==3.0.9\r\n  pyproject-hooks==1.0.0\r\n  requests==2.28.2\r\n  certifi==2022.12.07\r\n  chardet==5.1.0\r\n  idna==3.4\r\n  urllib3==1.26.15\r\n  rich==13.3.3 (Unable to locate actual module version, using vendor.txt specified version)\r\n  pygments==2.14.0\r\nERROR: Exception:\r\nTraceback (most recent call last):\r\n  File \"/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/pip/_internal/cli/base_command.py\", line 169, in exc_logging_wrapper\r\n    status = run_func(*args)\r\n             ^^^^^^^^^^^^^^^\r\n  File \"/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/pip/_internal/commands/debug.py\", line 195, in run\r\n    show_vendor_versions()\r\n  File \"/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/pip/_internal/commands/debug.py\", line 101, in show_vendor_versions\r\n    show_actual_vendor_versions(vendor_txt_versions)\r\n  File \"/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/pip/_internal/commands/debug.py\", line 81, in show_actual_vendor_versions\r\n    actual_version = get_vendor_version_from_module(module_name)\r\n                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\r\n  File \"/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/pip/_internal/commands/debug.py\", line 61, in get_vendor_version_from_module\r\n    module = get_module_from_module_name(module_name)\r\n             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\r\n  File \"/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/pip/_internal/commands/debug.py\", line 56, in get_module_from_module_name\r\n    __import__(f\"pip._vendor.{module_name}\", globals(), locals(), level=0)\r\n  File \"/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/pip/_vendor/typing_extensions.py\", line 1174, in \u003cmodule\u003e\r\n    class TypeVar(typing.TypeVar, _DefaultMixin, _root=True):\r\nTypeError: type 'typing.TypeVar' is not an acceptable base type\r\n```\r\n","author":{"url":"https://github.com/deric4","@type":"Person","name":"deric4"},"datePublished":"2023-06-16T05:09:43.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":3},"url":"https://github.com/684/setup-python/issues/684"}

route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:a9060269-896d-2e1c-2577-db4130c23da5
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idB25E:2B0240:30EA99:42C586:6969D215
html-safe-noncef0f0c1ab910c934606da195536e24077b105976c015fc555cd4fe532198d5d18
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCMjVFOjJCMDI0MDozMEVBOTk6NDJDNTg2OjY5NjlEMjE1IiwidmlzaXRvcl9pZCI6Ijg5OTM5Mzk4MTE5OTg0ODcwNjIiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmacc598c1557385bf9f5dfeb4c9d6bdc4ca91b4d7f87501b87c5b5face56f8a2ef2
hovercard-subject-tagissue:1759930972
github-keyboard-shortcutsrepository,issues,actions,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/actions/setup-python/684/issue_layout
twitter:imagehttps://opengraph.githubassets.com/3f0b413519f94c3c19a09e96398577d58e206fb54fe281b804a21bb1f59de356/actions/setup-python/issues/684
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/3f0b413519f94c3c19a09e96398577d58e206fb54fe281b804a21bb1f59de356/actions/setup-python/issues/684
og:image:altDescription: It seems the new python3.12 universal2 packages released for macOS have been shipped with a version of pip (23.1.2) which contains a vendored dep that causes pip to crash at runtime. r...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamederic4
hostnamegithub.com
expected-hostnamegithub.com
Noneacedec8b5f975d9e3d494ddd8f949b0b8a0de59d393901e26f73df9dcba80056
turbo-cache-controlno-preview
go-importgithub.com/actions/setup-python git https://github.com/actions/setup-python.git
octolytics-dimension-user_id44036562
octolytics-dimension-user_loginactions
octolytics-dimension-repository_id192625525
octolytics-dimension-repository_nwoactions/setup-python
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id192625525
octolytics-dimension-repository_network_root_nwoactions/setup-python
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
release83c08c21cdda978090dc44364b71aa5bc6dcea79
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/actions/setup-python/issues/684#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Factions%2Fsetup-python%2Fissues%2F684
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%2Factions%2Fsetup-python%2Fissues%2F684
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=actions%2Fsetup-python
Reloadhttps://github.com/actions/setup-python/issues/684
Reloadhttps://github.com/actions/setup-python/issues/684
Reloadhttps://github.com/actions/setup-python/issues/684
actions https://github.com/actions
setup-pythonhttps://github.com/actions/setup-python
Notifications https://github.com/login?return_to=%2Factions%2Fsetup-python
Fork 692 https://github.com/login?return_to=%2Factions%2Fsetup-python
Star 2.1k https://github.com/login?return_to=%2Factions%2Fsetup-python
Code https://github.com/actions/setup-python
Issues 39 https://github.com/actions/setup-python/issues
Pull requests 36 https://github.com/actions/setup-python/pulls
Actions https://github.com/actions/setup-python/actions
Projects 0 https://github.com/actions/setup-python/projects
Security Uh oh! There was an error while loading. Please reload this page. https://github.com/actions/setup-python/security
Please reload this pagehttps://github.com/actions/setup-python/issues/684
Insights https://github.com/actions/setup-python/pulse
Code https://github.com/actions/setup-python
Issues https://github.com/actions/setup-python/issues
Pull requests https://github.com/actions/setup-python/pulls
Actions https://github.com/actions/setup-python/actions
Projects https://github.com/actions/setup-python/projects
Security https://github.com/actions/setup-python/security
Insights https://github.com/actions/setup-python/pulse
New issuehttps://github.com/login?return_to=https://github.com/actions/setup-python/issues/684
New issuehttps://github.com/login?return_to=https://github.com/actions/setup-python/issues/684
macOS: universal package python3.12 crashes when running pip debughttps://github.com/actions/setup-python/issues/684#top
https://github.com/dmitry-shibanov
bugSomething isn't workinghttps://github.com/actions/setup-python/issues?q=state%3Aopen%20label%3A%22bug%22
https://github.com/deric4
https://github.com/deric4
deric4https://github.com/deric4
on Jun 16, 2023https://github.com/actions/setup-python/issues/684#issue-1759930972
pypa/pip#12053https://github.com/pypa/pip/issues/12053
python/typing_extensions#162https://github.com/python/typing_extensions/pull/162
#108 (comment)https://github.com/actions/setup-python/issues/108#issuecomment-1589663385
https://github.com/deric4/github-action-runner-reference/actions/runs/5286208770/attempts/1#summary-14311090932https://github.com/deric4/github-action-runner-reference/actions/runs/5286208770/attempts/1#summary-14311090932
https://private-user-images.githubusercontent.com/5762138/246320650-35e1e2cf-08cc-4c91-9456-ee4869eeba6f.png?jwt=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Njg1NDMwNDIsIm5iZiI6MTc2ODU0Mjc0MiwicGF0aCI6Ii81NzYyMTM4LzI0NjMyMDY1MC0zNWUxZTJjZi0wOGNjLTRjOTEtOTQ1Ni1lZTQ4NjllZWJhNmYucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI2MDExNiUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNjAxMTZUMDU1MjIyWiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9OWQzOGY0NGI1OGZmNTNmMGJjODIwYjRlZThhNTg5M2IzMjRmOWJkNjk3MGYzM2ZlYzY1Y2NjYzFlYTA2NjIwOCZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QifQ.kuVDHXJY5wtFAN2eTAzepx6K9A9WvNLuSH_WkUFj75s
dmitry-shibanovhttps://github.com/dmitry-shibanov
bugSomething isn't workinghttps://github.com/actions/setup-python/issues?q=state%3Aopen%20label%3A%22bug%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.