Article 52ERB Mercurial broke after today's M2Crypto update

Mercurial broke after today's M2Crypto update

by
tfonz
from LinuxQuestions.org on (#52ERB)
Code:$ hg
Traceback (most recent call last):
File "/usr/bin/hg", line 43, in <module>
dispatch.run()
File "/usr/lib64/python3.8/importlib/util.py", line 245, in __getattribute__
self.__spec__.loader.exec_module(self)
File "<frozen importlib._bootstrap_external>", line 783, in exec_module
File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
File "/usr/lib64/python3.8/site-packages/mercurial/dispatch.py", line 21, in <module>
from .i18n import _
File "/usr/lib64/python3.8/importlib/util.py", line 245, in __getattribute__
self.__spec__.loader.exec_module(self)
File "/usr/lib64/python3.8/site-packages/mercurial/i18n.py", line 50, in <module>
datapath = pycompat.fsdecode(resourceutil.datapath)
File "/usr/lib64/python3.8/importlib/util.py", line 245, in __getattribute__
self.__spec__.loader.exec_module(self)
File "/usr/lib64/python3.8/site-packages/mercurial/utils/resourceutil.py", line 63, in <module>
resources.open_binary # pytype: disable=module-attr
File "/usr/lib64/python3.8/importlib/util.py", line 245, in __getattribute__
self.__spec__.loader.exec_module(self)
File "/usr/lib64/python3.8/importlib/resources.py", line 11, in <module>
from typing import Iterable, Iterator, Optional, Set, Union # noqa: F401
File "/usr/lib64/python3.8/importlib/util.py", line 245, in __getattribute__
self.__spec__.loader.exec_module(self)
File "/usr/lib64/python3.8/site-packages/typing.py", line 782, in <module>
AnyStr = TypeVar('AnyStr', bytes, unicode)
NameError: name 'unicode' is not definedThe last file in the trace (/usr/lib64/python3.8/site-packages/typing.py) is part of M2Crypto, which was updated today.

hg is using the python3 interpreter (#!/usr/bin/python3), but "unicode" used in typing.py is python2 only (renamed to 'str' in python3).

Did I break my installation, or is there a problem with the packages?latest?d=yIl2AUoC8zA latest?i=zIry_m6kZVw:xoC5rSXN_z8:F7zBnMy latest?i=zIry_m6kZVw:xoC5rSXN_z8:V_sGLiP latest?d=qj6IDK7rITs latest?i=zIry_m6kZVw:xoC5rSXN_z8:gIN9vFwzIry_m6kZVw
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments