Hello,
Just tried it using the following commands:
apt update
apt install mercurial
hg debuginstall
checking encoding (utf-8)...
checking Python executable (/usr/bin/python3)
checking Python implementation (CPython)
checking Python version (3.12.3)
checking Python lib (/usr/lib/python3.12)...
checking Python security support (sni,tls1.0,tls1.1,tls1.2)
checking Rust extensions (missing)
checking Mercurial version (6.7.2)
checking Mercurial custom build ()
checking module policy (c)
checking installed modules (/usr/lib/python3/dist-packages/mercurial)...
checking registered compression engines (bz2, bz2truncated, none, zlib, zstd)
checking available compression engines (bz2, bz2truncated, none, zlib, zstd)
checking available compression engines for wire protocol (zstd, zlib, bz2, none)
checking "re2" regexp engine (missing)
checking templates (/usr/lib/python3/dist-packages/mercurial/templates)...
checking default template
(/usr/lib/python3/dist-packages/mercurial/templates/map-cmdline.default)
checking commit editor... (sensible-editor)
checking username...
[...]
python3 --version
Python 3.12.3
Then, I used ubuntu-dev-tools to update to the latest python3.12.7:
apt install ubuntu-dev-tools
pull-lp-debs python3-defaults
pull-lp-debs python3.12
pull-lp-debs openssl
apt install ./python3_3.12.7-1_amd64.deb ./python3-minimal_3.12.7-1_amd64.deb
./libpython3-stdlib_3.12.7-1_amd64.deb
./libpython3.12-stdlib_3.12.7-3_amd64.deb
./python3.12-minimal_3.12.7-3_amd64.deb ./python3.12_3.12.7-3_amd64.deb
./libpython3.12-minimal_3.12.7-3_amd64.deb
./libssl3t64_3.3.1-2ubuntu2_amd64.deb ./libpython3.12t64_3.12.7-3_amd64.deb
I can confirm the bug:
hg debuginstall
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/lib/python3/dist-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/lib/python3/dist-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)
Adding noble-proposed to sources and updating mercurial fixed the issue:
apt update
apt install mercurial/noble-proposed
hg debuginstall
checking encoding (utf-8)...
checking Python executable (/usr/bin/python3)
checking Python implementation (CPython)
checking Python version (3.12.7)
checking Python lib (/usr/lib/python3.12)...
checking Python security support (sni,tls1.0,tls1.1,tls1.2)
checking Rust extensions (missing)
checking Mercurial version (6.7.2)
checking Mercurial custom build ()
checking module policy (c)
checking installed modules (/usr/lib/python3/dist-packages/mercurial)...
checking registered compression engines (bz2, bz2truncated, none, zlib, zstd)
checking available compression engines (bz2, bz2truncated, none, zlib, zstd)
checking available compression engines for wire protocol (zstd, zlib, bz2, none)
checking "re2" regexp engine (missing)
checking templates (/usr/lib/python3/dist-packages/mercurial/templates)...
checking default template
(/usr/lib/python3/dist-packages/mercurial/templates/map-cmdline.default)
checking commit editor... (sensible-editor)
checking username...
[...]
python3 --version
Python 3.12.7
I can confirm the bug is solved using version 6.7.2-1ubuntu2.2
** Tags removed: verification-needed-noble
** Tags added: verification-done-noble
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2076152
Title:
SRU: add threading to the list of modules which cannot be lazy
imported
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/mercurial/+bug/2076152/+subscriptions
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs