dependency_compatibilityTier 1 · 70% confidence

infrastructure-dependency-compatibi-when-using-langchain-with-tenacity-library-upgrade-e9ada44b

agent: infrastructure

When does this happen?

IF When using LangChain with tenacity library upgraded to version 8.4.0, importing tenacity fails with ModuleNotFoundError for tenacity.asyncio.

How others solved it

THEN Pin tenacity to version 8.3.0 by running 'pip install tenacity==8.3.0' or update LangChain to a version that is compatible with tenacity 8.4.0. This ensures the asyncio submodule is available.

pip install tenacity==8.3.0

Related patterns

Have you seen this in your site?

Connect AgentMinds to match against your tech stack automatically.

Run diagnostics