pip icon indicating copy to clipboard operation
pip copied to clipboard

Resolution Too Deep Error

Open VaradharajSudhakar opened this issue 2 months ago • 6 comments

Description

I am getting below error when installing 'agent-framework'

I tried giving the specific version and set the lower bound. Still same error × Dependency resolution exceeded maximum depth ╰─> Pip cannot resolve the current dependencies as the dependency graph is too complex for pip to solve efficiently. 2025-10-14 22:33:48.072 [info] hint: Try adding lower bounds to constrain your dependencies, for example: 'package>=2.0.0' instead of just 'package'.

Link: https://pip.pypa.io/en/stable/topics/dependency-resolution/#handling-resolution-too-deep-errors 2025-10-14 22:33:51.277 [info] Traceback (most recent call last): 2025-10-14 22:33:51.278 [info] File "c:\Users\Administrator.vscode\extensions\ms-python.python-2025.16.0-win32-x64\python_files\create_venv.py", line 96, in run_process subprocess.run(args, cwd=os.getcwd(), check=True) # noqa: PTH109 ~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Python313\Lib\subprocess.py", line 577, in run raise CalledProcessError(retcode, process.args, output=stdout, stderr=stderr) subprocess.CalledProcessError: Command '['e:\Training\DockerDevelop\.venv\Scripts\python.exe', '-m', 'pip', 'install', '-r', 'e:\Training\DockerDevelop\Agents\requirements.txt']' returned non-zero exit status 1.

The above exception was the direct cause of the following exception:

Traceback (most recent call last): 2025-10-14 22:33:51.278 [info] File "c:\Users\Administrator.vscode\extensions\ms-python.python-2025.16.0-win32-x64\python_files\create_venv.py", line 271, in main(sys.argv[1:]) ~~~~^^^^^^^^^^^^^^ File "c:\Users\Administrator.vscode\extensions\ms-python.python-2025.16.0-win32-x64\python_files\create_venv.py", line 263, in main install_requirements(venv_path, requirements) ~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ File "c:\Users\Administrator.vscode\extensions\ms-python.python-2025.16.0-win32-x64\python_files\create_venv.py", line 125, in install_requirements run_process( ~~~~~~~~~~~^ [venv_path, "-m", "pip", "install", "-r", requirement], ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ "CREATE_VENV.PIP_FAILED_INSTALL_REQUIREMENTS", ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ) ^ File "c:\Users\Administrator.vscode\extensions\ms-python.python-2025.16.0-win32-x64\python_files\create_venv.py", line 98, in run_process raise VenvError(error_message) from exc VenvError: CREATE_VENV.PIP_FAILED_INSTALL_REQUIREMENTS 2025-10-14 22:33:51.293 [error] Error while running venv creation script: CREATE_VENV.PIP_FAILED_INSTALL_REQUIREMENTS 2025-10-14 22:33:51.293 [error] CREATE_VENV.PIP_FAILED_INSTALL_REQUIREMENTS

Expected behavior

No response

pip version

25.2

Python version

3.13

OS

Windows

How to Reproduce

add the 'agent-framework' in requirements.txt install the requirement file to create .venv

Output

× Dependency resolution exceeded maximum depth ╰─> Pip cannot resolve the current dependencies as the dependency graph is too complex for pip to solve efficiently. 2025-10-14 22:33:48.072 [info] hint: Try adding lower bounds to constrain your dependencies, for example: 'package>=2.0.0' instead of just 'package'.

Link: https://pip.pypa.io/en/stable/topics/dependency-resolution/#handling-resolution-too-deep-errors 2025-10-14 22:33:51.277 [info] Traceback (most recent call last): 2025-10-14 22:33:51.278 [info] File "c:\Users\Administrator.vscode\extensions\ms-python.python-2025.16.0-win32-x64\python_files\create_venv.py", line 96, in run_process subprocess.run(args, cwd=os.getcwd(), check=True) # noqa: PTH109 ~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Python313\Lib\subprocess.py", line 577, in run raise CalledProcessError(retcode, process.args, output=stdout, stderr=stderr) subprocess.CalledProcessError: Command '['e:\Training\DockerDevelop\.venv\Scripts\python.exe', '-m', 'pip', 'install', '-r', 'e:\Training\DockerDevelop\Agents\requirements.txt']' returned non-zero exit status 1.

The above exception was the direct cause of the following exception:

Traceback (most recent call last): 2025-10-14 22:33:51.278 [info] File "c:\Users\Administrator.vscode\extensions\ms-python.python-2025.16.0-win32-x64\python_files\create_venv.py", line 271, in main(sys.argv[1:]) ~~~~^^^^^^^^^^^^^^ File "c:\Users\Administrator.vscode\extensions\ms-python.python-2025.16.0-win32-x64\python_files\create_venv.py", line 263, in main install_requirements(venv_path, requirements) ~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ File "c:\Users\Administrator.vscode\extensions\ms-python.python-2025.16.0-win32-x64\python_files\create_venv.py", line 125, in install_requirements run_process( ~~~~~~~~~~~^ [venv_path, "-m", "pip", "install", "-r", requirement], ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ "CREATE_VENV.PIP_FAILED_INSTALL_REQUIREMENTS", ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ) ^ File "c:\Users\Administrator.vscode\extensions\ms-python.python-2025.16.0-win32-x64\python_files\create_venv.py", line 98, in run_process raise VenvError(error_message) from exc VenvError: CREATE_VENV.PIP_FAILED_INSTALL_REQUIREMENTS 2025-10-14 22:33:51.293 [error] Error while running venv creation script: CREATE_VENV.PIP_FAILED_INSTALL_REQUIREMENTS 2025-10-14 22:33:51.293 [error] CREATE_VENV.PIP_FAILED_INSTALL_REQUIREMENTS

Code of Conduct

VaradharajSudhakar avatar Oct 15 '25 09:10 VaradharajSudhakar

Hi @VaradharajSudhakar thanks for reporting this issue, however I unfortunately can not reproduce it:

$ python -V
Python 3.13.8
$ pip -V
pip 25.2 from /home/gts/opensource/support/pip/13623/.venv/lib/python3.13/site-packages/pip (python 3.13)
$ pip install --dry-run agent-framework
...
Would install PyJWT-2.10.1 PyYAML-6.0.3 SQLAlchemy-2.0.44 a2a-sdk-0.3.8 agent-framework-1.0.0b251007 agent-framework-a2a-1.0.0b251007 agent-framework-azure-ai-1.0.0b251007 agent-framework-copilotstudio-1.0.0b251007 agent-framework-core-1.0.0b251007 agent-framework-devui-1.0.0b251007 agent-framework-mem0-1.0.0b251007 agent-framework-redis-1.0.0b251007 aiofiles-25.1.0 aiohappyeyeballs-2.6.1 aiohttp-3.13.0 aiosignal-1.4.0 annotated-types-0.7.0 anyio-4.11.0 asgiref-3.10.0 attrs-25.4.0 azure-ai-agents-1.2.0b5 azure-ai-projects-1.1.0b4 azure-core-1.36.0 azure-core-tracing-opentelemetry-1.0.0b12 azure-identity-1.25.1 azure-monitor-opentelemetry-1.8.1 azure-monitor-opentelemetry-exporter-1.0.0b44 azure-storage-blob-12.26.0 backoff-2.2.1 cachetools-6.2.1 certifi-2025.10.5 cffi-2.0.0 charset-normalizer-3.4.4 click-8.3.0 cryptography-46.0.2 distro-1.9.0 fastapi-0.119.0 fixedint-0.1.6 frozenlist-1.8.0 google-api-core-2.26.0 google-auth-2.41.1 googleapis-common-protos-1.70.0 greenlet-3.2.4 grpcio-1.75.1 h11-0.16.0 h2-4.3.0 hpack-4.1.0 httpcore-1.0.9 httptools-0.7.1 httpx-0.28.1 httpx-sse-0.4.3 hyperframe-6.1.0 idna-3.11 importlib_metadata-8.7.0 isodate-0.7.2 jiter-0.11.0 jsonpath-ng-1.7.0 jsonschema-4.25.1 jsonschema-specifications-2025.9.1 mcp-1.17.0 mem0ai-0.1.118 microsoft-agents-activity-0.4.0 microsoft-agents-copilotstudio-client-0.4.0 microsoft-agents-hosting-core-0.4.0 ml_dtypes-0.5.3 msal-1.34.0 msal-extensions-1.3.1 msrest-0.7.1 multidict-6.7.0 numpy-2.3.3 oauthlib-3.3.1 openai-1.109.1 opentelemetry-api-1.37.0 opentelemetry-exporter-otlp-proto-common-1.37.0 opentelemetry-exporter-otlp-proto-grpc-1.37.0 opentelemetry-instrumentation-0.58b0 opentelemetry-instrumentation-asgi-0.58b0 opentelemetry-instrumentation-dbapi-0.58b0 opentelemetry-instrumentation-django-0.58b0 opentelemetry-instrumentation-fastapi-0.58b0 opentelemetry-instrumentation-flask-0.58b0 opentelemetry-instrumentation-psycopg2-0.58b0 opentelemetry-instrumentation-requests-0.58b0 opentelemetry-instrumentation-urllib-0.58b0 opentelemetry-instrumentation-urllib3-0.58b0 opentelemetry-instrumentation-wsgi-0.58b0 opentelemetry-proto-1.37.0 opentelemetry-resource-detector-azure-0.1.5 opentelemetry-sdk-1.37.0 opentelemetry-semantic-conventions-0.58b0 opentelemetry-semantic-conventions-ai-0.4.13 opentelemetry-util-http-0.58b0 packaging-25.0 ply-3.11 portalocker-3.2.0 posthog-6.7.7 propcache-0.4.1 proto-plus-1.26.1 protobuf-5.29.5 psutil-7.1.0 pyasn1-0.6.1 pyasn1_modules-0.4.2 pycparser-2.23 pydantic-2.12.2 pydantic-settings-2.11.0 pydantic_core-2.41.4 python-dateutil-2.9.0.post0 python-dotenv-1.1.1 python-multipart-0.0.20 python-ulid-3.1.0 pytz-2025.2 qdrant-client-1.15.1 redis-6.4.0 redisvl-0.9.1 referencing-0.37.0 requests-2.32.5 requests-oauthlib-2.0.0 rpds-py-0.27.1 rsa-4.9.1 six-1.17.0 sniffio-1.3.1 sse-starlette-3.0.2 starlette-0.48.0 tenacity-9.1.2 tqdm-4.67.1 typing-inspection-0.4.2 typing_extensions-4.15.0 urllib3-2.5.0 uvicorn-0.37.0 uvloop-0.21.0 watchfiles-1.1.1 websockets-15.0.1 wrapt-1.17.3 yarl-1.22.0 zipp-3.23.0

Can you provide anything else in your requirements.txt and anything else already in your environment (you can get this by running pip freeze).

If you have lots of things already in your environment you might find a solution by adding the --upgrade flag, as outlined in the troubleshooting guide: https://pip.pypa.io/en/stable/topics/dependency-resolution/#use-the-upgrade-flag

Finally if you are completely stuck you and need a solution, an alternate tool might be to use uv pip: https://docs.astral.sh/uv/pip/packages/ / https://docs.astral.sh/uv/getting-started/installation/.

notatallshaw avatar Oct 15 '25 13:10 notatallshaw

Hey @notatallshaw .. I hate to do it again (or maybe that is actualy helpful for future fixes) - but have again a problem we can't diagnose ourselves in Airflow:

You can see it here: https://github.com/apache/airflow/actions/runs/18990845640/job/54245307363#step:9:655 - and this time it is the same for all Python versions.

I tried to address an earlier variant of it, where we seemed to go through big number of setuptools versions https://github.com/apache/airflow/pull/57581 - but the only thing it helped is that we are no longer go through those versions but "resolution too deep" is still there.

The command we run (after having all provider packages and airflow built from "main") is this one:

pip install --root-user-action ignore --no-binary lxml,xmlsec 'apache-airflow[aiobotocore,amazon,async,celery,cncf-kubernetes,common-io,common-messaging,docker,elasticsearch,fab,ftp,git,google,google-auth,graphviz,grpc,hashicorp,http,ldap,microsoft-azure,mysql,odbc,openlineage,pandas,postgres,redis,sendgrid,sftp,slack,snowflake,ssh,statsd,uv] @ file:///docker-context-files/apache_airflow-3.2.0-py3-none-any.whl' 'apache-airflow-core @ file:///docker-context-files/apache_airflow_core-3.2.0-py3-none-any.whl' 'apache-airflow-providers-amazon @ file:///docker-context-files/apache_airflow_providers_amazon-9.16.0-py3-none-any.whl' 'apache-airflow-providers-celery @ file:///docker-context-files/apache_airflow_providers_celery-3.13.0-py3-none-any.whl' 'apache-airflow-providers-cncf-kubernetes @ file:///docker-context-files/apache_airflow_providers_cncf_kubernetes-10.9.0-py3-none-any.whl' 'apache-airflow-providers-common-compat @ file:///docker-context-files/apache_airflow_providers_common_compat-1.8.0-py3-none-any.whl' 'apache-airflow-providers-common-io @ file:///docker-context-files/apache_airflow_providers_common_io-1.6.4-py3-none-any.whl' 'apache-airflow-providers-common-messaging @ file:///docker-context-files/apache_airflow_providers_common_messaging-2.0.0-py3-none-any.whl' 'apache-airflow-providers-common-sql @ file:///docker-context-files/apache_airflow_providers_common_sql-1.28.2-py3-none-any.whl' 'apache-airflow-providers-docker @ file:///docker-context-files/apache_airflow_providers_docker-4.4.4-py3-none-any.whl' 'apache-airflow-providers-elasticsearch @ file:///docker-context-files/apache_airflow_providers_elasticsearch-6.3.4-py3-none-any.whl' 'apache-airflow-providers-fab @ file:///docker-context-files/apache_airflow_providers_fab-3.0.1-py3-none-any.whl' 'apache-airflow-providers-ftp @ file:///docker-context-files/apache_airflow_providers_ftp-3.13.2-py3-none-any.whl' 'apache-airflow-providers-git @ file:///docker-context-files/apache_airflow_providers_git-0.0.9-py3-none-any.whl' 'apache-airflow-providers-google @ file:///docker-context-files/apache_airflow_providers_google-18.1.0-py3-none-any.whl' 'apache-airflow-providers-grpc @ file:///docker-context-files/apache_airflow_providers_grpc-3.8.2-py3-none-any.whl' 'apache-airflow-providers-hashicorp @ file:///docker-context-files/apache_airflow_providers_hashicorp-4.3.3-py3-none-any.whl' 'apache-airflow-providers-http @ file:///docker-context-files/apache_airflow_providers_http-5.4.0-py3-none-any.whl' 'apache-airflow-providers-microsoft-azure @ file:///docker-context-files/apache_airflow_providers_microsoft_azure-12.8.0-py3-none-any.whl' 'apache-airflow-providers-mysql @ file:///docker-context-files/apache_airflow_providers_mysql-6.3.4-py3-none-any.whl' 'apache-airflow-providers-odbc @ file:///docker-context-files/apache_airflow_providers_odbc-4.10.2-py3-none-any.whl' 'apache-airflow-providers-openlineage @ file:///docker-context-files/apache_airflow_providers_openlineage-2.7.3-py3-none-any.whl' 'apache-airflow-providers-postgres @ file:///docker-context-files/apache_airflow_providers_postgres-6.4.0-py3-none-any.whl' 'apache-airflow-providers-redis @ file:///docker-context-files/apache_airflow_providers_redis-4.3.2-py3-none-any.whl' 'apache-airflow-providers-sendgrid @ file:///docker-context-files/apache_airflow_providers_sendgrid-4.1.4-py3-none-any.whl' 'apache-airflow-providers-sftp @ file:///docker-context-files/apache_airflow_providers_sftp-5.4.1-py3-none-any.whl' 'apache-airflow-providers-slack @ file:///docker-context-files/apache_airflow_providers_slack-9.4.0-py3-none-any.whl' 'apache-airflow-providers-smtp @ file:///docker-context-files/apache_airflow_providers_smtp-2.3.1-py3-none-any.whl' 'apache-airflow-providers-snowflake @ file:///docker-context-files/apache_airflow_providers_snowflake-6.6.0-py3-none-any.whl' 'apache-airflow-providers-ssh @ file:///docker-context-files/apache_airflow_providers_ssh-4.1.5-py3-none-any.whl' 'apache-airflow-providers-standard @ file:///docker-context-files/apache_airflow_providers_standard-1.9.1-py3-none-any.whl' 'apache-airflow-task-sdk @ file:///docker-context-files/apache_airflow_task_sdk-1.2.0-py3-none-any.whl'

