filip-michalsky / SalesGPT

Context-aware AI Sales Agent to automate sales outreach.
https://salesgpt.vercel.app
MIT License
2.04k stars 453 forks source link

ModuleNotFoundError: No module named 'openai.types.beta.threads.message_content' #147

Closed uptang14 closed 3 months ago

uptang14 commented 6 months ago

when running "python3 run.py --verbose True --config examples/example_cn_agent_setup.json" prompt: Traceback (most recent call last): File "/mnt/workspace/SalesGPT/run.py", line 10, in from salesgpt.agents import SalesGPT File "/mnt/workspace/SalesGPT/salesgpt/agents.py", line 17, in from litellm import acompletion File "/opt/conda/envs/salesgpt/lib/python3.10/site-packages/litellm/init.py", line 761, in from .llms.openai import OpenAIConfig, OpenAITextCompletionConfig, MistralConfig File "/opt/conda/envs/salesgpt/lib/python3.10/site-packages/litellm/llms/openai.py", line 28, in from ..types.llms.openai import * File "/opt/conda/envs/salesgpt/lib/python3.10/site-packages/litellm/types/llms/openai.py", line 12, in from openai.types.beta.threads.message_content import MessageContent ModuleNotFoundError: No module named 'openai.types.beta.threads.message_content'

Mdabo1 commented 6 months ago

delete openai and install the newest version, helped for me

pip uninstall openai 
pip install openai 
uptang14 commented 6 months ago

Thank you for your reply. But after executing the above code, the following prompt appears:ERROR: pip's dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts. salesgpt 0.1.2 requires openai==1.7.0, but you have openai 1.30.1 which is incompatible. In addition, when running "python3 run.py --verbose True --config examples/example_cn_agent_setup.json" ,the following prompt appears:Traceback (most recent call last): File "/mnt/workspace/SalesGPT/run.py", line 10, in from salesgpt.agents import SalesGPT File "/mnt/workspace/SalesGPT/salesgpt/agents.py", line 27, in from salesgpt.tools import get_tools, setup_knowledge_base File "/mnt/workspace/SalesGPT/salesgpt/tools.py", line 4, in import boto3 ModuleNotFoundError: No module named 'boto3'

hezuogongying commented 5 months ago

安装 boto3

chemik-bit commented 4 months ago

Hey @uptang14 has the issue been fixed? Hopefully the dependency improvements should have fixed this. :)