NeonGeckoCom / neon-llm-chatgpt

Other
0 stars 6 forks source link

[BUG] Container fails to start with ModuleNotFoundError #10

Closed NeonDaniel closed 11 months ago

NeonDaniel commented 11 months ago

Description

matplotlib is imported by openai but not installed as a dependency

Steps to Reproduce

No response

Relevant Code

No response

Other Notes

neon-llm-chatgpt-66bcd98b9-lzz67 neon-llm-chatgpt Traceback (most recent call last):
neon-llm-chatgpt-66bcd98b9-lzz67 neon-llm-chatgpt   File "/usr/local/bin/neon-llm-chatgpt", line 5, in <module>
neon-llm-chatgpt-66bcd98b9-lzz67 neon-llm-chatgpt     from neon_llm_chatgpt.__main__ import main
neon-llm-chatgpt-66bcd98b9-lzz67 neon-llm-chatgpt   File "/usr/local/lib/python3.9/site-packages/neon_llm_chatgpt/__main__.py", line 27, in <module>
neon-llm-chatgpt-66bcd98b9-lzz67 neon-llm-chatgpt     from neon_llm_chatgpt.rmq import ChatgptMQ
neon-llm-chatgpt-66bcd98b9-lzz67 neon-llm-chatgpt   File "/usr/local/lib/python3.9/site-packages/neon_llm_chatgpt/rmq.py", line 28, in <module>
neon-llm-chatgpt-66bcd98b9-lzz67 neon-llm-chatgpt     from neon_llm_chatgpt.chatgpt import ChatGPT
neon-llm-chatgpt-66bcd98b9-lzz67 neon-llm-chatgpt   File "/usr/local/lib/python3.9/site-packages/neon_llm_chatgpt/chatgpt.py", line 28, in <module>
neon-llm-chatgpt-66bcd98b9-lzz67 neon-llm-chatgpt     from openai.embeddings_utils import get_embeddings, distances_from_embeddings
neon-llm-chatgpt-66bcd98b9-lzz67 neon-llm-chatgpt   File "/usr/local/lib/python3.9/site-packages/openai/embeddings_utils.py", line 4, in <module>
neon-llm-chatgpt-66bcd98b9-lzz67 neon-llm-chatgpt     import matplotlib.pyplot as plt
neon-llm-chatgpt-66bcd98b9-lzz67 neon-llm-chatgpt ModuleNotFoundError: No module named 'matplotlib'