And it fails in this way:

  #57 94.50   Downloading azure_storage_file_share-12.21.0-py3-none-any.whl.metadata (50 kB)
  #57 100.4 INFO: This is taking longer than usual. You might need to provide the dependency resolver with stricter constraints to reduce runtime. See https://pip.pypa.io/warnings/backtracking for guidance. If you want to abort this run, press Ctrl + C.
  #57 108.4   Downloading azure_storage_file_share-12.20.1-py3-none-any.whl.metadata (49 kB)
  #57 122.2   Downloading azure_storage_file_share-12.20.0-py3-none-any.whl.metadata (49 kB)
  #57 136.4   Downloading azure_storage_file_share-12.19.0-py3-none-any.whl.metadata (48 kB)
  #57 150.2   Downloading azure_storage_file_share-12.18.0-py3-none-any.whl.metadata (48 kB)
  #57 164.1   Downloading azure_storage_file_share-12.17.0-py3-none-any.whl.metadata (47 kB)
  #57 178.1   Downloading azure_storage_file_share-12.16.0-py3-none-any.whl.metadata (47 kB)
  #57 191.8   Downloading azure_storage_file_share-12.15.0-py3-none-any.whl.metadata (45 kB)
  #57 205.6   Downloading azure_storage_file_share-12.14.2-py3-none-any.whl.metadata (45 kB)
  #57 219.4   Downloading azure_storage_file_share-12.14.1-py3-none-any.whl.metadata (44 kB)
  #57 233.5   Downloading azure_storage_file_share-12.14.0-py3-none-any.whl.metadata (44 kB)
  #57 247.2   Downloading azure_storage_file_share-12.13.0-py3-none-any.whl.metadata (44 kB)
  #57 261.0   Downloading azure_storage_file_share-12.12.0-py3-none-any.whl.metadata (44 kB)
  #57 275.3   Downloading azure_storage_file_share-12.11.1-py3-none-any.whl.metadata (43 kB)
  #57 289.0   Downloading azure_storage_file_share-12.11.0-py3-none-any.whl.metadata (43 kB)
  #57 302.6   Downloading azure_storage_file_share-12.10.1-py3-none-any.whl.metadata (42 kB)
  #57 316.5   Downloading azure_storage_file_share-12.10.0-py3-none-any.whl.metadata (41 kB)
  #57 330.1   Downloading azure_storage_file_share-12.9.0-py3-none-any.whl.metadata (41 kB)
  #57 343.8   Downloading azure_storage_file_share-12.8.0-py3-none-any.whl.metadata (40 kB)
  #57 357.4   Downloading azure_storage_file_share-12.7.0-py3-none-any.whl.metadata (39 kB)
  #57 371.3 Collecting azure-storage-file-datalake>=12.9.1 (from apache-airflow-providers-microsoft-azure@ file:///docker-context-files/apache_airflow_providers_microsoft_azure-12.8.0-py3-none-any.whl)
  #57 371.4   Downloading azure_storage_file_datalake-12.21.0-py3-none-any.whl.metadata (16 kB)
  #57 384.9   Downloading azure_storage_file_datalake-12.20.0-py3-none-any.whl.metadata (16 kB)
  #57 392.9   Downloading azure_storage_file_datalake-12.19.0-py3-none-any.whl.metadata (16 kB)
  #57 397.1 Collecting annotated-types>=0.6.0 (from pydantic>=2.11.0->apache-airflow-core@ file:///docker-context-files/apache_airflow_core-3.2.0-py3-none-any.whl)
  #57 397.1   Downloading annotated_types-0.6.0-py3-none-any.whl.metadata (12 kB)
  #57 397.1 Collecting aiosmtplib>=0.1.6 (from apache-airflow-providers-smtp@ file:///docker-context-files/apache_airflow_providers_smtp-2.3.1-py3-none-any.whl)
  #57 397.2   Downloading aiosmtplib-4.0.2-py3-none-any.whl.metadata (3.6 kB)
  #57 397.2 Collecting aiomysql>=0.2.0 (from apache-airflow-providers-mysql@ file:///docker-context-files/apache_airflow_providers_mysql-6.3.4-py3-none-any.whl)
  #57 397.2   Downloading aiomysql-0.3.1-py3-none-any.whl.metadata (5.1 kB)
  #57 397.3 Collecting aiohappyeyeballs>=2.5.0 (from aiohttp>=3.12.14->apache-airflow-providers-http@ file:///docker-context-files/apache_airflow_providers_http-5.4.0-py3-none-any.whl)
  #57 397.3   Downloading aiohappyeyeballs-2.6.0-py3-none-any.whl.metadata (5.9 kB)
  #57 397.4 Collecting PyJWT[crypto]<3,>=1.0.0 (from msal<2,>=1.16.0->azure-datalake-store>=0.0.45->apache-airflow-providers-microsoft-azure@ file:///docker-context-files/apache_airflow_providers_microsoft_azure-12.8.0-py3-none-any.whl)
  #57 397.4   Downloading PyJWT-2.10.0-py3-none-any.whl.metadata (4.0 kB)
  #57 397.5 Collecting msal<2,>=1.16.0 (from azure-datalake-store>=0.0.45->apache-airflow-providers-microsoft-azure@ file:///docker-context-files/apache_airflow_providers_microsoft_azure-12.8.0-py3-none-any.whl)
  #57 397.5   Downloading msal-1.33.0-py3-none-any.whl.metadata (11 kB)
  #57 397.5 Collecting azure-core>=1.21.1 (from microsoft-kiota-authentication-azure<2.0.0,>=1.9.4->apache-airflow-providers-microsoft-azure@ file:///docker-context-files/apache_airflow_providers_microsoft_azure-12.8.0-py3-none-any.whl)
  #57 397.5   Downloading azure_core-1.35.1-py3-none-any.whl.metadata (46 kB)
  #57 397.6 Collecting adlfs>=2023.10.0 (from apache-airflow-providers-microsoft-azure@ file:///docker-context-files/apache_airflow_providers_microsoft_azure-12.8.0-py3-none-any.whl)
  #57 397.6   Downloading adlfs-2024.12.0-py3-none-any.whl.metadata (7.7 kB)
  #57 397.7 Collecting a2wsgi>=1.10.8 (from apache-airflow-core@ file:///docker-context-files/apache_airflow_core-3.2.0-py3-none-any.whl)
  #57 397.7   Downloading a2wsgi-1.10.9-py3-none-any.whl.metadata (4.0 kB)
  #57 397.7 Collecting yarl<2.0,>=1.17.0 (from aiohttp>=3.12.14->apache-airflow-providers-http@ file:///docker-context-files/apache_airflow_providers_http-5.4.0-py3-none-any.whl)
  #57 397.7   Downloading yarl-1.21.0-cp310-cp310-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl.metadata (74 kB)
  #57 397.8 Collecting wtforms<4,>=3.0 (from apache-airflow-providers-fab@ file:///docker-context-files/apache_airflow_providers_fab-3.0.1-py3-none-any.whl)
  #57 397.8   Downloading wtforms-3.2.0-py3-none-any.whl.metadata (5.3 kB)
  #57 397.9 Collecting werkzeug<4,>=2.2 (from apache-airflow-providers-fab@ file:///docker-context-files/apache_airflow_providers_fab-3.0.1-py3-none-any.whl)
  #57 397.9   Downloading Werkzeug-2.2.2-py3-none-any.whl.metadata (4.4 kB)
  #57 397.9 Collecting jmespath>=0.7.0 (from apache-airflow-providers-amazon@ file:///docker-context-files/apache_airflow_providers_amazon-9.16.0-py3-none-any.whl)
  #57 398.0   Downloading jmespath-1.0.0-py3-none-any.whl.metadata (7.5 kB)
  #57 401.8 Collecting sniffio>=1.1 (from anyio->httpx>=0.25.0->apache-airflow-core@ file:///docker-context-files/apache_airflow_core-3.2.0-py3-none-any.whl)
  #57 401.8   Downloading sniffio-1.3.0-py3-none-any.whl.metadata (3.6 kB)
  #57 402.4   Downloading sniffio-1.2.0-py3-none-any.whl.metadata (3.6 kB)
  #57 403.0   Downloading sniffio-1.1.0-py3-none-any.whl.metadata (3.6 kB)
  #57 403.6 Collecting slack-sdk>=3.36.0 (from apache-airflow-providers-slack@ file:///docker-context-files/apache_airflow_providers_slack-9.4.0-py3-none-any.whl)
  #57 403.7   Downloading slack_sdk-3.36.0-py2.py3-none-any.whl.metadata (15 kB)
  #57 406.0 Collecting six>=1.9.0 (from kubernetes<35.0.0,>=32.0.0->apache-airflow-providers-cncf-kubernetes@ file:///docker-context-files/apache_airflow_providers_cncf_kubernetes-10.9.0-py3-none-any.whl)
  #57 406.1   Downloading six-1.16.0-py2.py3-none-any.whl.metadata (1.8 kB)
  #57 411.2   Downloading six-1.15.0-py2.py3-none-any.whl.metadata (1.8 kB)
  #57 416.1   Downloading six-1.14.0-py2.py3-none-any.whl.metadata (1.8 kB)
  #57 421.0   Downloading six-1.13.0-py2.py3-none-any.whl.metadata (1.9 kB)
  #57 425.8   Downloading six-1.12.0-py2.py3-none-any.whl.metadata (1.9 kB)
  #57 430.7   Downloading six-1.11.0-py2.py3-none-any.whl.metadata (1.6 kB)
  #57 435.5   Downloading six-1.10.0-py2.py3-none-any.whl.metadata (1.3 kB)
  #57 440.3   Downloading six-1.9.0-py2.py3-none-any.whl.metadata (1.3 kB)
  #57 445.1 Collecting setproctitle>=1.3.3 (from apache-airflow-core@ file:///docker-context-files/apache_airflow_core-3.2.0-py3-none-any.whl)
  #57 445.1   Downloading setproctitle-1.3.6-cp310-cp310-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata (10 kB)
  #57 488.9   Downloading setproctitle-1.3.5-cp310-cp310-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata (10 kB)
  #57 533.1   Downloading setproctitle-1.3.4-cp310-cp310-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata (10 kB)
  #57 577.2   Downloading setproctitle-1.3.3-cp310-cp310-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata (9.9 kB)
  #57 622.0 Collecting python-http-client>=3.2.1 (from sendgrid>=6.12.3->apache-airflow-providers-sendgrid@ file:///docker-context-files/apache_airflow_providers_sendgrid-4.1.4-py3-none-any.whl)
  #57 622.0   Downloading python_http_client-3.3.6-py3-none-any.whl.metadata (6.9 kB)
  #57 845.3   Downloading python_http_client-3.3.5-py3-none-any.whl.metadata (6.7 kB)
  #57 1071.3   Downloading python_http_client-3.3.4-py3-none-any.whl.metadata (6.7 kB)
  #57 1299.9   Downloading python_http_client-3.3.3-py3-none-any.whl.metadata (6.7 kB)
  #57 1532.3   Downloading python_http_client-3.3.2.tar.gz (7.8 kB)
  #57 1532.3   Installing build dependencies: started
  #57 1533.5   Installing build dependencies: finished with status 'done'
  #57 1533.5   Getting requirements to build wheel: started
  #57 1534.1   Getting requirements to build wheel: finished with status 'done'
  #57 1534.1   Preparing metadata (pyproject.toml): started
  #57 1534.7   Preparing metadata (pyproject.toml): finished with status 'done'
  #57 1769.0   Downloading python_http_client-3.3.1.tar.gz (7.2 kB)
  #57 1769.0   Installing build dependencies: started
  #57 1770.2   Installing build dependencies: finished with status 'done'
  #57 1770.2   Getting requirements to build wheel: started
  #57 1770.9   Getting requirements to build wheel: finished with status 'done'
  #57 1770.9   Preparing metadata (pyproject.toml): started
  #57 1771.4   Preparing metadata (pyproject.toml): finished with status 'done'
  #57 2008.4   Downloading python_http_client-3.3.0.tar.gz (7.2 kB)
  #57 2008.4   Installing build dependencies: started
  #57 2009.6   Installing build dependencies: finished with status 'done'
  #57 2009.6   Getting requirements to build wheel: started
  #57 2010.2   Getting requirements to build wheel: finished with status 'done'
  #57 2010.2   Preparing metadata (pyproject.toml): started
  #57 2010.8   Preparing metadata (pyproject.toml): finished with status 'done'
  #57 2249.9   Downloading python_http_client-3.2.7.tar.gz (7.0 kB)
  #57 2249.9   Installing build dependencies: started
  #57 2251.0   Installing build dependencies: finished with status 'done'
  #57 2251.0   Getting requirements to build wheel: started
  #57 2251.7   Getting requirements to build wheel: finished with status 'done'
  #57 2251.7   Preparing metadata (pyproject.toml): started
  #57 2252.2   Preparing metadata (pyproject.toml): finished with status 'done'
  #57 2494.6   Downloading python_http_client-3.2.6.tar.gz (7.0 kB)
  #57 2494.6   Installing build dependencies: started
  #57 2495.7   Installing build dependencies: finished with status 'done'
  #57 2495.7   Getting requirements to build wheel: started
  #57 2496.4   Getting requirements to build wheel: finished with status 'done'
  #57 2496.4   Preparing metadata (pyproject.toml): started
  #57 2496.9   Preparing metadata (pyproject.toml): finished with status 'done'
  #57 2741.7   Downloading python_http_client-3.2.5.tar.gz (7.0 kB)
  #57 2741.7   Installing build dependencies: started
  #57 2742.9   Installing build dependencies: finished with status 'done'
  #57 2742.9   Getting requirements to build wheel: started
  #57 2743.6   Getting requirements to build wheel: finished with status 'done'
  #57 2743.6   Preparing metadata (pyproject.toml): started
  #57 2744.1   Preparing metadata (pyproject.toml): finished with status 'done'
  #57 2990.5   Downloading python_http_client-3.2.4.tar.gz (7.0 kB)
  #57 2990.5   Installing build dependencies: started
  #57 2991.7   Installing build dependencies: finished with status 'done'
  #57 2991.7   Getting requirements to build wheel: started
  #57 2992.3   Getting requirements to build wheel: finished with status 'done'
  #57 2992.3   Preparing metadata (pyproject.toml): started
  #57 2992.8   Preparing metadata (pyproject.toml): finished with status 'done'
  #57 3242.0   Downloading python_http_client-3.2.1-py3-none-any.whl.metadata (7.3 kB)
  #57 6868.3 Collecting sendgrid>=6.12.3 (from apache-airflow-providers-sendgrid@ file:///docker-context-files/apache_airflow_providers_sendgrid-4.1.4-py3-none-any.whl)
  #57 6868.4   Downloading sendgrid-6.12.3-py3-none-any.whl.metadata (12 kB)
  #57 7501.7 error: resolution-too-deep
  #57 7501.7 
  #57 7501.7 × Dependency resolution exceeded maximum depth
  #57 7501.7 ╰─> Pip cannot resolve the current dependencies as the dependency graph is too complex for pip to solve efficiently.
  #57 7501.7 

