Closed alexander-haller closed 4 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:
sys.orig_argv
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) ``
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: