streamrip icon indicating copy to clipboard operation
streamrip copied to clipboard

Error loading config

Open day-trading-oracle opened this issue 1 year ago • 2 comments

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 / #

day-trading-oracle avatar Nov 19 '24 22:11 day-trading-oracle

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

pinkavaj avatar Nov 27 '24 09:11 pinkavaj

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.

pinkavaj avatar Nov 27 '24 09:11 pinkavaj