Skip to content

Runtime Error: Type not yet supported: pathlib.Path | None #7

Description

@IronTooch

Having an issue running Signal Export on Linux Mint 20.3 (Una), which is based on Ubuntu focal (20.04.06 LTS). I've installed all the resources listed in the README, and tried running as both a user and with elevated permissions. I will say that this is trying to backup an older version of Signal Desktop, but that doesn't appear to be the issue.

The error message that occurs is RuntimeError: Type not yet supported: pathlib.Path | None

The full error output is as follows:

Docker process failed, see logs below:
╭───────────────────── Traceback (most recent call last) ──────────────────────╮
│ /usr/local/bin/sigexport:8 in <module>                                       │
│                                                                              │
│   5 from sigexport.main import cli                                           │
│   6 if __name__ == '__main__':                                               │
│   7 │   sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])     │
│ ❱ 8 │   sys.exit(cli())                                                      │
│   9                                                                          │
│                                                                              │
│ ╭────────────────────────────── locals ───────────────────────────────╮      │
│ │ cli = <function cli at 0x7f7dd6f53e20>                              │      │
│ │  re = <module 're' from '/usr/local/lib/python3.12/re/__init__.py'> │      │
│ │ sys = <module 'sys' (built-in)>                                     │      │
│ ╰─────────────────────────────────────────────────────────────────────╯      │
│                                                                              │
│ /usr/local/lib/python3.12/site-packages/sigexport/main.py:512 in cli         │
│                                                                              │
│   509                                                                        │
│   510 def cli() -> None:                                                     │
│   511 │   """cli."""                                                         │
│ ❱ 512 │   run(main)                                                          │
│   513                                                                        │
│   514                                                                        │
│   515 if __name__ == "__main__":                                             │
│                                                                              │
│ /usr/local/lib/python3.12/site-packages/typer/main.py:1056 in run            │
│                                                                              │
│ /usr/local/lib/python3.12/site-packages/typer/main.py:328 in __call__        │
│                                                                              │
│ /usr/local/lib/python3.12/site-packages/typer/main.py:311 in __call__        │
│                                                                              │
│ /usr/local/lib/python3.12/site-packages/typer/main.py:364 in get_command     │
│                                                                              │
│ /usr/local/lib/python3.12/site-packages/typer/main.py:577 in                 │
│ get_command_from_info                                                        │
│                                                                              │
│ /usr/local/lib/python3.12/site-packages/typer/main.py:553 in                 │
│ get_params_convertors_ctx_param_name_from_function                           │
│                                                                              │
│ /usr/local/lib/python3.12/site-packages/typer/main.py:850 in get_click_param │
│                                                                              │
│ /usr/local/lib/python3.12/site-packages/typer/main.py:779 in get_click_type  │
╰──────────────────────────────────────────────────────────────────────────────╯
RuntimeError: Type not yet supported: pathlib.Path | None

I know this is a container, but just for sanity's sake, my python3 version outside of docker is 3.8.10, and my docker version is Docker version 24.0.7, build 24.0.7-0ubuntu2~20.04.1.

Nothing in system messages or dmesg seems helpful, but happy to do anything I can to assist with diagnosis. I'll also look into this more myself and see if there's anything I notice, this feels relatively resolvable and patchable with not a ton of time invested.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions