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
Domain: github.com
{"@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-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:a9060269-896d-2e1c-2577-db4130c23da5 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | B25E:2B0240:30EA99:42C586:6969D215 |
| html-safe-nonce | f0f0c1ab910c934606da195536e24077b105976c015fc555cd4fe532198d5d18 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCMjVFOjJCMDI0MDozMEVBOTk6NDJDNTg2OjY5NjlEMjE1IiwidmlzaXRvcl9pZCI6Ijg5OTM5Mzk4MTE5OTg0ODcwNjIiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | c598c1557385bf9f5dfeb4c9d6bdc4ca91b4d7f87501b87c5b5face56f8a2ef2 |
| hovercard-subject-tag | issue:1759930972 |
| github-keyboard-shortcuts | repository,issues,actions,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/actions/setup-python/684/issue_layout |
| twitter:image | https://opengraph.githubassets.com/3f0b413519f94c3c19a09e96398577d58e206fb54fe281b804a21bb1f59de356/actions/setup-python/issues/684 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/3f0b413519f94c3c19a09e96398577d58e206fb54fe281b804a21bb1f59de356/actions/setup-python/issues/684 |
| og:image:alt | 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... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | deric4 |
| hostname | github.com |
| expected-hostname | github.com |
| None | acedec8b5f975d9e3d494ddd8f949b0b8a0de59d393901e26f73df9dcba80056 |
| turbo-cache-control | no-preview |
| go-import | github.com/actions/setup-python git https://github.com/actions/setup-python.git |
| octolytics-dimension-user_id | 44036562 |
| octolytics-dimension-user_login | actions |
| octolytics-dimension-repository_id | 192625525 |
| octolytics-dimension-repository_nwo | actions/setup-python |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 192625525 |
| octolytics-dimension-repository_network_root_nwo | actions/setup-python |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 83c08c21cdda978090dc44364b71aa5bc6dcea79 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width