Fedora Account System
Red Hat Associate
Red Hat Customer
After upgrading python to 3.12.5 (from testin), mercurial does not work. E.g.: $ hg --version Traceback (most recent call last): File "/usr/bin/hg", line 57, in <module> from mercurial import dispatch File "<frozen importlib._bootstrap>", line 1360, in _find_and_load File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked File "<frozen importlib._bootstrap>", line 935, in _load_unlocked File "/usr/lib64/python3.12/site-packages/hgdemandimport/demandimportpy3.py", line 52, in exec_module super().exec_module(module) File "<frozen importlib.util>", line 257, in exec_module File "<frozen importlib._bootstrap>", line 1360, in _find_and_load File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked File "<frozen importlib._bootstrap>", line 935, in _load_unlocked File "/usr/lib64/python3.12/site-packages/hgdemandimport/demandimportpy3.py", line 52, in exec_module super().exec_module(module) File "<frozen importlib.util>", line 267, in exec_module AttributeError: partially initialized module 'threading' has no attribute 'RLock' (most likely due to a circular import Reproducible: Always Expected Results: after downgrading, it works again: $ sudo dnf downgrade python [sudo] password for XXXXXXXX: Last metadata expiration check: 0:04:55 ago on Mon 19 Aug 2024 06:23:47 PM EDT. Dependencies resolved. ==================================================================================================================================================================================================================== Package Architecture Version Repository Size ==================================================================================================================================================================================================================== Downgrading: python-unversioned-command noarch 3.12.4-1.fc40 updates 11 k python3 x86_64 3.12.4-1.fc40 updates 27 k python3-libs x86_64 3.12.4-1.fc40 updates 9.1 M python3-tkinter x86_64 3.12.4-1.fc40 updates 410 k $ hg --version Mercurial Distributed SCM (version 6.7.4) (see https://mercurial-scm.org for more information) Copyright (C) 2005-2023 Olivia Mackall and others This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
This is a duplicate of bug 2299346, except for F40 since Python 3.12 had similar backports. So the same backport should be applied to mercurial on F40, and the workaround from that bug should also work.
Thanks! I can verify that mercurial-6.8.1-2 (rpm rebuild from fedora 41) works with python-3.12.5 $ hg --version Mercurial Distributed SCM (version 6.8.1) (see https://mercurial-scm.org for more information) Copyright (C) 2005-2024 Olivia Mackall and others This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. $ python3 --version Python 3.12.5 Dmitri. --
Sync Fedora 40 with Fedora 41 to fix mercurial with Python 3.12.5: https://src.fedoraproject.org/rpms/mercurial/pull-request/20
[F39] Exclude threading and warnings from demandimport: https://src.fedoraproject.org/rpms/mercurial/pull-request/21
FEDORA-2024-1b8e4dd88f (mercurial-6.7.4-3.fc40) has been submitted as an update to Fedora 40. https://bodhi.fedoraproject.org/updates/FEDORA-2024-1b8e4dd88f
FEDORA-2024-1b8e4dd88f has been pushed to the Fedora 40 testing repository. Soon you'll be able to install the update with the following command: `sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2024-1b8e4dd88f` You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2024-1b8e4dd88f See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.
FEDORA-2024-1b8e4dd88f (mercurial-6.7.4-3.fc40) has been pushed to the Fedora 40 stable repository. If problem still persists, please make note of it in this bug report.
FEDORA-2024-cd388c945c (mercurial-6.5.3-3.fc39) has been submitted as an update to Fedora 39. https://bodhi.fedoraproject.org/updates/FEDORA-2024-cd388c945c
FEDORA-2024-cd388c945c has been pushed to the Fedora 39 testing repository. Soon you'll be able to install the update with the following command: `sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2024-cd388c945c` You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2024-cd388c945c See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.
Confirm that the patch FEDORA-2024-cd388c945c resolves the issue with 3.12.5 on F39 $ hg --version Mercurial Distributed SCM (version 6.5.3) (see https://mercurial-scm.org for more information) Copyright (C) 2005-2023 Olivia Mackall and others This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOS
FEDORA-2024-cd388c945c (mercurial-6.5.3-3.fc39) has been pushed to the Fedora 39 stable repository. If problem still persists, please make note of it in this bug report.