Package Details: katrain 1.14.0-1

Git Clone URL: https://aur.archlinux.org/katrain.git (read-only, click to copy)
Package Base: katrain
Description: A tool for analyzing and playing go with AI feedback from KataGo.
Upstream URL: https://github.com/sanderland/katrain
Keywords: ai baduk go
Licenses: MIT
Submitter: algebro
Maintainer: None
Last Packager: algebro
Votes: 9
Popularity: 0.006691
First Submitted: 2020-08-06 13:58 (UTC)
Last Updated: 2023-07-12 20:26 (UTC)

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.

Latest Comments

« First ‹ Previous 1 2 3 4 5 Next › Last »

Ziusudra commented on 2022-07-11 01:57 (UTC)

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

xyproto commented on 2022-06-12 11:58 (UTC)

After trying python-kivymd 0.104.1, python-kivymd 0.104.2 and python-kivymd-git 0.104.2.r662.g286ee784-1, I can confirm that there are currently issues with katrain in combination with all of the above.

algebro commented on 2022-05-17 15:35 (UTC)

Thanks for the heads up--it looks like it could be a bug in either katrain or kivy or both:

https://github.com/sanderland/katrain/issues/499

Support for Python 3.10 seems shaky, which unfortunately isn't that uncommon. I'll follow those threads and see if any more promising workarounds (besides patching kivy itself) surface.

beej commented on 2022-05-17 01:58 (UTC)

When I try to load an SGF, the file chooser dialog is devoid of any filenames, and an error shows up on the console:

ERROR: Exception AttributeError: "module 'collections' has no attribute 'Callable'"

I know this is an upstream problem with Kivy, but I fixed it by editing line 668 of

/usr/lib/python3.10/site-packages/kivy/uix/filechooser.py

to read (adding ".abc")

if isinstance(filt, collections.abc.Callable):

I realize this is completely hackish, but if it happens to anyone else and you just want to get going, here we are. Or if there's a more proper fix, I'd like to know it.

algebro commented on 2022-02-28 20:44 (UTC)

@MoonSwan do you have OpenCL installed? For AMD it should be opencl-amd and for nvidia it should be opencl-nvidia I believe. If installing that fixes it, let me know and I'll add opencl-driver as an optional dependency

MoonSwan commented on 2022-02-26 05:24 (UTC)

Thank you for making this program available. I do have a problem though.

When I tell the AI to use OpenCl i get this error in my Info/Details box on the lower right corner of the program when it's open:

/usr/lib/python3.10/site-packages/katrain/KataGo/katago:error while loading shared libraries: libOpenCL.so.1: cannot open shared object file: No such file or directory.

Also when building it the compiler spit out a lot of errors about insecure libraries for python. Not sure if that can be helped. I suspect that's a problem for the developer of this program.

maep commented on 2022-01-03 16:34 (UTC)

@algebro Thanks, that fixed it.

algebro commented on 2022-01-03 15:16 (UTC) (edited on 2022-01-03 15:17 (UTC) by algebro)

@maep have you already reinstalled katrain, python-kivymd, and python-dataclasses since you upgraded to python 3.10? On major python updates you have to rebuild all of your AUR python packages

maep commented on 2022-01-03 15:11 (UTC)

crashes on start

Traceback (most recent call last):
  File "/usr/bin/katrain", line 33, in <module>
    sys.exit(load_entry_point('KaTrain==1.10.1', 'console_scripts', 'katrain')())
  File "/usr/bin/katrain", line 25, in importlib_load_entry_point
    return next(matches).load()
  File "/usr/lib/python3.10/importlib/metadata/__init__.py", line 162, in load
    module = import_module(match.group('module'))
  File "/usr/lib/python3.10/importlib/__init__.py", line 126, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 1050, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1027, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1006, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 688, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 883, in exec_module
  File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
  File "/usr/lib/python3.10/site-packages/katrain/__main__.py", line 71, in <module>
    from katrain.gui.popups import (
  File "/usr/lib/python3.10/site-packages/katrain/gui/popups.py", line 21, in <module>
    from kivymd.app import MDApp
ModuleNotFoundError: No module named 'kivymd'

E3LDDfrK commented on 2021-07-13 16:22 (UTC)

Personally, I tried your .desktop file, and it works for me. If it's a problem after building, perhaps it's a problem with the PKGBUILD when you try to install the .desktop file too.

Quickest solution would be asking the AUR subforum I guess.