steep-jordan-32523
01/31/2024, 11:04 PMpants.toml to use 2.19.0.
1. tried pants check :: and it's failing on The Pip requested was pip==23.0.1 but it does not work with the interpreter selected which is CPython 3.12.1
2. I manually updated the version of pex to use (set to v2.1.161), adjusted know versions and under python set pip_version = "latest" but I'm getting the exact same error about pip requested 23.0.1...
I'm probably missing something obvious, can someone point me in the right direction please?steep-jordan-32523
01/31/2024, 11:57 PM[GLOBAL]
pants_version = "2.19.0"
...
[python]
interpreter_constraints = [">=3.12.0"]
pip_version = "latest"
...
[pex-cli]
version = "v2.1.161"
known_versions = [
"v2.1.161|macos_arm64|5bb08a677d309889b3357cd23a3a95945a4c3438cfb00ece5291dcfe89221fcc|3675619",
"v2.1.161|macos_x86_64|5bb08a677d309889b3357cd23a3a95945a4c3438cfb00ece5291dcfe89221fcc|3675619",
"v2.1.161|linux_x86_64|5bb08a677d309889b3357cd23a3a95945a4c3438cfb00ece5291dcfe89221fcc|3675619",
"v2.1.161|linux_arm64|5bb08a677d309889b3357cd23a3a95945a4c3438cfb00ece5291dcfe89221fcc|3675619"
]
Running pants help-advanced pex-cli shows that new values are picked up, lock file was regeneratedsteep-jordan-32523
02/01/2024, 12:04 AMlatest, same error. As if param is not picked up
16:03:59.28 [INFO] Initializing scheduler...
16:04:01.64 [INFO] Scheduler initialized.
16:04:03.57 [INFO] Canceled: Building mypy.pex from <resource://pants.backend.python.typecheck.mypy/mypy.lock>
16:04:04.35 [INFO] Completed: Building mypy.pex from <resource://pants.backend.python.typecheck.mypy/mypy.lock>
16:04:04.35 [ERROR] 1 Exception encountered:
Engine traceback:
in `check` goal
ProcessExecutionFailure: Process 'Building mypy.pex from <resource://pants.backend.python.typecheck.mypy/mypy.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.1 at /Users/kevin/.asdf/installs/python/3.12.1/bin/python3.12. Pip 23.0.1 requires Python <3.12,>=3.7.curved-television-6568
02/01/2024, 8:40 AMcurved-manchester-66006
02/01/2024, 3:56 PMcurved-manchester-66006
02/01/2024, 3:56 PM<resource://pants.backend.python.typecheck.mypy/mypy.lock> does not support 3.12 yetsteep-jordan-32523
02/01/2024, 4:24 PM2.1.148 as indicated in the 2.19.x notessteep-jordan-32523
02/01/2024, 5:15 PMmypy.lock as per cburroughs comment
"requires_dists": [
[...]
python_version < \"3.11\""
]
⢠__run.sh has something weird about python 3.9
[...]
PEX_PYTHON=/Users/[...]/bindings/venvs/2.19.0/bin/python3.9
PEX_ROOT=.cache/pex_root /Users/[...]/bindings/venvs/2.19.0/bin/python3.9
[...]
--pip-version 23.3.2
--python /Users/kevin/.asdf/installs/python/3.12.1/bin/python3.12steep-jordan-32523
02/01/2024, 6:32 PMpants check :: is still picking up this lock file <resource://pants.backend.python.typecheck.mypy/mypy.lock>. Is there an example somewhere on how to use the newly generated 3rdparty/python/mypy.lock?steep-jordan-32523
02/01/2024, 6:40 PM[python.resolves]
mypy = "3rdparty/python/mypy-lock.txt"
should be:
mypy = "3rdparty/python/mypy.lock"
ā
curved-manchester-66006
02/01/2024, 7:43 PMrequirements = ["//3rdparty/py#mypy",]
install_from_resolve = "whatever-it-called"
set?steep-jordan-32523
02/01/2024, 7:57 PM[python.resolves]
main_resolver = "3rdparty/python/default.lock"
mypy = "3rdparty/python/mypy.lock"
[mypy]
install_from_resolve = "mypy"
config = "mypy.ini"
so without the requirements = ... part