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: redirect.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:86a846f5-90ff-2bf0-9023-3ff6e1b07709 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | C2A8:2C2D0C:2593225:3191F6F:6971BD62 |
| html-safe-nonce | 0d8f1387097a917261b069c0447f0bffc5d9e220a24838663c9cf49a82b069d6 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDMkE4OjJDMkQwQzoyNTkzMjI1OjMxOTFGNkY6Njk3MUJENjIiLCJ2aXNpdG9yX2lkIjoiODEwOTM0MjczODQ4NzU1NzQ3NCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 3a70fdb26679d9cff19999b77bc9bc66b534f055fd6e7173d38d895a97a59195 |
| 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 | c3b677fea7de290a6c0d1c9ccd6c9909b6a527cf8ee079649e09dc78092d24f1 |
| 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 | 29d7fcca69cafb91ec8a596aaf222fd46e9bc934 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width