FujiwaraChoki / MoneyPrinter

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

[BUG] #209

Closed takuruk1 closed 7 months ago

takuruk1 commented 7 months ago

Describe the bug Main.py exits out with the code : ModuleNotFoundError: No module named 'g4f'

To Reproduce

  1. CD into Backend
  2. Run Python main.py

Expected behavior The script would run normally

Desktop

Additional context Full logs;

C:\Users\user\Documents\YTShorts\MoneyPrinter\Backend>python main.py Traceback (most recent call last): File "C:\Users\user\Documents\YTShorts\MoneyPrinter\Backend\main.py", line 3, in from gpt import * File "C:\Users\user\Documents\YTShorts\MoneyPrinter\Backend\gpt.py", line 3, in import g4f ModuleNotFoundError: No module named 'g4f'

djsv23 commented 7 months ago

I'm not sure if you did this because it isn't mentioned in your steps to reproduce, but you need to install the required packages, it's the 2nd step in the Readme after cloning the repository:

Install requirements

pip install -r requirements.txt

bartex100 commented 7 months ago

did you ran "pip install -r requirements.txt"?

takuruk1 commented 7 months ago

I ran the commands provided in the README.md, yes. Even pip install -r requirements.txt

kerta1n commented 7 months ago

pip3.12 install -U g4f

FujiwaraChoki commented 7 months ago

Run it as a module; python -m pip install g4f.