Skip to content

Twitchez fails to start after auth (Stack Trace) #1

@fuguesoft

Description

@fuguesoft

Specs

[x] Operating System: Debian GNU/Linux 13.0 (trixie)
[x] Desktop Environment: swayWM 1.10.1
[x] Terminal Emulator: foot 1.21.0
[x] Shell: fish 4.0.2
[x] Software: Twitchez 0.1.0

Description

After running the twitchez setup and authorizing my account via copy/pasting my
token, the app exits with error code 69. Nice. Then, as prompted, I run it
again and it gives the traceback error shown below. This happens after reinstall
as well.

Steps to reproduce

  1. Install twitchez:
pipx install twitchez
  1. Run twitchez and follow the instructions to copy the auth key and paste it
    back in the terminal.
  2. Run twitchez again

Expected behavior

Twitchez starts normally without error

Screenshots

Logs

Traceback (most recent call last):
  File "/home/fugue/.local/pipx/venvs/twitchez/lib/python3.13/site-packages/twitchez/tabs.py", line 30, in tab_names_ordered
    names_list = literal_eval(names_list_str)
  File "/usr/lib/python3.13/ast.py", line 64, in literal_eval
    node_or_string = parse(node_or_string.lstrip(" \t"), mode='eval')
  File "/usr/lib/python3.13/ast.py", line 50, in parse
    return compile(source, filename, mode, flags,
                   _feature_version=feature_version, optimize=optimize)
  File "<unknown>", line 0
    
SyntaxError: invalid syntax

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/fugue/.local/bin/twitchez", line 7, in <module>
    sys.exit(main())
             ~~~~^^
  File "/home/fugue/.local/pipx/venvs/twitchez/lib/python3.13/site-packages/twitchez/__main__.py", line 19, in main
    from twitchez import init
  File "/home/fugue/.local/pipx/venvs/twitchez/lib/python3.13/site-packages/twitchez/init.py", line 5, in <module>
    from twitchez import keys
  File "/home/fugue/.local/pipx/venvs/twitchez/lib/python3.13/site-packages/twitchez/keys.py", line 5, in <module>
    from twitchez import bmark
  File "/home/fugue/.local/pipx/venvs/twitchez/lib/python3.13/site-packages/twitchez/bmark.py", line 9, in <module>
    from twitchez.tabs import find_tab, cpname_set, tab_add_new
  File "/home/fugue/.local/pipx/venvs/twitchez/lib/python3.13/site-packages/twitchez/tabs.py", line 127, in <module>
    def find_tab(fallback=cpdict()) -> dict:
                          ~~~~~~^^
  File "/home/fugue/.local/pipx/venvs/twitchez/lib/python3.13/site-packages/twitchez/tabs.py", line 72, in cpdict
    return pdict(cpname())
                 ~~~~~~^^
  File "/home/fugue/.local/pipx/venvs/twitchez/lib/python3.13/site-packages/twitchez/tabs.py", line 60, in cpname
    tabs = tab_names_ordered()
  File "/home/fugue/.local/pipx/venvs/twitchez/lib/python3.13/site-packages/twitchez/tabs.py", line 32, in tab_names_ordered
    raise ValueError(f"names_list_str: '{names_list_str}'\n{e}")
ValueError: names_list_str: ''
invalid syntax (<unknown>, line 0)

Config

The config dirs were not created on install or setup. I did not create them
manually.

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