Skip to content

Python 3.14 compatibility: Pydantic V1 deprecation warning #42

@SandeepChauhan00

Description

@SandeepChauhan00

Description

When running the backend with Python 3.14.0, a compatibility warning appears from the langchain-core dependency. The application still runs successfully, but this warning indicates potential future compatibility issues as Python 3.14 adoption increases.

Warning Message

UserWarning: Core Pydantic V1 functionality isn't compatible with Python 3.14 or greater.
from pydantic.v1.fields import FieldInfo as FieldInfoV1

Environment

  • OS: Windows 11
  • Python: 3.14.0
  • UV: 0.9.27

Steps to Reproduce

  1. Install Python 3.14
  2. Clone repository
  3. Create virtual environment with uv venv
  4. Activate virtual environment
  5. Install dependencies with uv sync
  6. Run backend with cd backend && uv run main.py
  7. Observe warning in console output

Current Behavior

  • Warning appears on every startup
  • Application runs successfully despite warning

Expected Behavior

  • No compatibility warnings
  • OR clear documentation about supported Python versions

Suggested Solutions

Option 1: Add Python version constraint in pyproject.toml (requires-python = ">=3.11,<3.14")

Option 2: Document supported versions in README.md

Option 3: Update langchain-core to a Pydantic V2 compatible version

Additional Context

  • Warning originates from langchain-core dependency
  • Python 3.14 was released recently
  • Application functionality is not affected

Willingness to Contribute

I have the project running locally on Windows and can submit a PR if maintainers indicate a preferred approach.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions