configparser.NoOptionError: No option 'client_id' in section: 'DEFAULT' #550
Unanswered
cooldude2200
asked this question in
Q&A
Replies: 1 comment 2 replies
-
You're missing a line in your config file, somehow. You need to add that back in for the BDFR to work. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Have been using BDFR since a while, suddenly since Friday I have been getting below error, I have tried updating BDFR to the latest version as well but still get the same error. Any help would be highly appreciated.
`python3.9 -m bdfr download ~/BDFR --subreddit cats
Traceback (most recent call last):
File "/usr/lib/python3.9/configparser.py", line 789, in get
value = d[option]
File "/usr/lib/python3.9/collections/init.py", line 941, in getitem
return self.missing(key) # support subclasses that define missing
File "/usr/lib/python3.9/collections/init.py", line 933, in missing
raise KeyError(key)
KeyError: 'client_id'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/lib/python3.9/runpy.py", line 197, in _run_module_as_main
return _run_code(code, main_globals, None,
File "/usr/lib/python3.9/runpy.py", line 87, in _run_code
exec(code, run_globals)
File "/home/robot/.local/lib/python3.9/site-packages/bdfr/main.py", line 153, in
cli()
File "/home/robot/.local/lib/python3.9/site-packages/click/core.py", line 1128, in call
return self.main(*args, **kwargs)
File "/home/robot/.local/lib/python3.9/site-packages/click/core.py", line 1053, in main
rv = self.invoke(ctx)
File "/home/robot/.local/lib/python3.9/site-packages/click/core.py", line 1659, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "/home/robot/.local/lib/python3.9/site-packages/click/core.py", line 1395, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/home/robot/.local/lib/python3.9/site-packages/click/core.py", line 754, in invoke
return __callback(*args, **kwargs)
File "/home/robot/.local/lib/python3.9/site-packages/click/decorators.py", line 26, in new_func
return f(get_current_context(), *args, **kwargs)
File "/home/robot/.local/lib/python3.9/site-packages/bdfr/main.py", line 81, in cli_download
reddit_downloader = RedditDownloader(config)
File "/home/robot/.local/lib/python3.9/site-packages/bdfr/downloader.py", line 38, in init
super(RedditDownloader, self).init(args)
File "/home/robot/.local/lib/python3.9/site-packages/bdfr/connector.py", line 57, in init
self._setup_internal_objects()
File "/home/robot/.local/lib/python3.9/site-packages/bdfr/connector.py", line 79, in _setup_internal_objects
self.create_reddit_instance()
File "/home/robot/.local/lib/python3.9/site-packages/bdfr/connector.py", line 149, in create_reddit_instance
client_id=self.cfg_parser.get('DEFAULT', 'client_id'),
File "/usr/lib/python3.9/configparser.py", line 792, in get
raise NoOptionError(option, section)
configparser.NoOptionError: No option 'client_id' in section: 'DEFAULT'`
Beta Was this translation helpful? Give feedback.
All reactions