mini-agi icon indicating copy to clipboard operation
mini-agi copied to clipboard

No module named OpenAI

Open CiquattroFPV opened this issue 1 year ago • 6 comments

I have this problem when I try to run with python 3.8 I have tried with other version too but it get too many errors

python3.8 microgpt.py "Programmatically draw a beautiful car and save the drawing in an image format of your choice on the Desktop." 
Traceback (most recent call last):
  File "microgpt.py", line 4, in <module>
    import openai
ModuleNotFoundError: No module named 'openai'

CiquattroFPV avatar Apr 19 '23 07:04 CiquattroFPV

Same..

Koalamanx avatar Apr 19 '23 07:04 Koalamanx

Did you install the requirements?

pip install -r requirements.txt

muellerberndt avatar Apr 19 '23 07:04 muellerberndt

Did you install the requirements?

pip install -r requirements.txt

of course.. I installed the openai module from pip too

CiquattroFPV avatar Apr 19 '23 08:04 CiquattroFPV

Seems to be a common issue. Check out the answers to this Stackoverflow question.

muellerberndt avatar Apr 19 '23 08:04 muellerberndt

whilst installing the requirments, it freezes and just does nothing here:

Collecting async-timeout<5.0,>=4.0.0a3 Downloading https://www.piwheels.org/simple/async-timeout/async_timeout-4.0.2-py3-none-any.whl (5.8 kB) Collecting mpmath>=0.19 Downloading https://www.piwheels.org/simple/mpmath/mpmath-1.3.0-py3-none-any.whl (536 kB) |████████████████████████████████| 536 kB 126 kB/s Requirement already satisfied: pillow!=8.3.*,>=5.3.0 in /usr/lib/python3/dist-packages (from torchvision->sentence-transformers>=2.2.2->chromadb==0.3.11->-r requirements.txt (line 9)) (8.1.2) Building wheels for collected packages: duckdb, hnswlib Building wheel for duckdb (setup.py) ... -

I just wait and wait and nothing happens. I managed to install openai regularly though, but when I run the script I get:

Traceback (most recent call last): File "/home/kevin/micro-gpt/microgpt.py", line 5, in from termcolor import colored ModuleNotFoundError: No module named 'termcolor'

Koalamanx avatar Apr 19 '23 09:04 Koalamanx

I just wait and wait and nothing happens. I managed to install openai regularly though, but when I run the script I get:

Traceback (most recent call last): File "/home/kevin/micro-gpt/microgpt.py", line 5, in from termcolor import colored ModuleNotFoundError: No module named 'termcolor'

Run pip install termcolor.

muellerberndt avatar Apr 19 '23 09:04 muellerberndt

I believe we can close this since the error in the OP is caused by the OpenAI library.

muellerberndt avatar Apr 20 '23 10:04 muellerberndt