RedditVideoMakerBot icon indicating copy to clipboard operation
RedditVideoMakerBot copied to clipboard

[Bug]: TypeError: __init__() missing 1 required positional argument: 'message'

Open yeetus1992 opened this issue 3 years ago • 1 comments

Describe the bug

When I run python3 main.py or python main.py, after the entire configure prompt, I get the following error message: `Using state (the name of my city) server backend.

██████╗ ███████╗██████╗ ██████╗ ██╗████████╗ ██╗ ██╗██╗██████╗ ███████╗ ██████╗ ███╗ ███╗ █████╗ ██╗ ██╗███████╗██████╗ ██╔══██╗██╔════╝██╔══██╗██╔══██╗██║╚══██╔══╝ ██║ ██║██║██╔══██╗██╔════╝██╔═══██╗ ████╗ ████║██╔══██╗██║ ██╔╝██╔════╝██╔══██╗ ██████╔╝█████╗ ██║ ██║██║ ██║██║ ██║ ██║ ██║██║██║ ██║█████╗ ██║ ██║ ██╔████╔██║███████║█████╔╝ █████╗ ██████╔╝ ██╔══██╗██╔══╝ ██║ ██║██║ ██║██║ ██║ ╚██╗ ██╔╝██║██║ ██║██╔══╝ ██║ ██║ ██║╚██╔╝██║██╔══██║██╔═██╗ ██╔══╝ ██╔══██╗ ██║ ██║███████╗██████╔╝██████╔╝██║ ██║ ╚████╔╝ ██║██████╔╝███████╗╚██████╔╝ ██║ ╚═╝ ██║██║ ██║██║ ██╗███████╗██║ ██║ ╚═╝ ╚═╝╚══════╝╚═════╝ ╚═════╝ ╚═╝ ╚═╝ ╚═══╝ ╚═╝╚═════╝ ╚══════╝ ╚═════╝ ╚═╝ ╚═╝╚═╝ ╚═╝╚═╝ ╚═╝╚══════╝╚═╝ ╚═╝

 Thanks for using this tool! Feel free to contribute to this project on GitHub! If you have any     

questions, feel free to reach out to me on Twitter or submit a GitHub issue. You can find solutions
to many common problems in the Documentation: https://reddit-video-maker-bot.netlify.app/

╭──────────────────────────────────────────────────────────────────────────────────────────────────────╮ │ You are using the newest version (3.0.1) of the bot │ ╰──────────────────────────────────────────────────────────────────────────────────────────────────────╯ ###############################

Checking TOML configuration

############################### If you see any prompts, that means that you have unset/incorrectly set variables, please input the correct values. ╭──────────────────────────────────────────────────────────────────────────────────────────────────────╮ │ on the 1st iteration of 5 │ ╰──────────────────────────────────────────────────────────────────────────────────────────────────────╯ Logging into Reddit. ╭──────────────────────────────────────────────────────────────────────────────────────────────────────╮ │ Getting subreddit threads... │ ╰──────────────────────────────────────────────────────────────────────────────────────────────────────╯ Using subreddit: r/AskReddit from TOML config This post was pinned by moderators. Skipping... NSFW Post Detected. Skipping... Video will be: Redditors who still haven't had COVID what is your secret? 👍 Thread url is : https://reddit.com/r/AskReddit/comments/118ju4l/redditors_who_still_havent_had_covid_what_is_your/ 👍 Thread has 1441 upvotes Thread has a upvote ratio of 86.0% Thread has 3807 comments Received subreddit threads Successfully. Thread ID is 118ju4l ╭──────────────────────────────────────────────────────────────────────────────────────────────────────╮ │ Sorry, something went wrong with this version! Try again, and feel free to report this issue at │ │ GitHub or the Discord community. │ │ Version: 3.0.1,Story mode: False, Story mode method: 1, │ │ Postid : {'allow_nsfw': False, 'theme': 'dark', 'times_to_run': 5, 'opacity': 0.9, 'transition': │ │ 0.2, 'storymode': False, 'storymodemethod': 1, 'storymode_max_length': 1000, 'fps': 30, │ │ 'resolution_w': 1080, 'resolution_h': 1920, 'background': {'background_choice': 'minecraft', │ │ 'background_thumbnail': False, 'background_thumbnail_font_family': 'arial', │ │ 'background_thumbnail_font_size': 96, 'background_thumbnail_font_color': '255,255,255'}, 'tts': │ │ {'voice_choice': 'tiktok', 'aws_polly_voice': 'Matthew', 'streamlabs_polly_voice': 'Matthew', │ │ 'tiktok_voice': 'en_us_001', 'tiktok_sessionid': '', 'python_voice': '1', 'py_voice_num': '2', │ │ 'silence_duration': 0.3, 'no_emojis': False}},allownsfw :False,is_nsfw : False │ ╰──────────────────────────────────────────────────────────────────────────────────────────────────────╯ Traceback (most recent call last): File "/Users/jerrysmith/RedditVideoMakerBot/main.py", line 115, in raise err File "/Users/jerrysmith/RedditVideoMakerBot/main.py", line 99, in run_many(config["settings"]["times_to_run"]) File "/Users/jerrysmith/RedditVideoMakerBot/main.py", line 63, in run_many main() File "/Users/jerrysmith/RedditVideoMakerBot/main.py", line 49, in main length, number_of_comments = save_text_to_mp3(reddit_object) File "/Users/jerrysmith/RedditVideoMakerBot/video_creation/voices.py", line 37, in save_text_to_mp3 text_to_mp3 = TTSEngine( File "/Users/jerrysmith/RedditVideoMakerBot/TTS/engine_wrapper.py", line 45, in init self.tts_module = tts_module() File "/Users/jerrysmith/RedditVideoMakerBot/TTS/TikTok.py", line 83, in init raise TikTokTTSException(5) TypeError: init() missing 1 required positional argument: 'message' (base) jerrysmith@Jerrys-MBP RedditVideoMakerBot %`

Reproduction Steps

I simply ran the code after configuration and have spent days trying to figure this out, thought this could be the right place to ask. Also, I am quite new to doing anything code-related so I would be beyond beyond grateful if anyone knew how to fix this!

Operating System : [M1 Silicon Mac: Ventura] Python version : [e.g. Python 3.9.13] App version / Branch : [newest bot version (3.0.1)]

Have a good one

Expected behavior

I expect getting the video as output.

Screenshots

No response

System Information

Operating System : [M1 Silicon Mac: Ventura] Python version : [e.g. Python 3.9.13] App version / Branch : [newest bot version (3.0.1)]

Checklist

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

Additional Context

No response

yeetus1992 avatar Feb 22 '23 06:02 yeetus1992

i reoped this issue that looks cleaner

yeetus1992 avatar Feb 22 '23 08:02 yeetus1992