<#2320 Pex fails to resolve requirements, but Pip ...
# github-notifications
c
#2320 Pex fails to resolve requirements, but Pip succeeds Issue created by NiklasRosenstein Pex version: 2.1.136 I fear this example might eventually not be reproducible when new versions of things get released, but today it fails.
Copy code
$ pex novella==0.2.6 mkdocs mkdocs-material pydoc-markdown==4.8.2 -c novella
Failed to resolve compatible distributions:
1: databind.core==4.4.2 requires typing-extensions<4.7,>=3.10.0 but typing_extensions 4.9.0 was resolved
2: databind.json==4.4.2 requires typing-extensions<4.7,>=3.10.0 but typing_extensions 4.9.0 was resolved
Copy code
$ python -m venv venv
$ venv/bin/pip install novella==0.2.6 mkdocs mkdocs-material pydoc-markdown==4.8.2
[...]
Successfully installed Deprecated-1.2.14 PyYAML-6.0.1 astor-0.8.1 babel-2.14.0 black-23.12.1 certifi-2023.11.17 charset-normalizer-3.3.2 click-8.1.7 colorama-0.4.6 craftr-dsl-0.7.7 databind.core-4.4.2 databind.json-4.4.2 docspec-2.2.1 docspec-python-2.2.1 docstring-parser-0.11 ghp-import-2.1.0 idna-3.6 importlib-metadata-7.0.1 jinja2-3.1.3 markdown-3.5.2 markupsafe-2.1.3 mergedeep-1.3.4 mkdocs-1.5.3 mkdocs-material-9.5.3 mkdocs-material-extensions-1.3.1 mypy-extensions-1.0.0 novella-0.2.6 nr-date-2.1.0 nr-stream-1.1.5 nr.util-0.8.12 packaging-23.2 paginate-0.5.6 pathspec-0.12.1 platformdirs-4.1.0 pydoc-markdown-4.8.2 pygments-2.17.2 pymdown-extensions-10.7 python-dateutil-2.8.2 pyyaml-env-tag-0.1 regex-2023.12.25 requests-2.31.0 six-1.16.0 termcolor-1.1.0 tomli-2.0.1 tomli_w-1.0.0 typeapi-2.1.1 typing-extensions-4.6.3 urllib3-2.1.0 watchdog-2.3.1 wrapt-1.16.0 yapf-0.40.2 zipp-3.17.0
Even pinning the exact versions of
mkdocs
and
mkdocs-material
doesn't fix it.
Copy code
$ pex novella==0.2.6 mkdocs==1.5.3 mkdocs-material==9.5.3 pydoc-markdown==4.8.2 -c novella -v
[same error]
Pinning
typing-extensions==4.6.3
then finally solves it. pantsbuild/pex