ImportError: cannot import name 'agettext' from 'tortoisehg.util.i18n'

9 views
Skip to first unread message

Andry Rakoto

unread,
Mar 20, 2024, 11:07:59 AMMar 20
to TortoiseHg Developers
using snap or apt or .tar.gz, this error appear
I Use ubuntu 22.04 and mercurial 6.6.3 and python 3.10
Traceback (most recent call last):
  File "/home/andry/Téléchargements/tortoisehg-6.6.3/./thg", line 163, in <module>
    tortoisehg.hgqt.run.run()
  File "/usr/lib/python3.10/importlib/util.py", line 247, in __getattribute__
    self.__spec__.loader.exec_module(self)
  File "<frozen importlib._bootstrap_external>", line 883, in exec_module
  File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
  File "/home/andry/Téléchargements/tortoisehg-6.6.3/tortoisehg/hgqt/run.py", line 47, in <module>
    from tortoisehg.util.i18n import agettext, _
ImportError: cannot import name 'agettext' from 'tortoisehg.util.i18n' (/home/andry/Téléchargements/tortoisehg-6.6.3/tortoisehg/util/i18n.py)

Matt Harbison

unread,
Mar 22, 2024, 12:01:27 AMMar 22
to TortoiseHg Developers
I've not seen this before.  Does setting HGDEMANDIMPORT=disable in the environment help?
Reply all
Reply to author
Forward
0 new messages