FujiwaraChoki / MoneyPrinter

Automate Creation of YouTube Shorts using MoviePy.
MIT License
10.07k stars 1.35k forks source link

[BUG] Backend start with an error #254

Closed NalaGinrut closed 3 months ago

NalaGinrut commented 3 months ago

To Reproduce

python3 Backend/main.py

It throws: ERROR:utils:Error occurred while checking environment variables: can only concatenate str (not "NoneType") to str

FujiwaraChoki commented 3 months ago

Please follow instructions before opening an issue.

README says you need to run it through the Backend Directory.

# Run the backend server
cd Backend
python main.py
NalaGinrut commented 3 months ago

I entered the Backend directory, however it's the same result. I'm sure python3 is from the virtualenv local path.

FujiwaraChoki commented 3 months ago

Send me a screenshot of your project structure and .env file, blur out sensitive information.

NalaGinrut commented 3 months ago

image

FujiwaraChoki commented 3 months ago

Not ls, but tree command

NalaGinrut commented 3 months ago

image

FujiwaraChoki commented 3 months ago

And the .env fle? What are it's contents and where is it located?

NalaGinrut commented 3 months ago

I removed it to show the tree to you, otherwise there're too many results.

But you can see the first picture, the python3 is correctly referenced to the path, in my case, it was named .local.

NalaGinrut commented 3 months ago

oh, you mean the instance of ".env.example"? I thought .env was the common name of virtualenv generated.

NalaGinrut commented 3 months ago

Works like charming now! Thanks!