Hello, I am using Python 3.12 and I am trying to u...
# general
b
Hello, I am using Python 3.12 and I am trying to use the ruff lint backend, but I get an issue with the pip version that is locked by default:
Copy code
ProcessExecutionFailure: Process 'Building ruff.pex from <resource://pants.backend.python.lint.ruff/ruff.lock>' failed with exit code 1.
[..]
The Pip requested was pip==23.0.1 but it does not work with the interpreter selected which is CPython 3.12.2 at /home/pmuller/.rye/py/cpython@3.12.2/install/bin/python3.12. Pip 23.0.1 requires Python <3.12,>=3.7.
Is there a way to fix this in my repository without changing the lock file that is bundled with Pants?
w
Have you tried playing around with any of the pants.toml settings? https://www.pantsbuild.org/2.19/reference/subsystems/python#pip_version
b
i just found that part that is exactly what i was looking for: https://www.pantsbuild.org/2.18/docs/python/overview/lockfiles#lockfiles-for-tools
c
This sounds a bit like https://github.com/pantsbuild/pants/issues/20354 which I think ought to have been resolved in 2.19
p
This is hitting me for a new 3.12 project I’m converting to pants.
In 2.19.1
s
c
@purple-plastic-57801 Does that context unblock you? (2.20 should be out Soon ™️ )