tc420 icon indicating copy to clipboard operation
tc420 copied to clipboard

Not working on Fedora 38

Open miguelangelcg25 opened this issue 1 year ago • 2 comments

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.

miguelangelcg25 avatar Jan 07 '24 15:01 miguelangelcg25

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

git-madresc avatar May 15 '24 14:05 git-madresc

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

  • update to package click >= 8.1.0 => rename of resultcallback to result_callback
  • non-sudo use of tc420
  • USBTimeoutErrors
  • multiple TC420 controllers connected to same system

schwabix-1311 avatar Jul 21 '24 18:07 schwabix-1311