[Bug 6926] New: Doesn't work on Python 3.13

mercurial-bugs at mercurial-scm.org mercurial-bugs at mercurial-scm.org
Wed Oct 9 06:05:42 UTC 2024


https://bz.mercurial-scm.org/show_bug.cgi?id=6926

            Bug ID: 6926
           Summary: Doesn't work on Python 3.13
           Product: Mercurial
           Version: 6.8.1
          Hardware: PC
                OS: Linux
            Status: UNCONFIRMED
          Severity: bug
          Priority: wish
         Component: Mercurial
          Assignee: bugzilla at mercurial-scm.org
          Reporter: shtrom+hg at ssji.net
                CC: mercurial-devel at mercurial-scm.org
    Python Version: ---

I'm probably getting a bit excited here, but it seem `hg` (6.8.1( is not happy
with Python 3.13:

```
docker run --rm -it python:3.13 bash
root at 7e14a0281bae:/# pip install mercurial
[...]
Successfully installed mercurial-6.8.1
WARNING: Running pip as the 'root' user can result in broken permissions and
conflicting behaviour with the system package manager, possibly rendering your
system unusable.It is recommended to use a virtual environment instead:
https://pip.pypa.io/warnings/venv. Use the --root-user-action option if you
know what you are doing and want to suppress this warning.
root at 7e14a0281bae:/# python -V
Python 3.13.0
root at 7e14a0281bae:/# hg
Traceback (most recent call last):
  File "/usr/local/bin/hg", line 59, in <module>
    dispatch.run()
    ^^^^^^^^^^^^
  File "<frozen importlib.util>", line 209, in __getattribute__
  File "<frozen importlib._bootstrap_external>", line 1022, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "/usr/local/lib/python3.13/site-packages/mercurial/dispatch.py", line
20, in <module>
    from .i18n import _
  File "<frozen importlib.util>", line 209, in __getattribute__
  File "/usr/local/lib/python3.13/site-packages/mercurial/i18n.py", line 14, in
<module>
    from typing import (
        List,
    )
  File "<frozen importlib.util>", line 209, in __getattribute__
  File "/usr/local/lib/python3.13/typing.py", line 2807, in <module>
    Hashable = _alias(collections.abc.Hashable, 0)  # Not generic.
                      ^^^^^^^^^^^^^^^^^^^^^^^^
  File "<frozen importlib.util>", line 214, in __getattribute__
ValueError: module object for 'collections.abc' substituted in sys.modules
during a lazy load
Traceback (most recent call last):
  File "/usr/local/bin/hg", line 59, in <module>
    dispatch.run()
  File "<frozen importlib.util>", line 209, in __getattribute__
  File "<frozen importlib._bootstrap_external>", line 1022, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "/usr/local/lib/python3.13/site-packages/mercurial/dispatch.py", line
20, in <module>
    from .i18n import _
  File "<frozen importlib.util>", line 209, in __getattribute__
  File "/usr/local/lib/python3.13/site-packages/mercurial/i18n.py", line 14, in
<module>
    from typing import (
  File "<frozen importlib.util>", line 209, in __getattribute__
  File "/usr/local/lib/python3.13/typing.py", line 2807, in <module>
    Hashable = _alias(collections.abc.Hashable, 0)  # Not generic.
  File "<frozen importlib.util>", line 214, in __getattribute__
ValueError: module object for 'collections.abc' substituted in sys.modules
during a lazy load
```

-- 
You are receiving this mail because:
You are on the CC list for the bug.


More information about the Mercurial-devel mailing list