Yes, sdl2_mixer was also installed.
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)
aulavik commented on 2020-11-26 03:51 (UTC)
algebro commented on 2020-11-26 03:41 (UTC) (edited on 2020-11-26 03:49 (UTC) by algebro)
Do you have sdl2_mixer
as well? They should be pulled in by python-kivy
but I'm curious why you didnt get the message saying audio_sdl2 was loaded. sanderland might also have a better idea of what's going on.
Can you paste your debug log katrain -d
after running the version you installed with pip3? I'd like to track down any dependencies I've missed if possible.
Thanks!
aulavik commented on 2020-11-26 03:38 (UTC) (edited on 2020-11-26 03:45 (UTC) by aulavik)
SDL2 is already installed.
extra/sdl2 2.0.12-3 (727.1 KiB 3.1 MiB) (Installed)
I installed using the following instead:
pip3 install -U katrain
It now works, except for audio, which I still need to figure out.
algebro commented on 2020-11-26 03:22 (UTC) (edited on 2020-11-26 03:38 (UTC) by algebro)
Can you try installing the sdl2
package and see if that helps? That error looks like it occurs when kivy tries to load audio files (using audio_sdl2) and cannot. I have the following in my log before it loads the user config, and audio works fine for me:
[INFO ] [Audio ] Providers: audio_sdl2 (audio_gstplayer, audio_ffpyplayer ignored)
aulavik commented on 2020-11-26 03:15 (UTC) (edited on 2020-11-26 03:20 (UTC) by aulavik)
It took a while for me to get Katrain 1.5 running on my Lenovo E14 with Manjaro. Audio still didn't work.
Upgraded to 1.6 few days ago, and it crashed when I tried to run it. Uninstalled and reinstalled, but still crashed.
Turned the debug switch on, katrain -d, and saw it was complaining about missing xclip, so I installed xclip. However, it still crashed when I ran the katrain with debugger on.
So I'm not sure if it's the issue with katrain or the install package.
NB: Cross-posted this issue at https://github.com/sanderland/katrain/
$ katrain -d
[INFO ] [Logger ] Record log in /home/slim/.kivy/logs/kivy_20-11-26_10.txt
[INFO ] [Kivy ] v2.0.0rc2, git-Unknown, 20200808
[INFO ] [Kivy ] Installed at "/home/slim/.local/lib/python3.8/site-packages/kivy/__init__.py"
[INFO ] [Python ] v3.8.6 (default, Sep 30 2020, 04:00:38)
[GCC 10.2.0]
[INFO ] [Python ] Interpreter at "/usr/bin/python"
[INFO ] [Factory ] 184 symbols loaded
[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
pygame 2.0.0 (SDL 2.0.12, python 3.8.6)
Hello from the pygame community. https://www.pygame.org/contribute.html
[INFO ] [Image ] Providers: img_tex, img_dds, img_pygame, img_pil (img_ffpyplayer, img_gif ignored)
[DEBUG ] [Cache ] register <kv.texture> with limit=1000, timeout=60
[DEBUG ] [Cache ] register <kv.shader> with limit=1000, timeout=3600
[INFO ] [Clipboard ] Provider: xclip
[INFO ] [CutBuffer ] cut buffer support enabled
[DEBUG ] [Text ] Provider <pango> ignored by config
[INFO ] [Text ] Provider: pygame(['text_pango'] ignored)
[INFO ] [Window ] Provider: pygame
[WARNING] [Deprecated ] Pygame has been deprecated and will be removed after 1.11.0: Call to deprecated function __init__ in /home/slim/.local/lib/python3.8/site-packages/kivy/core/window/window_pygame.py line 42.Called from /home/slim/.local/lib/python3.8/site-packages/kivy/core/__init__.py line 70 by core_select_lib().
[DEBUG ] [Window ] Display driver x11
[DEBUG ] [Window ] Actual window size: 1274x980
[DEBUG ] [Window ] Actual color bits r8 g8 b8 a0
[DEBUG ] [Window ] Actual depth bits: 24
[DEBUG ] [Window ] Actual stencil bits: 8
[DEBUG ] [Window ] Actual multisampling samples: 2
[INFO ] [GL ] Using the "OpenGL" graphics system
[DEBUG ] [GL ] glShaderBinary is not available
[INFO ] [GL ] Backend used <gl>
[INFO ] [GL ] OpenGL version <b'4.6 (Compatibility Profile) Mesa 20.2.2'>
[INFO ] [GL ] OpenGL vendor <b'Intel'>
[INFO ] [GL ] OpenGL renderer <b'Mesa Intel(R) UHD Graphics (CML 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 ] [ImagePygame ] Load </home/slim/.local/lib/python3.8/site-packages/kivy/data/glsl/default.png>
[WARNING] [Deprecated ] Pygame has been deprecated and will be removed after 1.11.0: Call to deprecated function __init__ in /home/slim/.local/lib/python3.8/site-packages/kivy/core/image/img_pygame.py line 27.Called from /home/slim/.local/lib/python3.8/site-packages/kivy/core/image/__init__.py line 460 by load().
[INFO ] [Window ] virtual keyboard not allowed, single mode, not docked
[INFO ] [KivyMD ] v0.104.1
[DEBUG ] [Atlas ] Load </home/slim/.local/lib/python3.8/site-packages/kivymd/images/rec_shadow.atlas>
[DEBUG ] [Atlas ] Need to load 2 images
[DEBUG ] [Atlas ] Load </home/slim/.local/lib/python3.8/site-packages/kivymd/images/rec_shadow-1.png>
[DEBUG ] [ImagePygame ] Load </home/slim/.local/lib/python3.8/site-packages/kivymd/images/rec_shadow-1.png>
[INFO ] [GL ] NPOT texture support is available
[DEBUG ] [Atlas ] Load </home/slim/.local/lib/python3.8/site-packages/kivymd/images/rec_shadow-0.png>
[DEBUG ] [ImagePygame ] Load </home/slim/.local/lib/python3.8/site-packages/kivymd/images/rec_shadow-0.png>
[DEBUG ] [Atlas ] Load </home/slim/.local/lib/python3.8/site-packages/kivymd/images/rec_st_shadow.atlas>
[DEBUG ] [Atlas ] Need to load 3 images
[DEBUG ] [Atlas ] Load </home/slim/.local/lib/python3.8/site-packages/kivymd/images/rec_st_shadow-0.png>
[DEBUG ] [ImagePygame ] Load </home/slim/.local/lib/python3.8/site-packages/kivymd/images/rec_st_shadow-0.png>
[DEBUG ] [Atlas ] Load </home/slim/.local/lib/python3.8/site-packages/kivymd/images/rec_st_shadow-1.png>
[DEBUG ] [ImagePygame ] Load </home/slim/.local/lib/python3.8/site-packages/kivymd/images/rec_st_shadow-1.png>
[DEBUG ] [Atlas ] Load </home/slim/.local/lib/python3.8/site-packages/kivymd/images/rec_st_shadow-2.png>
[DEBUG ] [ImagePygame ] Load </home/slim/.local/lib/python3.8/site-packages/kivymd/images/rec_st_shadow-2.png>
[DEBUG ] [Atlas ] Load </home/slim/.local/lib/python3.8/site-packages/kivymd/images/quad_shadow.atlas>
[DEBUG ] [Atlas ] Need to load 3 images
[DEBUG ] [Atlas ] Load </home/slim/.local/lib/python3.8/site-packages/kivymd/images/quad_shadow-1.png>
[DEBUG ] [ImagePygame ] Load </home/slim/.local/lib/python3.8/site-packages/kivymd/images/quad_shadow-1.png>
[DEBUG ] [Atlas ] Load </home/slim/.local/lib/python3.8/site-packages/kivymd/images/quad_shadow-0.png>
[DEBUG ] [ImagePygame ] Load </home/slim/.local/lib/python3.8/site-packages/kivymd/images/quad_shadow-0.png>
[DEBUG ] [Atlas ] Load </home/slim/.local/lib/python3.8/site-packages/kivymd/images/quad_shadow-2.png>
[DEBUG ] [ImagePygame ] Load </home/slim/.local/lib/python3.8/site-packages/kivymd/images/quad_shadow-2.png>
[DEBUG ] [Atlas ] Load </home/slim/.local/lib/python3.8/site-packages/kivymd/images/round_shadow.atlas>
[DEBUG ] [Atlas ] Need to load 3 images
[DEBUG ] [Atlas ] Load </home/slim/.local/lib/python3.8/site-packages/kivymd/images/round_shadow-1.png>
[DEBUG ] [ImagePygame ] Load </home/slim/.local/lib/python3.8/site-packages/kivymd/images/round_shadow-1.png>
[DEBUG ] [Atlas ] Load </home/slim/.local/lib/python3.8/site-packages/kivymd/images/round_shadow-0.png>
[DEBUG ] [ImagePygame ] Load </home/slim/.local/lib/python3.8/site-packages/kivymd/images/round_shadow-0.png>
[DEBUG ] [Atlas ] Load </home/slim/.local/lib/python3.8/site-packages/kivymd/images/round_shadow-2.png>
[DEBUG ] [ImagePygame ] Load </home/slim/.local/lib/python3.8/site-packages/kivymd/images/round_shadow-2.png>
[DEBUG ] [Cache ] register <textinput.label> with limit=None, timeout=60.0
[DEBUG ] [Cache ] register <textinput.width> with limit=None, timeout=60.0
Using user config file /home/slim/.katrain/config.json
[WARNING] [Deprecated ] Pygame has been deprecated and will be removed after 1.11.0: Call to deprecated function __init__ in /home/slim/.local/lib/python3.8/site-packages/kivy/core/text/text_pygame.py line 36.Called from /home/slim/.local/lib/python3.8/site-packages/kivy/uix/label.py line 349 by _create_label().
[WARNING] [Audio ] Unable to find a loader for </usr/lib/python3.8/site-packages/katrain/sounds/stone1.wav>
[WARNING] [Audio ] Unable to find a loader for </usr/lib/python3.8/site-packages/katrain/sounds/stone2.wav>
[WARNING] [Audio ] Unable to find a loader for </usr/lib/python3.8/site-packages/katrain/sounds/stone3.wav>
[WARNING] [Audio ] Unable to find a loader for </usr/lib/python3.8/site-packages/katrain/sounds/stone4.wav>
[WARNING] [Audio ] Unable to find a loader for </usr/lib/python3.8/site-packages/katrain/sounds/stone5.wav>
[WARNING] [Audio ] Unable to find a loader for </usr/lib/python3.8/site-packages/katrain/sounds/countdownbeep.wav>
[WARNING] [Audio ] Unable to find a loader for </usr/lib/python3.8/site-packages/katrain/sounds/boing.wav>
Traceback (most recent call last):
File "/usr/bin/katrain", line 33, in <module>
sys.exit(load_entry_point('KaTrain==1.6.0', 'console_scripts', 'katrain')())
File "/usr/lib/python3.8/site-packages/katrain/__main__.py", line 609, in run_app
app.run()
File "/home/slim/.local/lib/python3.8/site-packages/kivy/app.py", line 949, in run
self._run_prepare()
File "/home/slim/.local/lib/python3.8/site-packages/kivy/app.py", line 919, in _run_prepare
root = self.build()
File "/usr/lib/python3.8/site-packages/katrain/__main__.py", line 551, in build
self.gui = KaTrainGui()
File "/usr/lib/python3.8/site-packages/katrain/__main__.py", line 89, in __init__
super().__init__(**kwargs)
File "/home/slim/.local/lib/python3.8/site-packages/kivy/uix/relativelayout.py", line 274, in __init__
super(RelativeLayout, self).__init__(**kw)
File "/home/slim/.local/lib/python3.8/site-packages/kivy/uix/floatlayout.py", line 65, in __init__
super(FloatLayout, self).__init__(**kwargs)
File "/home/slim/.local/lib/python3.8/site-packages/kivy/uix/layout.py", line 76, in __init__
super(Layout, self).__init__(**kwargs)
File "/home/slim/.local/lib/python3.8/site-packages/kivy/uix/widget.py", line 359, in __init__
self.apply_class_lang_rules(
File "/home/slim/.local/lib/python3.8/site-packages/kivy/uix/widget.py", line 463, in apply_class_lang_rules
Builder.apply(
File "/home/slim/.local/lib/python3.8/site-packages/kivy/lang/builder.py", line 539, in apply
self._apply_rule(
File "/home/slim/.local/lib/python3.8/site-packages/kivy/lang/builder.py", line 661, in _apply_rule
self._apply_rule(
File "/home/slim/.local/lib/python3.8/site-packages/kivy/lang/builder.py", line 661, in _apply_rule
self._apply_rule(
File "/home/slim/.local/lib/python3.8/site-packages/kivy/lang/builder.py", line 661, in _apply_rule
self._apply_rule(
[Previous line repeated 2 more times]
File "/home/slim/.local/lib/python3.8/site-packages/kivy/lang/builder.py", line 657, in _apply_rule
child = cls(__no_builder=True)
File "/usr/lib/python3.8/site-packages/katrain/gui/controlspanel.py", line 75, in __init__
self.boing.volume = 0.1
AttributeError: 'NoneType' object has no attribute 'volume'
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.