elebumm / RedditVideoMakerBot

Create Reddit Videos with just✨ one command ✨
GNU General Public License v3.0
6.5k stars 1.83k forks source link

Traceback bug #1088

Closed hellowtf0111 closed 2 years ago

hellowtf0111 commented 2 years ago

Describe the bug A clear and concise description of what the bug is.

To Reproduce Steps to reproduce the behavior:

Expected behavior┌─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┐ │ You are using v2.3 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. Example: streamlabspolly Non-optional choice= The default value is "" Do you want to use it?(y/n) y ┌─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┐ │ on the 1st iteration of 1 │ └─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┘ Logging into Reddit. ┌─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┐ │ Getting subreddit threads... │ └─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┘ Using subreddit: r/Romania from TOML config This post was pinned by moderators. Skipping... This post was pinned by moderators. Skipping... Video will be: Un maramureșean a sunat la 112 pentru a anunța că o femeie s-a urcat beată la volan / Era de fapt logodnica lui și tocmai îl anunțase că s-au despărțit / Tipa avea 1,22 mg/l alcool pur în aerul expirat 👍 Thread has 605 upvotes Thread has a upvote ratio of 97.0% Thread has 93 comments Received subreddit threads Successfully. ┌─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┐ │ Please choose one of the following TTS providers: │ └─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┘ ┌─────────────────┐ ┌──────────┐ ┌─────────────────┐ ┌────────┐ │ GoogleTranslate │ │ AWSPolly │ │ StreamlabsPolly │ │ TikTok │ └─────────────────┘ └──────────┘ └─────────────────┘ └────────┘

TikTok ┌─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┐ │ Saving Text to MP3 files... │ └─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┘ Translating Text... Saving... ---------------------------------------- Translating Text... Saving... ---------------------------------------- Translating Text... Saving... ---------------------------------------- Translating Text... Saving... ---------------------------------------- 0.5 it/s Translating Text... Saving... ---------------------------------------- 0.5 it/s Translating Text... Saving... ---------------------------------------- 0.5 it/s Translating Text... Saving... ---------------------------------------- 0.5 it/s Translating Text... Saving... ---------------------------------------- 0.5 it/s Translating Text... Saving... ---------------------------------------- 0.5 it/s Translating Text... Saving... ---------------------------------------- 0.5 it/s Translating Text... Saving... ---------------------------------------- 0.5 it/s Translating Text... Saving... ---------------------------------------- 0.5 it/s Translating Text... Saving... ---------------------------------------- 0.5 it/s Translating Text... Saving... ---------------------------------------- 0.5 it/s Translating Text... Saving... ---------------------------------------- 0.5 it/s Translating Text... Saving... ---------------------------------------- 0.5 it/s Translating Text... Saving... ---------------------------------------- 0.5 it/s Translating Text... Saving... ---------------------------------------- 0.4 it/s Translating Text... Saving... ---------------------------------------- 0.4 it/s Translating Text... Saving... ---------------------------------------- 0.4 it/s Translating Text... Saving... ---------------------------------------- 0.4 it/s Translating Text... Saving... ---------------------------------------- 0.4 it/s Translating Text... Saving... ---------------------------------------- 0.4 it/s Translating Text... Saving... ---------------------------------------- 0.4 it/s Translating Text... Saving... ---------------------------------------- 0.4 it/s Translating Text... Saving... ---------------------------------------- 0.4 it/s Translating Text... Saving... ---------------------------------------- 0.4 it/s Saved Text to MP3 files successfully. ┌─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┐ │ Downloading screenshots of reddit posts... │ └─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┘ Launching Headless Browser... Translating post... Traceback (most recent call last): File "C:\Users\pc1\Desktop\redditTotTiktok\RedditVideoMakerBot\main.py", line 65, in run_many(config["settings"]["times_to_run"]) File "C:\Users\pc1\Desktop\redditTotTiktok\RedditVideoMakerBot\main.py", line 56, in run_many main() File "C:\Users\pc1\Desktop\redditTotTiktok\RedditVideoMakerBot\main.py", line 44, in main download_screenshots_of_reddit_posts(reddit_object, number_of_comments) File "C:\Users\pc1\Desktop\redditTotTiktok\RedditVideoMakerBot\video_creation\screenshot_downloader.py", line 65, in download_screenshots_of_reddit_posts page.evaluate( File "C:\Users\pc1\AppData\Local\Programs\Python\Python310\lib\site-packages\playwright\sync_api_generated.py", line 6786, in evaluate self._sync( File "C:\Users\pc1\AppData\Local\Programs\Python\Python310\lib\site-packages\playwright_impl_sync_base.py", line 89, in _sync return task.result() File "C:\Users\pc1\AppData\Local\Programs\Python\Python310\lib\site-packages\playwright_impl_page.py", line 412, in evaluate return await self._main_frame.evaluate(expression, arg) File "C:\Users\pc1\AppData\Local\Programs\Python\Python310\lib\site-packages\playwright_impl_frame.py", line 262, in evaluate await self._channel.send( File "C:\Users\pc1\AppData\Local\Programs\Python\Python310\lib\site-packages\playwright_impl_connection.py", line 43, in send return await self._connection.wrap_apicall( File "C:\Users\pc1\AppData\Local\Programs\Python\Python310\lib\site-packages\playwright_impl_connection.py", line 370, in return await result File "C:\Users\pc1\AppData\Local\Programs\Python\Python310\lib\site-packages\playwright_impl_connection.py", line 78, in inner_send result = next(iter(done)).result() playwright._impl._api_types.Error: TypeError: Cannot set properties of null (setting 'textContent') at eval (eval at evaluate (:178:30), :1:114) at UtilityScript.evaluate (:185:19) at UtilityScript. (:1:44)

hellowtf0111 commented 2 years ago

My config , i try to get a ROMANIAN post,i want a Romanian TTS i tried TTS : Google,tiktok,streamlabs AWS but : and You need to install the AWS CLI and configure your profile,i don't undestun what it's the problem.

[settings] allow_nsfw = false theme = "dark" times_to_run = 1 opacity = 0.9 storymode = false

[settings.background] background_choice = "minecraft"

[settings.tts] choice = "" aws_polly_voice = "" streamlabs_polly_voice = "" tiktok_voice = "br_001"

[reddit.thread] random = false subreddit = "Romania" post_id = "" max_comment_length = 500 post_lang = "ro" min_comments = 15

rOP123r commented 2 years ago

same problem for me

github-actions[bot] commented 2 years ago

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] commented 2 years ago

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

arifengineer commented 1 year ago

i am facing this same issue