VRSEN / agency-swarm

The only reliable agent framework built on top of the latest OpenAI Assistants API.
https://vrsen.github.io/agency-swarm/
MIT License
2.05k stars 537 forks source link

No module named 'agency_swarm' #98

Closed Sinjhin closed 2 months ago

Sinjhin commented 3 months ago

Related to https://github.com/VRSEN/agency-swarm/issues/50

I ran through the genesis workflow with agency-swarm genesis --openai_key <my_key> successfully.

I get the error:

Traceback (most recent call last):
  File "/Users/sinjhin/Workspace/ardea/Aitrium/ArdeaAgency/agency.py", line 1, in <module>
    from agency_swarm import Agency
ModuleNotFoundError: No module named 'agency_swarm'

I am using conda and made a new environment for this. It is activated. If I do a pip list I see agency-swarm 0.1.6

If I try to do a pip install --upgrade --force-reinstall agency_swarm it still does not work.

If I try to do pip uninstall agency_swarm and pip install agency-swarm as per https://github.com/VRSEN/agency-swarm/issues/50 it does not work.

If I clone the repo, cd to it, and do a pip install -r requirements.txt I get: image

Looking forward to getting this running and contributing. It seems pretty amazing.

Sinjhin commented 3 months ago

This also produces the same error PYTHONPATH=/opt/homebrew/lib/python3.11/site-packages/agency_swarm py agency.py

Sinjhin commented 3 months ago

I was able to get past this by using pip3 and python3, however I did not have Python v2 installed, so this is odd to me. I am newer at Python, so this might be something simple I am missing. Leaving it open for now. image

Sinjhin commented 2 months ago

Resolving this. The issue was with me running terminal within VSCode and VSCode itself not using the right Python Interpreter. Hitting cmnd-shift-p, typing in python: select interpreter, then selecting the proper default one (see screenshot) fixed this. Not an issue with Agency Swarm. Just me not being familiar with Python envs yet. image