Fresh install and I get (without the stack trace):
File "/usr/lib/python3.10/site-packages/katrain/gui/badukpan.py", line 4, in <module>
import numpy as np
ModuleNotFoundError: No module named 'numpy'
Should python-numpy be added as a dependency? After installing it, Katrain seems to run normally. Ah, looks like the dependency was just added - https://github.com/sanderland/katrain/commit/922af7f03b09825273bf86952cbc3281afd82ae7
Pinned Comments
algebro commented on 2024-12-07 15:40 (UTC) (edited on 2024-12-07 15:45 (UTC) by algebro)
I'm afraid I'm going to have to orphan this package as the upstream maintainer has made katrain exceedingly difficult to package in a way that aligns with AUR best practices (at least, it's beyond my skill/ability to do so). Using pip to install packages within a pkgbuild is not the "proper" way to do it, but the setuptools workflow has been removed making pip the only method of installation AFAICT.
For now it looks like installing directly from upstream using pip and/or poetry is probably the best way to go until someone with more knowledge of how to package build systems like this is able to take over.
algebro commented on 2023-04-14 14:40 (UTC)
Just an update on kivymd, it looks like the katrain maintainer started work on bumping the kivymd version to 1.x but the branch has been idle since September. It would be a big help to the project to contribute if anyone has the skills or interest!
For now, the workaround unfortunately is to manually downgrade to python-kivymd 0.104.2/0.104.1.