MetaGPT icon indicating copy to clipboard operation
MetaGPT copied to clipboard

metagpt 0.8.0 and langchain-openai 0.1.1 have conflicting version requirements for openai

Open SheldonLiu0412 opened this issue 1 year ago • 1 comments

Bug description

Bug solved method

Environment information

- System version: macOS 14.4 (23E214)- Python version: 3.10.14
  • LLM type and model name:
  • System version: macOS 14.4 (23E214)
  • Python version: 3.10.14
  • MetaGPT version or branch:metagpt 0.8.0

langchain-openai 0.1.1 requires openai<2.0.0,>=1.10.0, but you have openai 1.6.1 which is incompatible. metagpt 0.8.0 requires openai==1.6.1, but you have openai 1.16.2 which is incompatible.

  • packages version:langchain-openai 0.1.1,metagpt 0.8.0
  • installation method: pip Screenshots or logs

SheldonLiu0412 avatar Apr 09 '24 10:04 SheldonLiu0412

You can manually modify openai version within either one of the two, then use pip install -e SOURCE_CODE_DIRECTORY. Maybe metagpt should use openai<2.0.0,>=1.6.0 in the new version.

seehi avatar Apr 09 '24 12:04 seehi