[Bug]: import agentops ModuleNotFoundError: No module named 'agentops' on crewAi flow
Contact Details
No response
📦 Package Version
Version: 0.4.2
🎞️ Framework Version
CrewAI
🔎 Describe the Bug
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.
Was crewai installed with agentops optional dependency (crewai[agentops])?
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]", ]
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
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
agentopsascrewai[agentops]installs theagentopsdependencies 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
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
agentopsascrewai[agentops]installs theagentopsdependencies already. Please also check if your environment has the dependencies correctly installed usinguv pip list | grep agentopsThx 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?