acoustic-library-86413
04/11/2024, 11:22 AM[python.pip_version] set to "23.1.2" and [python.interpreter_constraints] set to ['==3.12.0'] . When I run pants generate-lockfiles --resolve=requirements the pip_version in the file becomes 23.2 and when I attempt to package my project I get the following:
ProcessExecutionFailure: Process 'Building dockerfile_parser.pex from <resource://pants.backend.docker.subsystems/dockerfile.lock>' failed with exit code 1.
stdout:
stderr:
The Pip requested was pip==23.0.1 but it does not work with the interpreter selected which is CPython 3.12.0 at ~/.pyenv/versions/3.12.0/bin/python3.12. Pip 23.0.1 requires Python <3.12,>=3.7.
Can anyone help me understand where I'm going wrong? Running Pants 2.19.square-psychiatrist-19087
04/11/2024, 11:51 AMbroad-processor-92400
04/11/2024, 11:57 AM# pants.toml
[python.resolve]
...
dockerfile_parser = "3rdparty/python/dockerfile_parser.lock"
[dockerfile-parser]
install_from_resolve = "dockerfile_parser"
# BUILD
python_requirement(name="dockerfile_parser", requirements=["dockerfile>=3.2.0,<4"], resolve="dockerfile_parser")
And so on for any other tools. It's a bit of a pain.acoustic-library-86413
04/11/2024, 12:06 PMpendulum < 3.0, python < 3.12 and pendulum >= 3.0.0, python >= 3.12.0 . Since wheels aren't prebuilt for Pendulum 2 I was hoping to just upgrade the Python version in order to avoid building and publishing custom wheels. Thanks for the help both of you!brainy-parrot-55558
04/11/2024, 1:25 PM