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: algebro
Last Packager: algebro
Votes: 9
Popularity: 0.67
First Submitted: 2020-08-06 13:58 (UTC)
Last Updated: 2023-07-12 20:26 (UTC)

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.

Latest Comments

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

MoonSwan commented on 2023-04-03 02:28 (UTC)

For algebro, this is the comment I received from the packager of the python dependencies used to build Katrain:

ruahcra commented on 2023-04-02 20:02 (CDT)

This package should only be required when using python <3.7. Since Arch is now on python 3.10, and your error message below shows it is building using 3.10, it is an error in the PKGBUILD of that application. You can just remove the dependency from the package build.

ruahcra commented on 2023-04-03 01:03 (UTC)

python-dataclasses should be removed from depends because it was only needed for python <3.7. I suspect if you build in a clean chroot you will be able to reproduce the issue.

MoonSwan commented on 2023-04-02 21:16 (UTC)

Thannks algebro, I'll see if taking it up with them will yield any results. Have you had any issues building this package yourself? If not, maybe you could upload a binary until this is resolved? I can't be the only one having issues with this package.

algebro commented on 2023-04-02 01:16 (UTC)

That error is coming from the https://aur.archlinux.org/packages/python-dataclasses package...it looks like someone else posted the same error there recently in March. Maybe the maintainer of that package could help?

MoonSwan commented on 2023-04-02 01:09 (UTC) (edited on 2023-04-02 01:11 (UTC) by MoonSwan)

Trying to build Katrain and the last three attempts (about a month or two apart in timing) have always resulted with this output after it fails:

Traceback (most recent call last):
  File "/tmp/makepkg/python-dataclasses/src/dataclasses-0.8/setup.py", line 1, in <module>
    from setuptools import setup
  File "/usr/lib/python3.10/site-packages/setuptools/__init__.py", line 18, in <module>
    from setuptools.dist import Distribution
  File "/usr/lib/python3.10/site-packages/setuptools/dist.py", line 42, in <module>
    from setuptools.config import setupcfg, pyprojecttoml
  File "/usr/lib/python3.10/site-packages/setuptools/config/__init__.py", line 10, in <module>
    from . import setupcfg
  File "/usr/lib/python3.10/site-packages/setuptools/config/setupcfg.py", line 30, in <module>
    from packaging.requirements import Requirement, InvalidRequirement
  File "/usr/lib/python3.10/site-packages/packaging/requirements.py", line 8, in <module>
    from ._parser import parse_requirement
  File "/usr/lib/python3.10/site-packages/packaging/_parser.py", line 10, in <module>
    from ._tokenizer import DEFAULT_RULES, Tokenizer
  File "/usr/lib/python3.10/site-packages/packaging/_tokenizer.py", line 10, in <module>
    class Token:
  File "/tmp/makepkg/python-dataclasses/src/dataclasses-0.8/dataclasses.py", line 958, in dataclass
    return wrap(_cls)
  File "/tmp/makepkg/python-dataclasses/src/dataclasses-0.8/dataclasses.py", line 950, in wrap
    return _process_class(cls, init, repr, eq, order, unsafe_hash, frozen)
  File "/tmp/makepkg/python-dataclasses/src/dataclasses-0.8/dataclasses.py", line 800, in _process_class
    cls_fields = [_get_field(cls, name, type)
  File "/tmp/makepkg/python-dataclasses/src/dataclasses-0.8/dataclasses.py", line 800, in <listcomp>
    cls_fields = [_get_field(cls, name, type)
  File "/tmp/makepkg/python-dataclasses/src/dataclasses-0.8/dataclasses.py", line 659, in _get_field
    if (_is_classvar(a_type, typing)
  File "/tmp/makepkg/python-dataclasses/src/dataclasses-0.8/dataclasses.py", line 550, in _is_classvar
    return type(a_type) is typing._ClassVar
AttributeError: module 'typing' has no attribute '_ClassVar'. Did you mean: 'ClassVar'?
==> ERROR: A failure occurred in package().
    Aborting...
error: target not found: python-dataclasses
error: target not found: python-kivymd
 -> error making: python-dataclasses

Yay then drops me back to my normal prompt. I'm not sure what to do as I've never seen these types of errors before. Any help is appreciated.

algebro commented on 2022-09-22 20:39 (UTC)

Just a heads up, there appears to be a bug with the latest python-kivymd update. I downgraded to python-kivymd 0.104.1-1 and katrain worked again. I'd appreciate help looking into it if anyone is able to. Thanks!

algebro commented on 2022-07-18 19:10 (UTC)

Updated, thanks for the note!

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.