Main.py Keeps closing
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
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.
I am just clicking the main.py file
Try running the file through terminal/command prompt. If there are any errors, they'll pop up there.
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
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
Thank you very much. It solved my problem