orange-iron-34124
05/12/2024, 8:42 PMpants tailor --check update-build-files --check ::
execution appears an error:
[ERROR] 1 Exception encountered:
Engine traceback:
in Update all BUILD files
ProcessExecutionFailure: Process 'Building black.pex from <resource://pants.backend.python.lint.black/black.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.3 at /usr/bin/python3.12. Pip 23.0.1 requires Python < 3.12,>=3.7.
It seems to me that pex has its own predefined pip inside. Should I use previous python versions or is there a way to upgrade pip inside pex?wide-midnight-78598
05/12/2024, 8:44 PMwide-midnight-78598
05/12/2024, 8:46 PMorange-iron-34124
05/12/2024, 9:04 PMpip_version = "24.0"
in pants.toml, but it didn't affect the behaviour. The same error appears:
[ERROR] 1 Exception encountered:
Engine traceback:
in Update all BUILD files
ProcessExecutionFailure: Process 'Building black.pex from <resource://pants.backend.python.lint.black/black.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.3 at /usr/bin/python3.12. Pip 23.0.1 requires Python <3.12,>=3.7.
square-psychiatrist-19087
05/12/2024, 9:10 PMorange-iron-34124
05/13/2024, 7:21 AMpython_sources(
name="python",
sources = ["**/*.py"],
resolve = "res",
)
and
python_requirements(
name = "reqs",
source = "requirements.txt",
resolve = "res",
)
square-psychiatrist-19087
05/13/2024, 8:06 AMsquare-psychiatrist-19087
05/13/2024, 8:07 AM[black].install_from_resolve
orange-iron-34124
05/13/2024, 11:17 AM