Title: Pre-commit checks failing in GitHub Actions with Python 3.12(ubuntu:latest) · Issue #754 · Shopify/shopify_python_api · GitHub
Open Graph Title: Pre-commit checks failing in GitHub Actions with Python 3.12(ubuntu:latest) · Issue #754 · Shopify/shopify_python_api
X Title: Pre-commit checks failing in GitHub Actions with Python 3.12(ubuntu:latest) · Issue #754 · Shopify/shopify_python_api
Description: Issue summary Pre-commit checks failing in GitHub Actions with Python 3.12(ubuntu:latest) This issue was discovered while working on #752 #753 Expected behavior Pre-commit checks should run successfully in GitHub Actions environment Actu...
Open Graph Description: Issue summary Pre-commit checks failing in GitHub Actions with Python 3.12(ubuntu:latest) This issue was discovered while working on #752 #753 Expected behavior Pre-commit checks should run success...
X Description: Issue summary Pre-commit checks failing in GitHub Actions with Python 3.12(ubuntu:latest) This issue was discovered while working on #752 #753 Expected behavior Pre-commit checks should run success...
Opengraph URL: https://github.com/Shopify/shopify_python_api/issues/754
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Pre-commit checks failing in GitHub Actions with Python 3.12(ubuntu:latest)","articleBody":"# Issue summary\n\nPre-commit checks failing in GitHub Actions with Python 3.12(ubuntu:latest)\n\nThis issue was discovered while working on #752 #753 \n\n## Expected behavior\n\n- Pre-commit checks should run successfully in GitHub Actions environment\n\n## Actual behavior\n\u003csummary\u003eCurrent Error Log from GitHub Actions (\u003ca href=\"https://github.com/Shopify/shopify_python_api/actions/runs/12671334535/job/35455806742\"\u003elink to failed job\u003c/a\u003e)\u003c/summary\u003e\n\n\n\u003cdetails\u003e\n\u003csummary\u003eError Log\u003c/summary\u003e\n\n```\n/home/runner/.local/bin/pre-commit run --show-diff-on-failure --color=always --all-files\n[INFO] Initializing environment for https://github.com/pre-commit/pre-commit-hooks.\n[WARNING] repo `[https://github.com/pre-commit/pre-commit-hooks`](https://github.com/pre-commit/pre-commit-hooks%60) uses deprecated stage names (commit, push) which will be removed in a future version. Hint: often `pre-commit autoupdate --repo [https://github.com/pre-commit/pre-commit-hooks`](https://github.com/pre-commit/pre-commit-hooks%60) will fix this. if it does not -- consider reporting an issue to that repo.\n[INFO] Initializing environment for https://github.com/psf/black.\n[INFO] Initializing environment for https://github.com/PyCQA/pylint.\n[INFO] Installing environment for https://github.com/pre-commit/pre-commit-hooks.\n[INFO] Once installed this environment will be reused.\n[INFO] This may take a few minutes...\n[INFO] Installing environment for https://github.com/psf/black.\n[INFO] Once installed this environment will be reused.\n[INFO] This may take a few minutes...\n[INFO] Installing environment for https://github.com/PyCQA/pylint.\n[INFO] Once installed this environment will be reused.\n[INFO] This may take a few minutes...\nAn unexpected error has occurred: CalledProcessError: command: ('/home/runner/.cache/pre-commit/repo8dfyi049/py_env-python3/bin/python', '-mpip', 'install', '.')\nreturn code: 1\nstdout:\n Processing /home/runner/.cache/pre-commit/repo8dfyi049\n Installing build dependencies: started\n Installing build dependencies: finished with status 'done'\n Getting requirements to build wheel: started\n Getting requirements to build wheel: finished with status 'error'\nstderr:\n error: subprocess-exited-with-error\n \n × Getting requirements to build wheel did not run successfully.\n │ exit code: 1\n ╰─\u003e [33 lines of output]\n Traceback (most recent call last):\n File \"/home/runner/.cache/pre-commit/repo8dfyi049/py_env-python3/lib/python3.12/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py\", line 353, in \u003cmodule\u003e\n main()\n File \"/home/runner/.cache/pre-commit/repo8dfyi049/py_env-python3/lib/python3.12/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py\", line 335, in main\n json_out['return_val'] = hook(**hook_input['kwargs'])\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n File \"/home/runner/.cache/pre-commit/repo8dfyi049/py_env-python3/lib/python3.12/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py\", line 112, in get_requires_for_build_wheel\n backend = _build_backend()\n ^^^^^^^^^^^^^^^^\n File \"/home/runner/.cache/pre-commit/repo8dfyi049/py_env-python3/lib/python3.12/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py\", line 77, in _build_backend\n obj = import_module(mod_path)\n ^^^^^^^^^^^^^^^^^^^^^^^\n File \"/usr/lib/python3.12/importlib/__init__.py\", line 90, in import_module\n return _bootstrap._gcd_import(name[level:], package, level)\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n File \"\u003cfrozen importlib._bootstrap\u003e\", line 1387, in _gcd_import\n File \"\u003cfrozen importlib._bootstrap\u003e\", line 1360, in _find_and_load\n File \"\u003cfrozen importlib._bootstrap\u003e\", line [131](https://github.com/Shopify/shopify_python_api/actions/runs/12671334535/job/35455806742#step:4:133)0, in _find_and_load_unlocked\n File \"\u003cfrozen importlib._bootstrap\u003e\", line 488, in _call_with_frames_removed\n File \"\u003cfrozen importlib._bootstrap\u003e\", line 1387, in _gcd_import\n File \"\u003cfrozen importlib._bootstrap\u003e\", line 1360, in _find_and_load\n File \"\u003cfrozen importlib._bootstrap\u003e\", line [133](https://github.com/Shopify/shopify_python_api/actions/runs/12671334535/job/35455806742#step:4:135)1, in _find_and_load_unlocked\n File \"\u003cfrozen importlib._bootstrap\u003e\", line 935, in _load_unlocked\n File \"\u003cfrozen importlib._bootstrap_external\u003e\", line 995, in exec_module\n File \"\u003cfrozen importlib._bootstrap\u003e\", line 488, in _call_with_frames_removed\n File \"/tmp/pip-build-env-ziat_u1i/overlay/lib/python3.12/site-packages/setuptools/__init__.py\", line 16, in \u003cmodule\u003e\n import setuptools.version\n File \"/tmp/pip-build-env-ziat_u1i/overlay/lib/python3.12/site-packages/setuptools/version.py\", line 1, in \u003cmodule\u003e\n import pkg_resources\n File \"/tmp/pip-build-env-ziat_u1i/overlay/lib/python3.12/site-packages/pkg_resources/__init__.py\", line 2191, in \u003cmodule\u003e\n register_finder(pkgutil.ImpImporter, find_on_path)\n ^^^^^^^^^^^^^^^^^^^\n AttributeError: module 'pkgutil' has no attribute 'ImpImporter'. Did you mean: 'zipimporter'?\n [end of output]\n \n note: This error originates from a subprocess, and is likely not a problem with pip.\n error: subprocess-exited-with-error\n \n × Getting requirements to build wheel did not run successfully.\n │ exit code: 1\n ╰─\u003e See above for output.\n \n note: This error originates from a subprocess, and is likely not a problem with pip.\nCheck the log at /home/runner/.cache/pre-commit/pre-commit.log\nError: The process '/home/runner/.local/bin/pre-commit' failed with exit code 3\n```\n\u003c/details\u003e\n\n## Steps to reproduce the problem\n\n1. Create any Pull Request to this repository\n2. Wait for GitHub Actions to run\n3. Pre-commit check will fail with the error shown above\n\n## Reduced test case\n\nNot applicable - This is a configuration/environment issue rather than a code issue.\n\n## Proposed solution\n\nUpgrade pylint to v3.x.x series. I've confirmed this resolves the issue in my local environment:\n\n```\n - repo: https://github.com/PyCQA/pylint\n rev: v3.3.3\n hooks:\n - id: pylint\n```\n\nNote: After upgrading to pylint v3.x.x, new lint warnings appear in the codebase. \nThese will need to be addressed in a separate PR after the version upgrade is approved.\n\nThis issue appears to be caused by deprecated features in Python 3.12 that pylint v2.15.8 depends on.\n\n---\n\n## Checklist\n\n- [x] I have described this issue in a way that is actionable (if possible)\n","author":{"url":"https://github.com/nasudadada","@type":"Person","name":"nasudadada"},"datePublished":"2025-01-11T12:48:30.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/754/shopify_python_api/issues/754"}
| 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:05b61873-7c4d-3489-d625-d425a3da88b7 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 9706:749E6:2AC074:3B55AE:6969595B |
| html-safe-nonce | 59a9495a5b1175642e7e653c0360d3d9f80e94b90474e2bcea7e791c4672dadf |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5NzA2Ojc0OUU2OjJBQzA3NDozQjU1QUU6Njk2OTU5NUIiLCJ2aXNpdG9yX2lkIjoiNDE5MzIxNTYzOTg3NTgzNjI1MSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 5128d849072f19d85ae6ee1f16b817b4357e7ea3c2c4cfddb77a9b7add02f896 |
| hovercard-subject-tag | issue:2781846648 |
| github-keyboard-shortcuts | repository,issues,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/Shopify/shopify_python_api/754/issue_layout |
| twitter:image | https://avatars.githubusercontent.com/u/8085?s=400&v=4 |
| twitter:card | summary |
| og:image | https://avatars.githubusercontent.com/u/8085?s=400&v=4 |
| og:image:alt | Issue summary Pre-commit checks failing in GitHub Actions with Python 3.12(ubuntu:latest) This issue was discovered while working on #752 #753 Expected behavior Pre-commit checks should run success... |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | nasudadada |
| hostname | github.com |
| expected-hostname | github.com |
| None | 9db5f28da7e24035385d7f349f17890cbe016a939ddd7952be0f07b862094f5a |
| turbo-cache-control | no-preview |
| go-import | github.com/Shopify/shopify_python_api git https://github.com/Shopify/shopify_python_api.git |
| octolytics-dimension-user_id | 8085 |
| octolytics-dimension-user_login | Shopify |
| octolytics-dimension-repository_id | 2249127 |
| octolytics-dimension-repository_nwo | Shopify/shopify_python_api |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 2249127 |
| octolytics-dimension-repository_network_root_nwo | Shopify/shopify_python_api |
| 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 | 4e59fe66217d3c72925af2a341ae3a8f2b5b5b2a |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width