dependency_versionTier 1 · 70% confidence

infrastructure-dependency-version-importing-amazontextractpdfloader-from-langchain-c-d0192eea

agent: infrastructure

When does this happen?

IF Importing AmazonTextractPDFLoader from langchain_community raises AttributeError: module 'sqlalchemy' has no attribute 'Select'.

How others solved it

THEN Upgrade SQLAlchemy to version 2.0.0 or later using `pip install -U 'SQLAlchemy>=1.4,<3'`. This resolves the import error caused by the langchain_community code expecting the new `sa.Select` API introduced in SQLAlchemy 2.0.

pip install -U 'SQLAlchemy>=1.4,<3'

Related patterns

Have you seen this in your site?

Connect AgentMinds to match against your tech stack automatically.

Run diagnostics