RedditVideoMakerBot icon indicating copy to clipboard operation
RedditVideoMakerBot copied to clipboard

crashes on pngs

Open LegendHectorLOL opened this issue 4 years ago • 5 comments

C:\Users\Hector\Desktop\RedditVideoMakerBot-master>py main.py


                              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.


┌──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┐
│ Getting AskReddit threads...                                                                                                                                                                                                             │
└──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┘
Video will be: Men of Reddit, what are some questions you’ve always wanted to ask women, but couldn’t because it would seem weird? 👍
Received AskReddit threads Successfully.
┌──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┐
│ Saving Text to MP3 files 🎶                                                                                                                                                                                                              │
└──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┘
Saving... ---------------------------------------- 0.2 it/s
Saved Text to MP3 files Successfully.
┌──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┐
│ Downloading Screenshots of Reddit Posts 📷                                                                                                                                                                                               │
└──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┘
Launching Headless Browser...
Traceback (most recent call last):
  File "C:\Users\Hector\Desktop\RedditVideoMakerBot-master\main.py", line 19, in <module>
    download_screenshots_of_reddit_posts(reddit_object, number_of_comments)
  File "C:\Users\Hector\Desktop\RedditVideoMakerBot-master\video_creation\screenshot_downloader.py", line 26, in download_screenshots_of_reddit_posts
    page.goto(reddit_object["thread_url"])
  File "C:\Users\Hector\AppData\Local\Programs\Python\Python39\lib\site-packages\playwright\sync_api\_generated.py", line 7413, in goto
    self._sync(
  File "C:\Users\Hector\AppData\Local\Programs\Python\Python39\lib\site-packages\playwright\_impl\_sync_base.py", line 88, in _sync
    return task.result()
  File "C:\Users\Hector\AppData\Local\Programs\Python\Python39\lib\site-packages\playwright\_impl\_page.py", line 493, in goto
    return await self._main_frame.goto(**locals_to_params(locals()))
  File "C:\Users\Hector\AppData\Local\Programs\Python\Python39\lib\site-packages\playwright\_impl\_frame.py", line 122, in goto
    await self._channel.send("goto", locals_to_params(locals()))
  File "C:\Users\Hector\AppData\Local\Programs\Python\Python39\lib\site-packages\playwright\_impl\_connection.py", line 39, in send
    return await self.inner_send(method, params, False)
  File "C:\Users\Hector\AppData\Local\Programs\Python\Python39\lib\site-packages\playwright\_impl\_connection.py", line 63, in inner_send
    result = next(iter(done)).result()
playwright._impl._api_types.TimeoutError: Timeout 30000ms exceeded.
=========================== logs ===========================
navigating to "https://www.reddit.com/r/AskReddit/comments/v1m1ad/men_of_reddit_what_are_some_questions_youve/", waiting until "load"
============================================================

LegendHectorLOL avatar Jun 01 '22 01:06 LegendHectorLOL

Getting the same error here.

FreebieII avatar Jun 01 '22 08:06 FreebieII

It looks like it's having errors trying to load the reddit thread. Sometimes reddit goes down (notoriously).

Does this error still happen?

elebumm avatar Jun 01 '22 12:06 elebumm

It looks like it's having errors trying to load the reddit thread. Sometimes reddit goes down (notoriously).

Does this error still happen?

No, I solved it by completely removing the timeout. (by setting timeout=0 #34

FreebieII avatar Jun 01 '22 12:06 FreebieII

It looks like it's having errors trying to load the reddit thread. Sometimes reddit goes down (notoriously). Does this error still happen?

No, I solved it by completely removing the timeout. (by setting timeout=0

C:\Users\Hector\Desktop\RedditVideoMakerBot-master>py main.py


                              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.


┌──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┐
│ Getting AskReddit threads...                                                                                                                                                                                                             │
└──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┘
Video will be: Men of Reddit, what are some questions you’ve always wanted to ask women, but couldn’t because it would seem weird? 👍
Received AskReddit threads Successfully.
┌──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┐
│ Saving Text to MP3 files 🎶                                                                                                                                                                                                              │
└──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┘
Saving... ---------------------------------------- 0.2 it/s
Saved Text to MP3 files Successfully.
┌──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┐
│ Downloading Screenshots of Reddit Posts 📷                                                                                                                                                                                               │
└──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┘
Launching Headless Browser...
Traceback (most recent call last):
  File "C:\Users\Hector\Desktop\RedditVideoMakerBot-master\main.py", line 19, in <module>
    download_screenshots_of_reddit_posts(reddit_object, number_of_comments)
  File "C:\Users\Hector\Desktop\RedditVideoMakerBot-master\video_creation\screenshot_downloader.py", line 26, in download_screenshots_of_reddit_posts
    page.goto(reddit_object["thread_url"])
  File "C:\Users\Hector\AppData\Local\Programs\Python\Python39\lib\site-packages\playwright\sync_api\_generated.py", line 7413, in goto
    self._sync(
  File "C:\Users\Hector\AppData\Local\Programs\Python\Python39\lib\site-packages\playwright\_impl\_sync_base.py", line 88, in _sync
    return task.result()
  File "C:\Users\Hector\AppData\Local\Programs\Python\Python39\lib\site-packages\playwright\_impl\_page.py", line 493, in goto
    return await self._main_frame.goto(**locals_to_params(locals()))
  File "C:\Users\Hector\AppData\Local\Programs\Python\Python39\lib\site-packages\playwright\_impl\_frame.py", line 122, in goto
    await self._channel.send("goto", locals_to_params(locals()))
  File "C:\Users\Hector\AppData\Local\Programs\Python\Python39\lib\site-packages\playwright\_impl\_connection.py", line 39, in send
    return await self.inner_send(method, params, False)
  File "C:\Users\Hector\AppData\Local\Programs\Python\Python39\lib\site-packages\playwright\_impl\_connection.py", line 63, in inner_send
    result = next(iter(done)).result()
playwright._impl._api_types.TimeoutError: Timeout 30000ms exceeded.
=========================== logs ===========================
navigating to "https://www.reddit.com/r/AskReddit/comments/v1m1ad/men_of_reddit_what_are_some_questions_youve/", waiting until "load"
============================================================

Check #34 and see if that works for you

FreebieII avatar Jun 01 '22 13:06 FreebieII

Hi @LegendHectorLOL

I hope you were able to resolve your issue, I will be closing this for the time being. Feel free to re-open the issue if it has not been solved!!

Happy Coding!

FreebieII avatar Jun 06 '22 18:06 FreebieII