You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Warning: “Core Pydantic V1 functionality isn't compatible with Python 3.14 or greater” when importing cloudflare #2675
Confirm this is a Python library issue and not an underlying Cloudflare API issue.
This is an issue with the Python library
Describe the bug
When importing the cloudflare package under Python 3.14, a UserWarning appears from the _compat.py module:
/.../.venv/lib/python3.14/site-packages/cloudflare/_compat.py:48: UserWarning: Core Pydantic V1 functionality isn't compatible with Python 3.14 or greater.
from pydantic.v1.typing import (
The library uses Pydantic v2 for its models, but still imports from the pydantic.v1 namespace for compatibility. This warning originates from Pydantic itself, which now emits it on Python ≥ 3.14.
Thank you for submitting an issue! This issue has been flagged for an internal Cloudflare team to take a look. If this is urgently blocking your development or deployment, please open a support case so we can serve you faster.
Activity
ma11011s commentedon Oct 15, 2025
I think it's safe to suppress the warning with:
CRAZYYYroshan-boop commentedon Oct 30, 2025
import warnings
warnings.filterwarnings("ignore", message="Core Pydantic V1 functionality isn't compatible")
CRAZYYYroshan-boop commentedon Oct 30, 2025
pyenv install 3.12.6
pyenv local 3.12.6
python -m venv .venv
source .venv/bin/activate
pip install cloudflare
KaydeeDee commentedon May 25, 2026
Thank you for submitting an issue! This issue has been flagged for an internal Cloudflare team to take a look. If this is urgently blocking your development or deployment, please open a support case so we can serve you faster.