RedditVideoMakerBot icon indicating copy to clipboard operation
RedditVideoMakerBot copied to clipboard

[Bug]: NameError: name 'reddit_object' is not defined

Open 2-m opened this issue 3 years ago • 2 comments

Describe the bug

Set everything up in the config and now the main.py won't even run

File "F:\Downloads\Reddit3\RedditVideoMakerBot\main.py", line 89, in run_many(config["settings"]["times_to_run"]) File "F:\Downloads\Reddit3\RedditVideoMakerBot\main.py", line 53, in run_many main() File "F:\Downloads\Reddit3\RedditVideoMakerBot\main.py", line 37, in main reddit_object = get_subreddit_threads(POST_ID) File "F:\Downloads\Reddit3\RedditVideoMakerBot\reddit\subreddit.py", line 126, in get_subreddit_threads print_substep(f"Video will be: {submission.title} :thumbsup:", style="bold green") File "F:\Downloads\Reddit3\RedditVideoMakerBot\utils\console.py", line 35, in print_substep console.print(text, style=style) File "C:\Users\me\AppData\Local\Programs\Python\Python39\lib\site-packages\rich\console.py", line 1715, in print self._buffer.extend(new_segments) File "C:\Users\me\AppData\Local\Programs\Python\Python39\lib\site-packages\rich\console.py", line 869, in exit self._exit_buffer() File "C:\Users\me\AppData\Local\Programs\Python\Python39\lib\site-packages\rich\console.py", line 827, in _exit_buffer self._check_buffer() File "C:\Users\me\AppData\Local\Programs\Python\Python39\lib\site-packages\rich\console.py", line 2023, in _check_buffer legacy_windows_render(buffer, LegacyWindowsTerm(self.file)) File "C:\Users\me\AppData\Local\Programs\Python\Python39\lib\site-packages\rich_windows_renderer.py", line 17, in legacy_windows_render term.write_styled(text, style) File "C:\Users\me\AppData\Local\Programs\Python\Python39\lib\site-packages\rich_win32_console.py", line 442, in write_styled self.write_text(text) File "C:\Users\me\AppData\Local\Programs\Python\Python39\lib\site-packages\rich_win32_console.py", line 403, in write_text self.write(text) File "C:\Users\me\AppData\Local\Programs\Python\Python39\lib\encodings\cp1252.py", line 19, in encode return codecs.charmap_encode(input,self.errors,encoding_table)[0] UnicodeEncodeError: 'charmap' codec can't encode character '\U0001f44d' in position 30: character maps to

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "F:\Downloads\Reddit3\RedditVideoMakerBot\main.py", line 103, in f'Postid : {str(config["settings"])},allownsfw :{config["settings"]["allow_nsfw"]}, is_nsfw : {str(reddit_object["is_nsfw"])},\n' NameError: name 'reddit_object' is not defined

Reproduction Steps

Installed the program

Expected behavior

For it to work

Screenshots

No response

System Information

Operating System : [e.g. Windows 11] Python version : [e.g. Python 3.6] App version / Branch : [e.g. latest, V2.0, master, develop]

Checklist

  • [X] I have searched the open issues for duplicates.
  • [X] I have shown the entire traceback, if possible.

Additional Context

No response

2-m avatar Apr 03 '23 12:04 2-m

This issue is stale because it has been open 7 days with no activity. Remove stale label or comment, or this will be closed in 10 days.

github-actions[bot] avatar Apr 10 '23 00:04 github-actions[bot]

Issue closed due to being stale. Please reopen if issue persists in latest version.

github-actions[bot] avatar Apr 22 '23 00:04 github-actions[bot]