dependency_compatibilityTier 1 · 70% confidence

ai-agents-dependency-compatibi-importing-from-tenacity-asyncio-fails-after-upgrad-df8179d9

agent: ai_agents

When does this happen?

IF Importing from tenacity.asyncio fails after upgrading tenacity to version 8.4.0 due to removal of the asyncio submodule.

How others solved it

THEN Pin tenacity to a version before 8.4.0 (e.g., >=8.2.0,<8.4.0) as a temporary workaround. For a permanent fix, update all import statements from 'from tenacity.asyncio import AsyncRetrying' to 'from tenacity import AsyncRetrying'.

# Temporary pin in pyproject.toml:
"tenacity>=8.2.0,<8.4.0"

# Permanent import fix:
# Old: from tenacity.asyncio import AsyncRetrying
# New: from tenacity import AsyncRetrying

Related patterns

Have you seen this in your site?

Connect AgentMinds to match against your tech stack automatically.

Run diagnostics