RedditVideoMakerBot icon indicating copy to clipboard operation
RedditVideoMakerBot copied to clipboard

setup.py creates unusable .env file

Open CJthisis opened this issue 4 years ago • 6 comments

When setting up the bot for the first time with setup.py, it asks for various details to set up the bot. These details are then saved in a new .env file, which is missing lots of variables from the normal .env.template file included in the download of the bot. Because of all the missing variables, the bot will crash every time it is started.

I would simply advise to delete or disable setup.py until this issue is fixed.

CJthisis avatar Jun 21 '22 10:06 CJthisis

example

On the right is the normal .env file, on the left is the .env file created by setup.py

CJthisis avatar Jun 21 '22 11:06 CJthisis

Did you rename '.env.template' to '.env'?

The system is trying to access '.env' file but is unable to find it, so it's creating a new one.

vitviki avatar Jun 24 '22 03:06 vitviki

Did you rename '.env.template' to '.env'?

The system is trying to access '.env' file but is unable to find it, so it's creating a new one.

To clarify a little bit: I don't have a problem with the bot. I simply was curious about the automated install feature, so I tried it out on a different PC. The setup process went smoothly, there were no errors or something. But the program creates a new .env file, which is recognized by main.py, but it still doesn't work because there are so many things missing.

CJthisis avatar Jun 24 '22 06:06 CJthisis

Aah ok. Got it. I haven't used the setup feature yet, so misunderstood.

Will give it a shot once, then we can try and solve the problem together.

vitviki avatar Jun 24 '22 06:06 vitviki

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] avatar Jul 01 '22 23:07 github-actions[bot]

Update to develop

JasonLovesDoggo avatar Jul 08 '22 01:07 JasonLovesDoggo