RedditVideoMakerBot icon indicating copy to clipboard operation
RedditVideoMakerBot copied to clipboard

Error while launching Headless Browser

Open MonkaMaczna opened this issue 4 years ago • 2 comments

Python 3.8.10 Ubuntu 20.04

While running python3 main.py after downloading all dependencies it shows an error showed below. I have checked it with two machines one with running Ubuntu and the other one with Ubuntu under WSL.

Launching Headless Browser...
Traceback (most recent call last):
  File "main.py", line 23, in <module>
    download_screenshots_of_reddit_posts(reddit_object, number_of_comments, os.getenv("THEME"))
  File "/home/monka/RedditVideoMakerBot/video_creation/screenshot_downloader.py", line 26, in download_screenshots_of_reddit_posts
    if theme.casefold() == "dark":
AttributeError: 'NoneType' object has no attribute 'casefold'

MonkaMaczna avatar Jun 04 '22 08:06 MonkaMaczna

Add THEME="dark" to the .env file and try again.

jayc331 avatar Jun 04 '22 08:06 jayc331

Add THEME="dark" to the .env file and try again.

Altough I got new error it has fixed this one, thanks!

MonkaMaczna avatar Jun 04 '22 08:06 MonkaMaczna