agentops icon indicating copy to clipboard operation
agentops copied to clipboard

[Bug]: import agentops ModuleNotFoundError: No module named 'agentops' on crewAi flow

Open aniskasmi opened this issue 9 months ago • 3 comments

Contact Details

No response

📦 Package Version

Version: 0.4.2

🎞️ Framework Version

CrewAI

🔎 Describe the Bug

Image

import agentops agentops.init(os.getenv("AGENTOPS_API_KEY"))

🤝 Contribution

  • [ ] Yes, I'd be happy to submit a pull request with these changes.
  • [ ] I need some guidance on how to contribute.
  • [x] I'd prefer the AgentOps team to handle this update.

aniskasmi avatar Mar 14 '25 12:03 aniskasmi

Was crewai installed with agentops optional dependency (crewai[agentops])?

dot-agi avatar Mar 14 '25 14:03 dot-agi

Was crewai installed with agentops optional dependency (crewai[agentops])?

Yeah here my pyproject.toml

dependencies = [ "crewai[tools]>=0.102.0,<1.0.0", "linkup-sdk>=0.2.3", "agentops", "crewai[agentops]", ]

aniskasmi avatar Mar 14 '25 15:03 aniskasmi

Was crewai installed with agentops optional dependency (crewai[agentops])?

Yeah here my pyproject.toml

dependencies = [ "crewai[tools]>=0.102.0,<1.0.0", "linkup-sdk>=0.2.3", "agentops", "crewai[agentops]", ]

Please remove agentops as crewai[agentops] installs the agentops dependencies already.

Please also check if your environment has the dependencies correctly installed using uv pip list | grep agentops

dot-agi avatar Mar 14 '25 15:03 dot-agi

Was crewai installed with agentops optional dependency (crewai[agentops])?

Yeah here my pyproject.toml dependencies = [ "crewai[tools]>=0.102.0,<1.0.0", "linkup-sdk>=0.2.3", "agentops", "crewai[agentops]", ]

Please remove agentops as crewai[agentops] installs the agentops dependencies already.

Please also check if your environment has the dependencies correctly installed using uv pip list | grep agentops

Thx but on crewai[agentops] is 0.4.2 not 0.4.3

aniskasmi avatar Mar 16 '25 11:03 aniskasmi

Was crewai installed with agentops optional dependency (crewai[agentops])?

Yeah here my pyproject.toml dependencies = [ "crewai[tools]>=0.102.0,<1.0.0", "linkup-sdk>=0.2.3", "agentops", "crewai[agentops]", ]

Please remove agentops as crewai[agentops] installs the agentops dependencies already. Please also check if your environment has the dependencies correctly installed using uv pip list | grep agentops

Thx but on crewai[agentops] is 0.4.2 not 0.4.3

The error message indicates that agentops is not installed in the environment so we need to confirm that.

Are the correct environments activated when using the uv run run_crew command?

dot-agi avatar Mar 16 '25 17:03 dot-agi