uhd-urz / elAPI

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

ImportError: cannot import name 'orig_argv' from 'sys' #50

Closed alexander-haller closed 4 months ago

alexander-haller commented 5 months ago

In GitLab by @mhxion on Jun 25, 2024, 23:46

sys.orig_argv is only added in Python 3.10. Python 3.9 throws an error:


debian@elabftw-dev:~$ elapi show-config
╭─────────────────────────────── Traceback (most recent call last) ────────────────────────────────╮
│ /home/debian/.local/pipx/venvs/elapi/lib/python3.9/site-packages/elapi/cli/elapi.py:55 in        │
│ cli_startup                                                                                      │
│                                                                                                  │
│     52 │   ] = "{}",                                                                             │
│     53 ) -> type(None):                                                                          │
│     54 │   import click                                                                          │
│ ❱   55 │   from sys import orig_argv                                                             │
│     56 │   import json                                                                           │
│     57 │   from ..styles import print_typer_error, NoteText                                      │
│     58 │   from ..configuration import (                                                         │
╰──────────────────────────────────────────────────────────────────────────────────────────────────╯
ImportError: cannot import name 'orig_argv' from 'sys' (unknown location)
``