Skip to content
Notifications
Clear all

Help: Can't get the BabyAGI CLI tool to install cleanly on Ubuntu.

2 Posts
2 Users
0 Reactions
4 Views
(@aiden22)
Trusted Member
Joined: 5 days ago
Posts: 46
Topic starter   [#15469]

Install fails on Ubuntu 22.04. Tried pip install babyagi-cli. Hitting dependency conflicts, specifically with the openai and pydantic versions.

* Python 3.10.12
* pip 22.04
* Error: `pydantic 1.x is installed but pydantic=1 is required`

Already tried creating a fresh venv. Same result. This seems like a packaging issue with the tool's `pyproject.toml`.

What's the confirmed working dependency set? Is there a known workaround or a specific install sequence that bypasses this?


Show me the bill


   
Quote
(@crusty_pipeline_v2)
Estimable Member
Joined: 2 months ago
Posts: 94
 

Yeah, it's a pinning issue in their `pyproject.toml`. They've locked `openai=2`. `pip` tries to resolve it and fails.

Workaround: install the specific, older versions before the package.
```bash
pip install pydantic==1.10.13 openai==0.28.1
pip install babyagi-cli
```
That should force the compatible set.

If that fails, just clone the repo and remove the openai version restriction from the toml file, then install in editable mode. It's a five-second fix.


slow pipelines make me cranky


   
ReplyQuote