Katrain fails with python-kivymd 1.1.1

katrain is incompatible with python-kivymd 1.1.1

Downgrading the package is a workaround. I modified the build script to downgrade to 0.104.1 as such:

# Maintainer: EnderPi <samueltlewis27 at gmail.com>
# Contributor: lazant <a.l.i.c.e at outlook.com>
pkgdesc="KivyMD is a collection of Material Design compliant widgets for use with Kivy, a framework for cross-platform, touch-enabled graphical applications."

build() {
  cd "${srcdir}/KivyMD-${pkgver}"
  python setup.py build

package() {
  cd "${srcdir}/KivyMD-${pkgver}"
  python setup.py install --root="${pkgdir}" --optimize=1 --skip-build
  install -D -m644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"

edit: I’m providing this because it took quite a while to troubleshoot. The changes to the current build script is the version number with the corresponding md5sum.

There is a pinned comment from April 14, 2023 that says to downgrade to python-kivymd 0.104.2/0.104.1. You could have saved yourself a lot of time by checking the comments on the AUR page first when running into issues.

There seems to be also another issue, likely kivy version. I’m not quite sure which update broke it.

Correction: 0.104.2 does not work. 0.104.1 does.

katrain started to freeze also with kivymd 0.104.1, but the freeze was more likely related to kivy SoundLoader. Anyway, with several small updates I was able to get katrain running with kivymd 1.1.1 with the latest kivy, and I made (a rough) PR including those.