Closed ashprice closed 8 months ago
I just downloaded a fresh "zh_core_web_lg" and it works fine for me (ubuntu, python 3.9), so maybe it's an arch thing?
I basically copy-and-pasted from the Ankimorphs spaCy directions [https://mortii.github.io/anki-morphs/user_guide/installation/installing-spacy.html#:~:text=macOS-,First%2C%20we%20need%20to%20have%20Python%203.9%20on%20our%20system.%20Go,Now%20those%20spaCy%20models%20should%20be%20available%20as%20morphemizers%20in%20AnkiMorphs!,-Linux] , downloaded "zh_core_web_lg", and had no problems.
I'm using: Version 23.12.1 (1a1d4d54) Python 3.9.15 Qt 6.5.3 PyQt 6.5.3
I made an obvious mistake - I forgot to specify the correct version for spacy. I guess I assumed because the package is tied to spacy that the current version would work? Either that or that wasn't the issue, but reinstalling everything one more time fixed it somehow.
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.
Previously, I never saw this, when using Chinese models (I have just a handful of cards). I'm not sure if this is an issue stemming from something changing in spacy or ankimorphs, or my local system, but I now get an error where before I did not.
This issue is kind of just a PSA, I guess - I'm not sure it even belongs here, but I am wondering if anyone else has had it. I think the issue is that the models are missing, but I don't know enough about python packaging to know where to put them, and I get the same errors even if using the pip package that is meant to have the models.
To Reproduce Steps to reproduce the behavior:
Expected behavior Successful recalc.
Desktop (please complete the following information): OS: Arch linux (6.7.9-arch1-1). Ankimorphs version: 1.3.0.
In trying to solve this I have:
As for (4), always the same result:
I am assuming I am making some really dumb mistake like importing the model wrong, but I can't figure this out. I should maybe make an issue on the spacy-pkuseg repo, but I haven't as of yet because I am kind of guessing this might be user error - can anyone else reproduce this?
For now I'm just gonna ignore my handful of cards :)
Thanks for your time. :+1: