wallneradam / tc420

Python Library and CLI for TC420 (USB) LED Controller / Dimmer
GNU General Public License v3.0
21 stars 8 forks source link

Not working on Fedora 38 #17

Open miguelangelcg25 opened 8 months ago

miguelangelcg25 commented 8 months ago

Not working on Fedora 38, when executing tc420 --help I get this error:

Traceback (most recent call last):
  File "/home/miguelangel/.local/bin/tc420", line 5, in <module>
    from tc420.__main__ import main
  File "/home/miguelangel/.local/lib/python3.12/site-packages/tc420/__main__.py", line 286, in <module>
    @cmd_group.resultcallback()
     ^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'Group' object has no attribute 'resultcallback'. Did you mean: 'result_callback'?

I created plugdev group, added my user, re-logged in but did not work.

git-madresc commented 4 months ago

Changing 'resultcallback' to 'result_callback' as suggested worked for me.

schwabix-1311 commented 2 months ago

This is fixed by PR #11. Unfortunately Adam seems to no longer maintain this code.

To make this and other fixes available I created a fork https://github.com/schwabix-1311/tc420 to add all new stuff there. My fork includes all PRs found here, namely