Hello, I’m getting this dependency resolution erro...
# plugins
b
Hello, I’m getting this dependency resolution error when trying to generate-lockfiles - 🧵
Copy code
10:26:19.01 [ERROR] 1 Exception encountered:

  ProcessExecutionFailure: Process 'Generate lockfile for python-default' failed with exit code 1.
stdout:

stderr:
ERROR: Could not find a version that satisfies the requirement pantsbuild.pants.testutil<2.13,>=2.12.0a0
ERROR: No matching distribution found for pantsbuild.pants.testutil<2.13,>=2.12.0a0
1
Relevant pants.toml bits -
Copy code
[GLOBAL]
pants_version = "2.12.0"
pythonpath = ["%(buildroot)s/pants-plugins"]

# Python runtime and build settings
[python]
interpreter_constraints = [">=3.8,<3.11"]
enable_resolves = true

[python-bootstrap]
search_path = ["<PYENV_LOCAL>", "<PYENV>", "<PATH>"]

[python-infer]
inits = true

[python-repos]
indexes.add = ["<https://custom-repo.com/simple>"]

[setup-py-generation]
first_party_dependency_version_scheme = "compatible"
If I use
>=3.8,<3.10
as the IC, it works
e
Yup, Pants only runs on Python 3.7 - Python 3.9 at the moment.
Adding 3.10 support as the Pants runtime Python is tracked here: https://github.com/pantsbuild/pants/issues/14111
If you have code in your repo that can run on 3.10, you'll need a seperate resolve / contraints for the Pants plugin bits.
b
Ah, thanks. The multiple resolves will work for us 👍