RedditVideoMakerBot icon indicating copy to clipboard operation
RedditVideoMakerBot copied to clipboard

Main.py Keeps closing

Open Questionize opened this issue 4 years ago • 6 comments

Whenever I open main.py it automatically closes even when it does open the moment I type anything it closes do you know what I could do to fix this?

All I do is just open main.py

I expected it to open normally but it just keeps closing

The system I'm on is windows 10

Questionize avatar Jun 22 '22 00:06 Questionize

Are you running it in a terminal or just clicking on the main.py file?

If you have it open in a terminal, you can send the error here and I can try and help you with it. Follow along with the documentation here.

HallowedDust5 avatar Jun 22 '22 01:06 HallowedDust5

I am just clicking the main.py file

Questionize avatar Jun 23 '22 22:06 Questionize

Try running the file through terminal/command prompt. If there are any errors, they'll pop up there.

vitviki avatar Jun 24 '22 03:06 vitviki

Had the same problem . The trace back says : "Traceback (most recent call last): File "C:\Users\joppa\Downloads\RedditVideoMakerBot-master\main.py", line 4, in from dotenv import load_dotenv ModuleNotFoundError: No module named 'dotenv' "

joppari avatar Jun 24 '22 04:06 joppari

If you open requirements.txt you'll see that dotenv do gets installed with all other dependencies.

Run this command

pip install -r requirements.txt

If this doesn't fix it then just install dotevn

pip install python-dotenv

vitviki avatar Jun 24 '22 06:06 vitviki

Thank you very much. It solved my problem

joppari avatar Jun 24 '22 06:06 joppari