[Bug 6873] New: rhg crashes on Python 3.12: undefined symbol: _PyUnicode_Ready
mercurial-bugs at mercurial-scm.org
mercurial-bugs at mercurial-scm.org
Sun Apr 7 07:56:01 UTC 2024
https://bz.mercurial-scm.org/show_bug.cgi?id=6873
Bug ID: 6873
Summary: rhg crashes on Python 3.12: undefined symbol:
_PyUnicode_Ready
Product: Mercurial
Version: 6.7.2
Hardware: PC
OS: Linux
Status: UNCONFIRMED
Severity: bug
Priority: wish
Component: Mercurial
Assignee: bugzilla at mercurial-scm.org
Reporter: cedric.krier at b2ck.com
CC: mercurial-devel at mercurial-scm.org
Python Version: ---
When running `rhg status` (or any other command) with Python 3.12, I got this
traceback:
Traceback (most recent call last):
File "/usr/lib/python-exec/python3.12/hg", line 57, in <module>
from mercurial import dispatch
File "/usr/lib/python3.12/site-packages/mercurial/dispatch.py", line 24, in
<module>
from . import (
File "/usr/lib/python3.12/site-packages/mercurial/cmdutil.py", line 36, in
<module>
from . import (
File "/usr/lib/python3.12/site-packages/mercurial/bookmarks.py", line 17, in
<module>
from . import (
File "/usr/lib/python3.12/site-packages/mercurial/scmutil.py", line 27, in
<module>
from . import (
File "/usr/lib/python3.12/site-packages/mercurial/copies.py", line 16, in
<module>
from . import (
File "/usr/lib/python3.12/site-packages/mercurial/match.py", line 17, in
<module>
from . import (
File "/usr/lib/python3.12/site-packages/mercurial/pathutil.py", line 23, in
<module>
rustdirs = policy.importrust('dirstate', 'Dirs')
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.12/site-packages/mercurial/policy.py", line 138, in
importrust
mod = _importfrom('rustext', modname)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.12/site-packages/mercurial/policy.py", line 61, in
_importfrom
pkg = __import__(pkgname, globals(), fakelocals, [modname], level=1)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
ImportError:
/usr/lib/python3.12/site-packages/mercurial/rustext.cpython-312-x86_64-linux-gnu.so:
undefined symbol: _PyUnicode_Ready
Using the same installation but for Python 3.11 does not crash.
--
You are receiving this mail because:
You are on the CC list for the bug.
More information about the Mercurial-devel
mailing list