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 »

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.

algebro commented on 2023-04-12 18:00 (UTC)

Sorry for the delay all--I've just bumped the pkgrel and removed the python-dataclasses dependency. Please let me know if this fixes the build.

Thanks!

bradwood commented on 2023-04-10 22:47 (UTC)

@MoonSwan -- did you manage to get this working? I'm having the same exact problem.

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!