I hope (after the successful release of 25.3 (congrats!) you might have a bit of time to look at this ?

potiuk avatar Nov 01 '25 10:11 potiuk

Uninstall Python 3.13.x and install 3.14 to replicate the same

Get Outlook for Androidhttps://aka.ms/AAb9ysg


From: Jarek Potiuk @.> Sent: Saturday, November 1, 2025 6:59:49 AM To: pypa/pip @.> Cc: Sudhakar Varadharaj @.>; Mention @.> Subject: Re: [pypa/pip] Resolution Too Deep Error (Issue #13623)

[https://avatars.githubusercontent.com/u/595491?s=20&v=4]potiuk left a comment (pypa/pip#13623)https://github.com/pypa/pip/issues/13623#issuecomment-3476212789

Hey @notatallshawhttps://github.com/notatallshaw .. I hate to do it again (or maybe that is actualy helpful for future fixes) - but have again a problem we can't diagnose ourselves in Airflow:

You can see it here: https://github.com/apache/airflow/actions/runs/18990845640/job/54245307363#step:9:655 - and this time it is the same for all Python versions.

I tried to address an earlier variant of it, where we seemed to go through big number of setuptools versions apache/airflow#57581https://github.com/apache/airflow/pull/57581 - but the only thing it helped is that we are no longer go through those versions but "resolution too deep" is still there.

The command we run (after having all provider packages and airflow built from "main") is this one:

pip install --root-user-action ignore --no-binary lxml,xmlsec 'apache-airflow[aiobotocore,amazon,async,celery,cncf-kubernetes,common-io,common-messaging,docker,elasticsearch,fab,ftp,git,google,google-auth,graphviz,grpc,hashicorp,http,ldap,microsoft-azure,mysql,odbc,openlineage,pandas,postgres,redis,sendgrid,sftp,slack,snowflake,ssh,statsd,uv] @ file:///docker-context-files/apache_airflow-3.2.0-py3-none-any.whl' 'apache-airflow-core @ file:///docker-context-files/apache_airflow_core-3.2.0-py3-none-any.whl' 'apache-airflow-providers-amazon @ file:///docker-context-files/apache_airflow_providers_amazon-9.16.0-py3-none-any.whl' 'apache-airflow-providers-celery @ file:///docker-context-files/apache_airflow_providers_celery-3.13.0-py3-none-any.whl' 'apache-airflow-providers-cncf-kubernetes @ file:///docker-context-files/apache_airflow_providers_cncf_kubernetes-10.9.0-py3-none-any.whl' 'apache-airflow-providers-common-compat @ file:///docker-context-files/apache_airflow_providers_common_compat-1.8.0-py3-none-any.whl' 'apache-airflow-providers-common-io @ file:///docker-context-files/apache_airflow_providers_common_io-1.6.4-py3-none-any.whl' 'apache-airflow-providers-common-messaging @ file:///docker-context-files/apache_airflow_providers_common_messaging-2.0.0-py3-none-any.whl' 'apache-airflow-providers-common-sql @ file:///docker-context-files/apache_airflow_providers_common_sql-1.28.2-py3-none-any.whl' 'apache-airflow-providers-docker @ file:///docker-context-files/apache_airflow_providers_docker-4.4.4-py3-none-any.whl' 'apache-airflow-providers-elasticsearch @ file:///docker-context-files/apache_airflow_providers_elasticsearch-6.3.4-py3-none-any.whl' 'apache-airflow-providers-fab @ file:///docker-context-files/apache_airflow_providers_fab-3.0.1-py3-none-any.whl' 'apache-airflow-providers-ftp @ file:///docker-context-files/apache_airflow_providers_ftp-3.13.2-py3-none-any.whl' 'apache-airflow-providers-git @ file:///docker-context-files/apache_airflow_providers_git-0.0.9-py3-none-any.whl' 'apache-airflow-providers-google @ file:///docker-context-files/apache_airflow_providers_google-18.1.0-py3-none-any.whl' 'apache-airflow-providers-grpc @ file:///docker-context-files/apache_airflow_providers_grpc-3.8.2-py3-none-any.whl' 'apache-airflow-providers-hashicorp @ file:///docker-context-files/apache_airflow_providers_hashicorp-4.3.3-py3-none-any.whl' 'apache-airflow-providers-http @ file:///docker-context-files/apache_airflow_providers_http-5.4.0-py3-none-any.whl' 'apache-airflow-providers-microsoft-azure @ file:///docker-context-files/apache_airflow_providers_microsoft_azure-12.8.0-py3-none-any.whl' 'apache-airflow-providers-mysql @ file:///docker-context-files/apache_airflow_providers_mysql-6.3.4-py3-none-any.whl' 'apache-airflow-providers-odbc @ file:///docker-context-files/apache_airflow_providers_odbc-4.10.2-py3-none-any.whl' 'apache-airflow-providers-openlineage @ file:///docker-context-files/apache_airflow_providers_openlineage-2.7.3-py3-none-any.whl' 'apache-airflow-providers-postgres @ file:///docker-context-files/apache_airflow_providers_postgres-6.4.0-py3-none-any.whl' 'apache-airflow-providers-redis @ file:///docker-context-files/apache_airflow_providers_redis-4.3.2-py3-none-any.whl' 'apache-airflow-providers-sendgrid @ file:///docker-context-files/apache_airflow_providers_sendgrid-4.1.4-py3-none-any.whl' 'apache-airflow-providers-sftp @ file:///docker-context-files/apache_airflow_providers_sftp-5.4.1-py3-none-any.whl' 'apache-airflow-providers-slack @ file:///docker-context-files/apache_airflow_providers_slack-9.4.0-py3-none-any.whl' 'apache-airflow-providers-smtp @ file:///docker-context-files/apache_airflow_providers_smtp-2.3.1-py3-none-any.whl' 'apache-airflow-providers-snowflake @ file:///docker-context-files/apache_airflow_providers_snowflake-6.6.0-py3-none-any.whl' 'apache-airflow-providers-ssh @ file:///docker-context-files/apache_airflow_providers_ssh-4.1.5-py3-none-any.whl' 'apache-airflow-providers-standard @ file:///docker-context-files/apache_airflow_providers_standard-1.9.1-py3-none-any.whl' 'apache-airflow-task-sdk @ file:///docker-context-files/apache_airflow_task_sdk-1.2.0-py3-none-any.whl'

And it fails in this way:

#57 94.50 Downloading azure_storage_file_share-12.21.0-py3-none-any.whl.metadata (50 kB) #57 100.4 INFO: This is taking longer than usual. You might need to provide the dependency resolver with stricter constraints to reduce runtime. See https://pip.pypa.io/warnings/backtracking for guidance. If you want to abort this run, press Ctrl + C. #57 108.4 Downloading azure_storage_file_share-12.20.1-py3-none-any.whl.metadata (49 kB) #57 122.2 Downloading azure_storage_file_share-12.20.0-py3-none-any.whl.metadata (49 kB) #57 136.4 Downloading azure_storage_file_share-12.19.0-py3-none-any.whl.metadata (48 kB) #57 150.2 Downloading azure_storage_file_share-12.18.0-py3-none-any.whl.metadata (48 kB) #57 164.1 Downloading azure_storage_file_share-12.17.0-py3-none-any.whl.metadata (47 kB) #57 178.1 Downloading azure_storage_file_share-12.16.0-py3-none-any.whl.metadata (47 kB) #57 191.8 Downloading azure_storage_file_share-12.15.0-py3-none-any.whl.metadata (45 kB) #57 205.6 Downloading azure_storage_file_share-12.14.2-py3-none-any.whl.metadata (45 kB) #57 219.4 Downloading azure_storage_file_share-12.14.1-py3-none-any.whl.metadata (44 kB) #57 233.5 Downloading azure_storage_file_share-12.14.0-py3-none-any.whl.metadata (44 kB) #57 247.2 Downloading azure_storage_file_share-12.13.0-py3-none-any.whl.metadata (44 kB) #57 261.0 Downloading azure_storage_file_share-12.12.0-py3-none-any.whl.metadata (44 kB) #57 275.3 Downloading azure_storage_file_share-12.11.1-py3-none-any.whl.metadata (43 kB) #57 289.0 Downloading azure_storage_file_share-12.11.0-py3-none-any.whl.metadata (43 kB) #57 302.6 Downloading azure_storage_file_share-12.10.1-py3-none-any.whl.metadata (42 kB) #57 316.5 Downloading azure_storage_file_share-12.10.0-py3-none-any.whl.metadata (41 kB) #57 330.1 Downloading azure_storage_file_share-12.9.0-py3-none-any.whl.metadata (41 kB) #57 343.8 Downloading azure_storage_file_share-12.8.0-py3-none-any.whl.metadata (40 kB) #57 357.4 Downloading azure_storage_file_share-12.7.0-py3-none-any.whl.metadata (39 kB) #57 371.3 Collecting azure-storage-file-datalake>=12.9.1 (from apache-airflow-providers-microsoft-azure@ file:///docker-context-files/apache_airflow_providers_microsoft_azure-12.8.0-py3-none-any.whl) #57 371.4 Downloading azure_storage_file_datalake-12.21.0-py3-none-any.whl.metadata (16 kB) #57 384.9 Downloading azure_storage_file_datalake-12.20.0-py3-none-any.whl.metadata (16 kB) #57 392.9 Downloading azure_storage_file_datalake-12.19.0-py3-none-any.whl.metadata (16 kB) #57 397.1 Collecting annotated-types>=0.6.0 (from pydantic>=2.11.0->apache-airflow-core@ file:///docker-context-files/apache_airflow_core-3.2.0-py3-none-any.whl) #57 397.1 Downloading annotated_types-0.6.0-py3-none-any.whl.metadata (12 kB) #57 397.1 Collecting aiosmtplib>=0.1.6 (from apache-airflow-providers-smtp@ file:///docker-context-files/apache_airflow_providers_smtp-2.3.1-py3-none-any.whl) #57 397.2 Downloading aiosmtplib-4.0.2-py3-none-any.whl.metadata (3.6 kB) #57 397.2 Collecting aiomysql>=0.2.0 (from apache-airflow-providers-mysql@ file:///docker-context-files/apache_airflow_providers_mysql-6.3.4-py3-none-any.whl) #57 397.2 Downloading aiomysql-0.3.1-py3-none-any.whl.metadata (5.1 kB) #57 397.3 Collecting aiohappyeyeballs>=2.5.0 (from aiohttp>=3.12.14->apache-airflow-providers-http@ file:///docker-context-files/apache_airflow_providers_http-5.4.0-py3-none-any.whl) #57 397.3 Downloading aiohappyeyeballs-2.6.0-py3-none-any.whl.metadata (5.9 kB) #57 397.4 Collecting PyJWT[crypto]<3,>=1.0.0 (from msal<2,>=1.16.0->azure-datalake-store>=0.0.45->apache-airflow-providers-microsoft-azure@ file:///docker-context-files/apache_airflow_providers_microsoft_azure-12.8.0-py3-none-any.whl) #57 397.4 Downloading PyJWT-2.10.0-py3-none-any.whl.metadata (4.0 kB) #57 397.5 Collecting msal<2,>=1.16.0 (from azure-datalake-store>=0.0.45->apache-airflow-providers-microsoft-azure@ file:///docker-context-files/apache_airflow_providers_microsoft_azure-12.8.0-py3-none-any.whl) #57 397.5 Downloading msal-1.33.0-py3-none-any.whl.metadata (11 kB) #57 397.5 Collecting azure-core>=1.21.1 (from microsoft-kiota-authentication-azure<2.0.0,>=1.9.4->apache-airflow-providers-microsoft-azure@ file:///docker-context-files/apache_airflow_providers_microsoft_azure-12.8.0-py3-none-any.whl) #57 397.5 Downloading azure_core-1.35.1-py3-none-any.whl.metadata (46 kB) #57 397.6 Collecting adlfs>=2023.10.0 (from apache-airflow-providers-microsoft-azure@ file:///docker-context-files/apache_airflow_providers_microsoft_azure-12.8.0-py3-none-any.whl) #57 397.6 Downloading adlfs-2024.12.0-py3-none-any.whl.metadata (7.7 kB) #57 397.7 Collecting a2wsgi>=1.10.8 (from apache-airflow-core@ file:///docker-context-files/apache_airflow_core-3.2.0-py3-none-any.whl) #57 397.7 Downloading a2wsgi-1.10.9-py3-none-any.whl.metadata (4.0 kB) #57 397.7 Collecting yarl<2.0,>=1.17.0 (from aiohttp>=3.12.14->apache-airflow-providers-http@ file:///docker-context-files/apache_airflow_providers_http-5.4.0-py3-none-any.whl) #57 397.7 Downloading yarl-1.21.0-cp310-cp310-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl.metadata (74 kB) #57 397.8 Collecting wtforms<4,>=3.0 (from apache-airflow-providers-fab@ file:///docker-context-files/apache_airflow_providers_fab-3.0.1-py3-none-any.whl) #57 397.8 Downloading wtforms-3.2.0-py3-none-any.whl.metadata (5.3 kB) #57 397.9 Collecting werkzeug<4,>=2.2 (from apache-airflow-providers-fab@ file:///docker-context-files/apache_airflow_providers_fab-3.0.1-py3-none-any.whl) #57 397.9 Downloading Werkzeug-2.2.2-py3-none-any.whl.metadata (4.4 kB) #57 397.9 Collecting jmespath>=0.7.0 (from apache-airflow-providers-amazon@ file:///docker-context-files/apache_airflow_providers_amazon-9.16.0-py3-none-any.whl) #57 398.0 Downloading jmespath-1.0.0-py3-none-any.whl.metadata (7.5 kB) #57 401.8 Collecting sniffio>=1.1 (from anyio->httpx>=0.25.0->apache-airflow-core@ file:///docker-context-files/apache_airflow_core-3.2.0-py3-none-any.whl) #57 401.8 Downloading sniffio-1.3.0-py3-none-any.whl.metadata (3.6 kB) #57 402.4 Downloading sniffio-1.2.0-py3-none-any.whl.metadata (3.6 kB) #57 403.0 Downloading sniffio-1.1.0-py3-none-any.whl.metadata (3.6 kB) #57 403.6 Collecting slack-sdk>=3.36.0 (from apache-airflow-providers-slack@ file:///docker-context-files/apache_airflow_providers_slack-9.4.0-py3-none-any.whl) #57 403.7 Downloading slack_sdk-3.36.0-py2.py3-none-any.whl.metadata (15 kB) #57 406.0 Collecting six>=1.9.0 (from kubernetes<35.0.0,>=32.0.0->apache-airflow-providers-cncf-kubernetes@ file:///docker-context-files/apache_airflow_providers_cncf_kubernetes-10.9.0-py3-none-any.whl) #57 406.1 Downloading six-1.16.0-py2.py3-none-any.whl.metadata (1.8 kB) #57 411.2 Downloading six-1.15.0-py2.py3-none-any.whl.metadata (1.8 kB) #57 416.1 Downloading six-1.14.0-py2.py3-none-any.whl.metadata (1.8 kB) #57 421.0 Downloading six-1.13.0-py2.py3-none-any.whl.metadata (1.9 kB) #57 425.8 Downloading six-1.12.0-py2.py3-none-any.whl.metadata (1.9 kB) #57 430.7 Downloading six-1.11.0-py2.py3-none-any.whl.metadata (1.6 kB) #57 435.5 Downloading six-1.10.0-py2.py3-none-any.whl.metadata (1.3 kB) #57 440.3 Downloading six-1.9.0-py2.py3-none-any.whl.metadata (1.3 kB) #57 445.1 Collecting setproctitle>=1.3.3 (from apache-airflow-core@ file:///docker-context-files/apache_airflow_core-3.2.0-py3-none-any.whl) #57 445.1 Downloading setproctitle-1.3.6-cp310-cp310-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata (10 kB) #57 488.9 Downloading setproctitle-1.3.5-cp310-cp310-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata (10 kB) #57 533.1 Downloading setproctitle-1.3.4-cp310-cp310-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata (10 kB) #57 577.2 Downloading setproctitle-1.3.3-cp310-cp310-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata (9.9 kB) #57 622.0 Collecting python-http-client>=3.2.1 (from sendgrid>=6.12.3->apache-airflow-providers-sendgrid@ file:///docker-context-files/apache_airflow_providers_sendgrid-4.1.4-py3-none-any.whl) #57 622.0 Downloading python_http_client-3.3.6-py3-none-any.whl.metadata (6.9 kB) #57 845.3 Downloading python_http_client-3.3.5-py3-none-any.whl.metadata (6.7 kB) #57 1071.3 Downloading python_http_client-3.3.4-py3-none-any.whl.metadata (6.7 kB) #57 1299.9 Downloading python_http_client-3.3.3-py3-none-any.whl.metadata (6.7 kB) #57 1532.3 Downloading python_http_client-3.3.2.tar.gz (7.8 kB) #57 1532.3 Installing build dependencies: started #57 1533.5 Installing build dependencies: finished with status 'done' #57 1533.5 Getting requirements to build wheel: started #57 1534.1 Getting requirements to build wheel: finished with status 'done' #57 1534.1 Preparing metadata (pyproject.toml): started #57 1534.7 Preparing metadata (pyproject.toml): finished with status 'done' #57 1769.0 Downloading python_http_client-3.3.1.tar.gz (7.2 kB) #57 1769.0 Installing build dependencies: started #57 1770.2 Installing build dependencies: finished with status 'done' #57 1770.2 Getting requirements to build wheel: started #57 1770.9 Getting requirements to build wheel: finished with status 'done' #57 1770.9 Preparing metadata (pyproject.toml): started #57 1771.4 Preparing metadata (pyproject.toml): finished with status 'done' #57 2008.4 Downloading python_http_client-3.3.0.tar.gz (7.2 kB) #57 2008.4 Installing build dependencies: started #57 2009.6 Installing build dependencies: finished with status 'done' #57 2009.6 Getting requirements to build wheel: started #57 2010.2 Getting requirements to build wheel: finished with status 'done' #57 2010.2 Preparing metadata (pyproject.toml): started #57 2010.8 Preparing metadata (pyproject.toml): finished with status 'done' #57 2249.9 Downloading python_http_client-3.2.7.tar.gz (7.0 kB) #57 2249.9 Installing build dependencies: started #57 2251.0 Installing build dependencies: finished with status 'done' #57 2251.0 Getting requirements to build wheel: started #57 2251.7 Getting requirements to build wheel: finished with status 'done' #57 2251.7 Preparing metadata (pyproject.toml): started #57 2252.2 Preparing metadata (pyproject.toml): finished with status 'done' #57 2494.6 Downloading python_http_client-3.2.6.tar.gz (7.0 kB) #57 2494.6 Installing build dependencies: started #57 2495.7 Installing build dependencies: finished with status 'done' #57 2495.7 Getting requirements to build wheel: started #57 2496.4 Getting requirements to build wheel: finished with status 'done' #57 2496.4 Preparing metadata (pyproject.toml): started #57 2496.9 Preparing metadata (pyproject.toml): finished with status 'done' #57 2741.7 Downloading python_http_client-3.2.5.tar.gz (7.0 kB) #57 2741.7 Installing build dependencies: started #57 2742.9 Installing build dependencies: finished with status 'done' #57 2742.9 Getting requirements to build wheel: started #57 2743.6 Getting requirements to build wheel: finished with status 'done' #57 2743.6 Preparing metadata (pyproject.toml): started #57 2744.1 Preparing metadata (pyproject.toml): finished with status 'done' #57 2990.5 Downloading python_http_client-3.2.4.tar.gz (7.0 kB) #57 2990.5 Installing build dependencies: started #57 2991.7 Installing build dependencies: finished with status 'done' #57 2991.7 Getting requirements to build wheel: started #57 2992.3 Getting requirements to build wheel: finished with status 'done' #57 2992.3 Preparing metadata (pyproject.toml): started #57 2992.8 Preparing metadata (pyproject.toml): finished with status 'done' #57 3242.0 Downloading python_http_client-3.2.1-py3-none-any.whl.metadata (7.3 kB) #57 6868.3 Collecting sendgrid>=6.12.3 (from apache-airflow-providers-sendgrid@ file:///docker-context-files/apache_airflow_providers_sendgrid-4.1.4-py3-none-any.whl) #57 6868.4 Downloading sendgrid-6.12.3-py3-none-any.whl.metadata (12 kB) #57 7501.7 error: resolution-too-deep #57 7501.7 #57 7501.7 × Dependency resolution exceeded maximum depth #57 7501.7 ╰─> Pip cannot resolve the current dependencies as the dependency graph is too complex for pip to solve efficiently. #57 7501.7

I hope (after the successful release of 25.3 (congrats!) you might have a bit of time to look at this ?

— Reply to this email directly, view it on GitHubhttps://github.com/pypa/pip/issues/13623#issuecomment-3476212789, or unsubscribehttps://github.com/notifications/unsubscribe-auth/BENHQIQ76MTEVGKR3KB4UDD32SHCLAVCNFSM6AAAAACJHUFGUSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZTINZWGIYTENZYHE. You are receiving this because you were mentioned.Message ID: @.***>

VaradharajSudhakar avatar Nov 01 '25 11:11 VaradharajSudhakar

@VaradharajSudhakar thanks, I'll try and reproduce on Python 3.14 when I get a moment

@potiuk I think you meant to post on https://github.com/pypa/pip/issues/13281, no worries about posting multiple times, this will be a series of great examples if we ever get a significantly improved resolver.

I spent a bit of time on your ResolutionTooDeep and I am unable to come up with a solution yet, so let me give you what I found and maybe that will help:

cffi conflict

The issue is mainly driven by a cffi conflict, between cryptography and snowflake-connector-python, e.g.:

cffi<2.0.0,>=1.9 from snowflake-connector-python-3.18.0
cffi>=2.0.0; python_full_version >= "3.9" and platform_python_implementation != "PyPy" from cryptography-46.0.3

cryptography conflict

A secondary issue is a cryptography conflict, between gcloud-aio-auth and pyopenssl, e.g.:

cryptography<45.0.0,>=2.0.0 from gcloud-aio-auth-5.3.2
cryptography<47,>=45.0.7 from pyopenssl-25.3.0

azure-kusto-data 5.0.0 pins requests

This issue doesn't come up often but it triggered at least once when I was trying to solve this resolution issue. I would recommend adding azure-kusto-data != 5.0.0.

I'll try and think of how to fix these, ideally you want cffi to resolve early to 2.0.0 or greater, but I haven't yet been able to come up with a trick that forces the pip resolver to do this.

notatallshaw avatar Nov 01 '25 17:11 notatallshaw

Yep. Cross posted it in #13281. Thanks for the pointers - I will look for solution myself as well following those pointers and will comment in #13281 if I find it :)

potiuk avatar Nov 01 '25 19:11 potiuk

Hiiden my original comment to not confuse it with the original post

potiuk avatar Nov 01 '25 19:11 potiuk