Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error loading config #773

Open
dmo1111 opened this issue Nov 19, 2024 · 2 comments
Open

Error loading config #773

dmo1111 opened this issue Nov 19, 2024 · 2 comments
Labels
bug Something isn't working

Comments

@dmo1111
Copy link

dmo1111 commented Nov 19, 2024

Error loading config from /root/.config/streamrip/config.toml: Invalid number at line 35 col 43
Try running rip config reset
╭─────────────────────────────── Traceback (most recent call last) ────────────────────────────────╮
│ /usr/bin/rip:8 in │
│ │
│ 5 from streamrip.rip import rip │
│ 6 if name == 'main': │
│ 7 │ sys.argv[0] = re.sub(r'(-script.pyw|.exe)?$', '', sys.argv[0]) │
│ ❱ 8 │ sys.exit(rip()) │
│ 9 │
│ │
│ /usr/lib/python3.11/site-packages/click/core.py:1157 in call
│ │
│ ... 8 frames hidden ... │
│ │
│ /usr/lib/python3.11/asyncio/base_events.py:654 in run_until_complete │
│ │
│ /usr/lib/python3.11/site-packages/streamrip/rip/cli.py:156 in url │
│ │
│ 153 @coro
│ 154 async def url(ctx, urls): │
│ 155 │ """Download content from URLs.""" │
│ ❱ 156 │ with ctx.obj["config"] as cfg: │
│ 157 │ │ cfg: Config │
│ 158 │ │ updates = cfg.session.misc.check_for_updates │
│ 159 │ │ if updates: │
╰──────────────────────────────────────────────────────────────────────────────────────────────────╯
TypeError: 'NoneType' object does not support the context manager protocol
/ # rip url https://www.deezer.com/us/track/17347966
[22:41:53] INFO Skipping track 17347966. Marked as downloaded in the database. track.py:146
/ #

@dmo1111 dmo1111 added the bug Something isn't working label Nov 19, 2024
@pinkavaj
Copy link

Please can you attach your /root/.config/streamrip/config.toml (possibly with secrets removed)

@pinkavaj
Copy link

Please can you also update the title of the MR to somethink more descriptive, eg: Error loading config might be IMHO good start. This would help others to identify if they suffer the same error.

@dmo1111 dmo1111 changed the title [BUG] <title> Error loading config Nov 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants