pymorphy2 icon indicating copy to clipboard operation
pymorphy2 copied to clipboard

Ошибка в python3.12

Open satels opened this issue 1 year ago • 1 comments

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'?

satels avatar Oct 29 '24 16:10 satels

См. #174

tldr: pymorphy2 заброшен, но есть форк (https://github.com/no-plagiarism/pymorphy3), в котором есть поддержка Python 3.11 и 3.12

insolor avatar Oct 29 '24 16:10 insolor