Sorry for the delay on updating--it looks like v1.15 changed the build/install system quite a bit and I need to iron out those issues.
Search Criteria
Package Details: katrain 1.14.0-1
Package Actions
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: | algebro |
Last Packager: | algebro |
Votes: | 9 |
Popularity: | 0.012593 |
First Submitted: | 2020-08-06 13:58 (UTC) |
Last Updated: | 2023-07-12 20:26 (UTC) |
Dependencies (15)
- cython (cython-gitAUR, cython0AUR)
- libzip (libzip-gitAUR)
- python (python37AUR, python311AUR, python310AUR)
- python-certifi
- python-chardet
- python-docutils
- python-idna
- python-kivy
- python-kivymdAUR (python-kivymd-gitAUR)
- python-numpy (python-numpy-flameAUR, python-numpy-gitAUR, python-numpy1AUR, python-numpy-mkl-tbbAUR, python-numpy-mklAUR, python-numpy-mkl-binAUR)
- python-pillow (python-pillow-gitAUR)
- python-pygame (python-pygame-gitAUR)
- python-pygments
- python-requests
- python-urllib3
Required by (0)
Sources (1)
algebro commented on 2024-08-25 18:48 (UTC)
xyproto commented on 2024-07-15 12:27 (UTC)
As an alternative way of installing and running Katrain, this might work:
pacman -S python-pipx
pipx install katrain
~/.local/bin/katrain
smradlev commented on 2024-02-27 10:21 (UTC)
About the issue I reported earlier: I installed katrain using pipx install katrain, and now it works. Not sure what the difference is between the pip version and the aur version.
smradlev commented on 2024-02-24 20:13 (UTC)
After a recent update of my system (manjaro), Katrain freezes right after I try to place a stone on the board. Tried reinstalling, then deleting the .katrain folder, as well as downgrading the only dependency that was upgraded in the last update (python-certifi), but nothing seems to work. Any help would be appreciated. Thank you!
porl commented on 2024-01-13 06:27 (UTC)
I tried to pin the depends version of python-kivymd to 0.104.1 as mentioned but I got an error stating python-kivymd=0.104.1 as a missing dependency.
I assume I've just done something stupid, but can anyone show the relevant section of the PKGBUILD file for reference?
mocramis commented on 2023-05-29 10:18 (UTC)
[...]you can modify the PKGBUILD to build 0.104.2 instead
Note that only 0.104.1 works.
With 0.104.2, you get the following MRO errors:
Traceback (most recent call last):
File "/bin/katrain", line 33, in <module>
sys.exit(load_entry_point('KaTrain==1.12.3', 'console_scripts', 'katrain')())
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/bin/katrain", line 25, in importlib_load_entry_point
return next(matches).load()
^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/importlib/metadata/__init__.py", line 202, in load
module = import_module(match.group('module'))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/importlib/__init__.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "<frozen importlib._bootstrap>", line 1206, in _gcd_import
File "<frozen importlib._bootstrap>", line 1178, in _find_and_load
File "<frozen importlib._bootstrap>", line 1149, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 690, in _load_unlocked
File "<frozen importlib._bootstrap_external>", line 940, in exec_module
File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
File "/usr/lib/python3.11/site-packages/katrain/__main__.py", line 82, in <module>
from katrain.gui.popups import (
File "/usr/lib/python3.11/site-packages/katrain/gui/popups.py", line 46, in <module>
from katrain.gui.kivyutils import (
File "/usr/lib/python3.11/site-packages/katrain/gui/kivyutils.py", line 110, in <module>
class SizedButton(LeftButtonBehavior, RectangularRippleBehavior, BasePressedButton, BaseFlatButton, BackgroundMixin):
TypeError: Cannot create a consistent method resolution
order (MRO) for bases ButtonBehavior, RectangularRippleBehavior, BasePressedButton, BaseFlatButton, BackgroundMixin
algebro commented on 2023-04-16 20:10 (UTC) (edited on 2023-04-16 20:10 (UTC) by algebro)
What version of python-kivymd do you have installed? The current version in the arch repos (1.x) is incompatible with katrain unfortunately--you can modify the PKGBUILD to build 0.104.2 instead
MoonSwan commented on 2023-04-15 17:29 (UTC)
Seems that I spoke far too soon. I tried running Katrain and it simply will not load. I ran it with the debug option enabled and this was the output:
katrain -d
[INFO ] [Logger ] Record log in /home/raine/.kivy/logs/kivy_23-04-15_5.txt
[INFO ] [Kivy ] v2.1.0
[INFO ] [Kivy ] Installed at "/usr/lib/python3.10/site-packages/kivy/__init__.py"
[INFO ] [Python ] v3.10.10 (main, Mar 5 2023, 22:26:53) [GCC 12.2.1 20230201]
[INFO ] [Python ] Interpreter at "/usr/bin/python"
[INFO ] [Logger ] Purge log fired. Processing...
[INFO ] [Logger ] Purge finished!
[INFO ] [Factory ] 189 symbols loaded
[DEBUG ] [Cache ] register <kv.resourcefind> with limit=None, timeout=60
[DEBUG ] [Cache ] register <kv.lang> with limit=None, timeout=None
[DEBUG ] [Cache ] register <kv.image> with limit=None, timeout=60
[DEBUG ] [Cache ] register <kv.atlas> with limit=None, timeout=None
[INFO ] [Image ] Providers: img_tex, img_dds, img_sdl2, img_pil (img_ffpyplayer ignored)
[DEBUG ] [Cache ] register <kv.texture> with limit=1000, timeout=60
[DEBUG ] [Cache ] register <kv.shader> with limit=1000, timeout=3600
[INFO ] [Clipboard ] Provider: gtk3(['clipboard_xclip', 'clipboard_xsel', 'clipboard_dbusklipper'] ignored)
[CRITICAL] [Cutbuffer ] Unable to find any valuable Cutbuffer provider. Please enable debug logging (e.g. add -d if running from the command line, or change the log level in the config) and re-run your app to identify potential causes
xclip - FileNotFoundError: [Errno 2] No such file or directory: 'xclip'
File "/usr/lib/python3.10/site-packages/kivy/core/__init__.py", line 59, in core_select_lib
mod = importlib.__import__(name='{2}.{0}.{1}'.format(
File "<frozen importlib._bootstrap>", line 1129, in __import__
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/kivy/core/clipboard/clipboard_xclip.py", line 17, in <module>
p = subprocess.Popen(['xclip', '-version'], stdout=subprocess.PIPE,
File "/usr/lib/python3.10/subprocess.py", line 971, in __init__
self._execute_child(args, executable, preexec_fn, close_fds,
File "/usr/lib/python3.10/subprocess.py", line 1847, in _execute_child
raise child_exception_type(errno_num, err_msg, err_filename)
xsel - FileNotFoundError: [Errno 2] No such file or directory: 'xsel'
File "/usr/lib/python3.10/site-packages/kivy/core/__init__.py", line 59, in core_select_lib
mod = importlib.__import__(name='{2}.{0}.{1}'.format(
File "<frozen importlib._bootstrap>", line 1129, in __import__
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/kivy/core/clipboard/clipboard_xsel.py", line 16, in <module>
p = subprocess.Popen(['xsel'], stdout=subprocess.PIPE)
File "/usr/lib/python3.10/subprocess.py", line 971, in __init__
self._execute_child(args, executable, preexec_fn, close_fds,
File "/usr/lib/python3.10/subprocess.py", line 1847, in _execute_child
raise child_exception_type(errno_num, err_msg, err_filename)
[DEBUG ] [Text ] Provider <pango> ignored by config
[INFO ] [Text ] Provider: sdl2(['text_pango'] ignored)
[INFO ] [Window ] Provider: sdl2
[INFO ] [GL ] Using the "OpenGL" graphics system
[INFO ] [GL ] Backend used <sdl2>
[INFO ] [GL ] OpenGL version <b'4.6 (Compatibility Profile) Mesa 23.0.2'>
[INFO ] [GL ] OpenGL vendor <b'Intel'>
[INFO ] [GL ] OpenGL renderer <b'Mesa Intel(R) Xe Graphics (TGL GT2)'>
[INFO ] [GL ] OpenGL parsed version: 4, 6
[INFO ] [GL ] Shading version <b'4.60'>
[INFO ] [GL ] Texture max size <16384>
[INFO ] [GL ] Texture max units <32>
[DEBUG ] [Shader ] Fragment compiled successfully
[DEBUG ] [Shader ] Vertex compiled successfully
[DEBUG ] [ImageSDL2 ] Load </usr/lib/python3.10/site-packages/kivy/data/glsl/default.png>
[INFO ] [Window ] auto add sdl2 input provider
[INFO ] [Window ] virtual keyboard not allowed, single mode, not docked
[INFO ] [KivyMD ] Release 1.1.1, git-Unknown, 2023-04-15 (installed at "/usr/lib/python3.10/site-packages/kivymd/__init__.py")
Traceback (most recent call last):
File "/usr/bin/katrain", line 33, in <module>
sys.exit(load_entry_point('KaTrain==1.12.3', '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 171, 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 82, in <module>
from katrain.gui.popups import (
File "/usr/lib/python3.10/site-packages/katrain/gui/popups.py", line 23, in <module>
from kivymd.uix.selectioncontrol import MDCheckbox
File "/usr/lib/python3.10/site-packages/kivymd/uix/selectioncontrol/__init__.py", line 1, in <module>
from .selectioncontrol import MDCheckbox, MDSwitch, Thumb # NOQA F401
File "/usr/lib/python3.10/site-packages/kivymd/uix/selectioncontrol/selectioncontrol.py", line 200, in <module>
from kivymd.uix.label import MDIcon
File "/usr/lib/python3.10/site-packages/kivymd/uix/label/__init__.py", line 1, in <module>
from .label import MDIcon, MDLabel # NOQA F401
File "/usr/lib/python3.10/site-packages/kivymd/uix/label/label.py", line 261, in <module>
with open(
FileNotFoundError: [Errno 2] No such file or directory: '/usr/lib/python3.10/site-packages/kivymd/uix/label/label.kv'
MoonSwan commented on 2023-04-15 02:30 (UTC) (edited on 2023-04-15 02:32 (UTC) by MoonSwan)
@bradwood & @alegebro, yes it builds just fine now and thank you for your work. I'm sure many of us appreciate it. :) I know I certainly do (despite not being able to beat Katrain even on a 9x9 as yet)!
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.
Pinned Comments
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.