uhd-urz / elAPI

An extensible API client for eLabFTW
GNU Affero General Public License v3.0
5 stars 0 forks source link

elapi throws RuntimeError: Type not yet supported: <class 'typer.models.Context'> #4

Closed alexander-haller closed 4 months ago

alexander-haller commented 1 year ago

In GitLab by @mhxion on Nov 16, 2023, 01:28

Upon doing a quick-fix for issue #3, elapi throws the following error:

╭─────────────────────────────── Traceback (most recent call last) ────────────────────────────────╮
│ /home/debian/.local/bin/elapi:8 in <module>                                                      │
│                                                                                                  │
│   5 from elapi.cli.elapi import app                                                              │
│   6 if __name__ == '__main__':                                                                   │
│   7 │   sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])                         │
│ ❱ 8 │   sys.exit(app())                                                                          │
│   9                                                                                              │
│                                                                                                  │
│ /home/debian/.local/lib/python3.9/site-packages/typer/main.py:328 in __call__                    │
│                                                                                                  │
│ /home/debian/.local/lib/python3.9/site-packages/typer/main.py:311 in __call__                    │
│                                                                                                  │
│ /home/debian/.local/lib/python3.9/site-packages/typer/main.py:350 in get_command                 │
│                                                                                                  │
│ /home/debian/.local/lib/python3.9/site-packages/typer/main.py:332 in get_group                   │
│                                                                                                  │
│ /home/debian/.local/lib/python3.9/site-packages/typer/main.py:483 in get_group_from_info         │
│                                                                                                  │
│ /home/debian/.local/lib/python3.9/site-packages/typer/main.py:577 in get_command_from_info       │
│                                                                                                  │
│ /home/debian/.local/lib/python3.9/site-packages/typer/main.py:553 in                             │
│ get_params_convertors_ctx_param_name_from_function                                               │
│                                                                                                  │
│ /home/debian/.local/lib/python3.9/site-packages/typer/main.py:850 in get_click_param             │
│                                                                                                  │
│ /home/debian/.local/lib/python3.9/site-packages/typer/main.py:779 in get_click_type              │
╰──────────────────────────────────────────────────────────────────────────────────────────────────╯
RuntimeError: Type not yet supported: <class 'typer.models.Context'>