Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 937965 - dev-vcs/mercurial-6.8: AttributeError: partially initialized module 'threading' has no attribute 'RLock' (most likely due to a circular import)
Summary: dev-vcs/mercurial-6.8: AttributeError: partially initialized module 'threadin...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Cédric Krier
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 938128
  Show dependency tree
 
Reported: 2024-08-15 08:49 UTC by Miroslav Šulc
Modified: 2024-08-18 20:29 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Miroslav Šulc gentoo-dev 2024-08-15 08:49:47 UTC
this error occurs when trying to emerge hugin-9999 which uses mercurial:

>>> Emerging (1 of 1) media-gfx/hugin-9999::gentoo
 * 
 * Requested wxWidgets:        3.2-gtk3
 * Using wxWidgets:            gtk3-unicode-3.2-gtk3
 * 
>>> Unpacking source...
 * Updating /var/cache/distfiles/hg-src/hugin-hugin/hugin from http://hg.code.sf.net/p/hugin/hugin
Traceback (most recent call last):
  File "/usr/lib/python-exec/python3.12/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.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/lib/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)


i also tried mercurial-6.7.4 but the result is the same as with 6.8.
Comment 1 Larry the Git Cow gentoo-dev 2024-08-15 13:00:06 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=22538368699394fd18dbb50187171606dddf4bac

commit 22538368699394fd18dbb50187171606dddf4bac
Author:     Cédric Krier <cedk@gentoo.org>
AuthorDate: 2024-08-15 12:59:26 +0000
Commit:     Cédric Krier <cedk@gentoo.org>
CommitDate: 2024-08-15 12:59:58 +0000

    dev-vcs/mercurial: add 6.8.1, drop 6.8
    
    Closes: https://bugs.gentoo.org/937965
    Signed-off-by: Cédric Krier <cedk@gentoo.org>

 dev-vcs/mercurial/Manifest                         | 22 +++++++++++++++++++++-
 ...mercurial-6.8.ebuild => mercurial-6.8.1.ebuild} | 20 ++++++++++++++++++++
 2 files changed, 41 insertions(+), 1 deletion(-)
Comment 2 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2024-08-18 02:35:54 UTC
*** Bug 938128 has been marked as a duplicate of this bug. ***