Open tian3rd opened 10 months ago
When running cd examples && python3 demo.py tui, the program throws errors of TypeError: add() got an unexpected keyword argument 'category'.
cd examples && python3 demo.py tui
TypeError: add() got an unexpected keyword argument 'category'
As suggested by the error messages, 'category' and 'labels` need to be included in the argument parameters.
❯ python demo.py tui Running python demo.py add 'hello world' Traceback (most recent call last): File "/Users/tian/Documents/ghpr/trogon/examples/demo.py", line 89, in <module> cli(obj={}) File "/opt/homebrew/Caskroom/miniconda/base/envs/trogon/lib/python3.10/site-packages/click/core.py", line 1157, in __call__ return self.main(*args, **kwargs) File "/opt/homebrew/Caskroom/miniconda/base/envs/trogon/lib/python3.10/site-packages/click/core.py", line 1078, in main rv = self.invoke(ctx) File "/opt/homebrew/Caskroom/miniconda/base/envs/trogon/lib/python3.10/site-packages/click/core.py", line 1688, in invoke return _process_result(sub_ctx.command.invoke(sub_ctx)) File "/opt/homebrew/Caskroom/miniconda/base/envs/trogon/lib/python3.10/site-packages/click/core.py", line 1434, in invoke return ctx.invoke(self.callback, **ctx.params) File "/opt/homebrew/Caskroom/miniconda/base/envs/trogon/lib/python3.10/site-packages/click/core.py", line 783, in invoke return __callback(*args, **kwargs) File "/opt/homebrew/Caskroom/miniconda/base/envs/trogon/lib/python3.10/site-packages/click/decorators.py", line 33, in new_func return f(get_current_context(), *args, **kwargs) TypeError: add() got an unexpected keyword argument 'category'
Description
When running
cd examples && python3 demo.py tui
, the program throws errors ofTypeError: add() got an unexpected keyword argument 'category'
.Why
As suggested by the error messages, 'category' and 'labels` need to be included in the argument parameters.