Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking β€œSign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
1 of 3 tasks
aniskasmi opened this issue Mar 14, 2025 Β· 5 comments
Open
1 of 3 tasks
Assignees
Labels
bug Something isn't working

Comments

@aniskasmi
Copy link

aniskasmi commented Mar 14, 2025 β€’

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.
  • I'd prefer the AgentOps team to handle this update.
@aniskasmi aniskasmi added the bug Something isn't working label Mar 14, 2025
@the-praxs
Copy link
Member

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

@the-praxs the-praxs self-assigned this Mar 14, 2025
@aniskasmi
Copy link
Author

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]", ]

@the-praxs
Copy link
Member

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

@aniskasmi
Copy link
Author

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-praxs
Copy link
Member

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants