mikavehns / BookGPT

Writes complete books with given paramters, using GPT-3.
MIT License
353 stars 66 forks source link

Problems running the python run.py #10

Closed ILoveGithub132 closed 1 year ago

ILoveGithub132 commented 1 year ago

When I use my terminal to execute the command python run.py, this returns. I have tried fixing it myself, but nothing really seems to work. Maybe I'm just doing something wrong? Or maybe it's a bug I don't know.

Does anyone know a fix to this problem?

Traceback (most recent call last): File "C:\Users.....\BookGPT\src\run.py", line 3, in from book import Book File "C:\Users.....\BookGPT\src\book.py", line 1, in import openai ModuleNotFoundError: No module named 'openai'

VincenzoDon commented 1 year ago

download from your terminal : pip install openai

VincenzoDon commented 1 year ago

When the terminal say : No module named 'XXXXX' You write in your terminal pip instal XXXXX

SunilWarrier commented 1 year ago

The best way is before running run.py please run the following in the src folder. That will install all the required libraries. pip install -r requirements.txt

mikavehns commented 1 year ago

This error occurs when you don't install the required packages. Follow all setup instructions in the README,md file, to fix this error.