Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

using pymorphy3 instead of pymorph2? #620

Open
emfox opened this issue Jan 23, 2025 · 1 comment
Open

using pymorphy3 instead of pymorph2? #620

emfox opened this issue Jan 23, 2025 · 1 comment
Labels

Comments

@emfox
Copy link
Contributor

emfox commented Jan 23, 2025

I am packaging new version of pyglossary for Debian, and found new dependency of what called 'pymorphy2', that not in debian, so I decide to package it too, but after dig into the homepage, I found this:
pymorphy2/pymorphy2#174
It seems pymorphy2 do not work on python 3.11 and later, so do we have to remove this dependency, or switch to pymorphy3?

@ilius
Copy link
Owner

ilius commented Jan 23, 2025

I actually didn't know we have this dependency.
But it's only for Russian indexes for AppleDict writer and they have to enable option --write-options=indexes=ru for that, which raises an exception for me on python3.12 (fixed on PR pymorphy2/pymorphy2#173).
A simple find/replace with pymorphy3 fixes the exception.

But I can't confirm that it's working. I don't have Mac, or know how Russian indexing works.

Let's just remove pymorphy2 dependency from Debian package for now.

This is the problem with putting everything in one package: All users will have to install all dependencies, most of which they do not need.
Generally, Debian breaks these into several packages (by language or feature).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants