Title: Failing (or warning?) with Python 3.12 alpha 7 · Issue #1571 · gitpython-developers/GitPython · GitHub
Open Graph Title: Failing (or warning?) with Python 3.12 alpha 7 · Issue #1571 · gitpython-developers/GitPython
X Title: Failing (or warning?) with Python 3.12 alpha 7 · Issue #1571 · gitpython-developers/GitPython
Description: I think things like this GitPython/git/util.py Line 180 in f253335 return shutil.rmtree(path, False, onerror) is causing a problem, due to https://docs.python.org/3.12/whatsnew/3.12.html#shutil (see python/cpython#102829 ). While I do ha...
Open Graph Description: I think things like this GitPython/git/util.py Line 180 in f253335 return shutil.rmtree(path, False, onerror) is causing a problem, due to https://docs.python.org/3.12/whatsnew/3.12.html#shutil (se...
X Description: I think things like this GitPython/git/util.py Line 180 in f253335 return shutil.rmtree(path, False, onerror) is causing a problem, due to https://docs.python.org/3.12/whatsnew/3.12.html#shutil (se...
Opengraph URL: https://github.com/gitpython-developers/GitPython/issues/1571
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Failing (or warning?) with Python 3.12 alpha 7","articleBody":"I think things like this https://github.com/gitpython-developers/GitPython/blob/f25333525425ee1497366fd300a60127aa652d79/git/util.py#L180 is causing a problem, due to https://docs.python.org/3.12/whatsnew/3.12.html#shutil (see https://github.com/python/cpython/pull/102829 ). While I do have warnings as errors on in my test suite, this is not reporting a warning like `wheel` does, it's an error when calling `repo.index.commit(\"first commit\")`:\r\n\r\n```\r\n/opt/hostedtoolcache/Python/3.12.0-alpha.7/x64/lib/python3.12/site-packages/git/refs/symbolic.py:172: in _get_ref_info_helper\r\n repodir = _git_dir(repo, ref_path)\r\n cls = \u003cclass 'git.refs.head.Head'\u003e\r\n ref_path = 'refs/heads/main'\r\n repo = \u003cgit.repo.base.Repo '/tmp/pytest-of-runner/pytest-0/test_plugin_metadata0/pkg/.git'\u003e\r\n tokens = None\r\n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \r\n\r\nrepo = \u003cgit.repo.base.Repo '/tmp/pytest-of-runner/pytest-0/test_plugin_metadata0/pkg/.git'\u003e\r\npath = 'refs/heads/main'\r\n\r\n def _git_dir(repo: \"Repo\", path: Union[PathLike, None]) -\u003e PathLike:\r\n \"\"\"Find the git dir that's appropriate for the path\"\"\"\r\n name = f\"{path}\"\r\n if name in [\"HEAD\", \"ORIG_HEAD\", \"FETCH_HEAD\", \"index\", \"logs\"]:\r\n return repo.git_dir\r\n\u003e return repo.common_dir\r\nE SystemError: \u003cfunction Repo.common_dir at 0x7ffba93f3060\u003e returned a result with an exception set\r\n\r\nname = 'refs/heads/main'\r\npath = 'refs/heads/main'\r\nrepo = \u003cgit.repo.base.Repo '/tmp/pytest-of-runner/pytest-0/test_plugin_metadata0/pkg/.git'\u003e\r\n\r\n/opt/hostedtoolcache/Python/3.12.0-alpha.7/x64/lib/python3.12/site-packages/git/refs/symbolic.py:55: SystemError\r\n```\r\n\r\nGHA's `3.12-dev` just updated to alpha 7, which is why I am now seeing this error.","author":{"url":"https://github.com/henryiii","@type":"Person","name":"henryiii"},"datePublished":"2023-04-06T18:33:57.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":2},"url":"https://github.com/1571/GitPython/issues/1571"}
| 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:488374a7-e659-2615-7f0e-424e731f133c |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | DAC2:241BC3:7FA83:A737D:69688105 |
| html-safe-nonce | b24709eee875a7db2aa4a32936bd6267913c17064668c6496150226aa27d6136 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEQUMyOjI0MUJDMzo3RkE4MzpBNzM3RDo2OTY4ODEwNSIsInZpc2l0b3JfaWQiOiI0NTM0ODM4ODUwNDI4MTA5MDYxIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | d5a39a2a47acac9af7c5e6a3374fcc7a0b04a36c1851416693c07621e43a2569 |
| hovercard-subject-tag | issue:1657876123 |
| 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/gitpython-developers/GitPython/1571/issue_layout |
| twitter:image | https://opengraph.githubassets.com/261663e88ff2409a1cde6ecee38e2e21271e7acddaf741770bf2c710dfb67948/gitpython-developers/GitPython/issues/1571 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/261663e88ff2409a1cde6ecee38e2e21271e7acddaf741770bf2c710dfb67948/gitpython-developers/GitPython/issues/1571 |
| og:image:alt | I think things like this GitPython/git/util.py Line 180 in f253335 return shutil.rmtree(path, False, onerror) is causing a problem, due to https://docs.python.org/3.12/whatsnew/3.12.html#shutil (se... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | henryiii |
| hostname | github.com |
| expected-hostname | github.com |
| None | 50f46dc2d6192249fd8ebf20e76c800f4f2596d4a5f3ab63dd63a754df154f54 |
| turbo-cache-control | no-preview |
| go-import | github.com/gitpython-developers/GitPython git https://github.com/gitpython-developers/GitPython.git |
| octolytics-dimension-user_id | 503709 |
| octolytics-dimension-user_login | gitpython-developers |
| octolytics-dimension-repository_id | 1126087 |
| octolytics-dimension-repository_nwo | gitpython-developers/GitPython |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 1126087 |
| octolytics-dimension-repository_network_root_nwo | gitpython-developers/GitPython |
| 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 | fef287f17234b4529a4b112a3d47fe8551e32ddd |
| ui-target | canary-1 |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width