pymorphy2
pymorphy2 copied to clipboard
Ошибка в python3.12
https://stackoverflow.com/questions/7446187/no-module-named-pkg-resources
python3.12/site-packages/pymorphy2/units/base.py:76:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
cls = <class 'pymorphy2.units.abbreviations.AbbreviatedFirstNameAnalyzer'>
@classmethod
def _get_param_names(cls):
"""
Get parameter names for the analyzer unit.
It works by introspecting `__init__` arguments.
`__init__` method must not use *args.
"""
if cls.__init__ is object.__init__:
return []
> args, varargs, kw, default = inspect.getargspec(cls.__init__)
E AttributeError: module 'inspect' has no attribute 'getargspec'. Did you mean: 'getargs'?
См. #174
tldr: pymorphy2 заброшен, но есть форк (https://github.com/no-plagiarism/pymorphy3), в котором есть поддержка Python 3.11 и 3.12