rhythmic-morning-87313
10/11/2023, 11:15 AMasdf
setup has 3.10.9
, 3.11.4
, 3.11.6
, and 3.12.0
?:
> pants lint ::
20:07:29.73 [ERROR] 1 Exception encountered:
Engine traceback:
in `lint` goal
ProcessExecutionFailure: Process 'Find interpreter for constraints: CPython==3.11.6' failed with exit code 102.
stdout:
stderr:
Could not find a compatible interpreter.
Interpreters were found but they all appear to be broken:
1.) /home/joongi/.asdf/installs/python/3.12.0/bin/python3.12:
Traceback (most recent call last):
File "<string>", line 4, in <module>
File "/home/joongi/.cache/pants/named_caches/pex_root/isolated/3754108aac57ec0c996f3414782585924aee601c/pex/atomic_directory.py", line 23, in <module>
from pex.third_party import attr
ImportError: cannot import name 'attr' from 'pex.third_party' (/home/joongi/.cache/pants/named_caches/pex_root/isolated/3754108aac57ec0c996f3414782585924aee601c/pex/third_party/__init__.py)
(See <https://github.com/pantsbuild/pex/issues/1027> for a list of known breaks and workarounds.)
rhythmic-morning-87313
10/11/2023, 11:15 AMrhythmic-morning-87313
10/11/2023, 11:16 AMpyenv
is empty now as i'm testing migration to asdf
):
[python]
enable_resolves = true
interpreter_constraints = ["CPython==3.11.6"]
tailor_pex_binary_targets = false
[python-bootstrap]
search_path = ["<PYENV>", "<ASDF>"]
rhythmic-morning-87313
10/11/2023, 11:18 AM> asdf list python
3.10.9
3.11.4
3.11.6
*3.12.0
rhythmic-morning-87313
10/11/2023, 11:18 AMrhythmic-morning-87313
10/11/2023, 11:21 AMasdf local python 3.11.6
, it still gets the same error with Python 3.12.0. It only works when I run asdf global python 3.11.6
...rhythmic-morning-87313
10/11/2023, 11:38 AM$HOME/.tool-versions
and BUILD_ROOT/.tool-versions
, it works.
But I get "No version is set for command python" when I try to run python
....rhythmic-morning-87313
10/11/2023, 11:39 AMBUILD_ROOT/.tool-versions
)
2. try "asdf-global" version ($HOME/.tool-versions
)
3. try all available versions in asdf list python
but there are some edge cases that fails to continue on the subsequent search targets or correctly match the interpreter compatibilityrhythmic-morning-87313
10/11/2023, 11:48 AMenough-analyst-54434
10/11/2023, 4:14 PMenough-analyst-54434
10/11/2023, 4:15 PMrhythmic-morning-87313
10/11/2023, 4:37 PMrhythmic-morning-87313
10/11/2023, 4:38 PMrhythmic-morning-87313
10/11/2023, 4:38 PMrhythmic-morning-87313
10/11/2023, 4:40 PM<ASDF_LOCAL>
before <ASDF>
in the interpreter search target list and setting asdf local python 3.11.6
(https://github.com/lablup/backend.ai/pull/1608)rhythmic-morning-87313
10/11/2023, 4:41 PM<ASDF_LOCAL>
is "included" in <ASDF>
, so this shouldn't be necessary..enough-analyst-54434
10/11/2023, 4:46 PM[pex-cli]
options, speak up.rhythmic-morning-87313
10/11/2023, 4:49 PMrhythmic-morning-87313
10/11/2023, 4:50 PMenough-analyst-54434
10/11/2023, 4:57 PMenough-analyst-54434
10/11/2023, 4:58 PMrhythmic-morning-87313
10/11/2023, 5:02 PMrhythmic-morning-87313
10/11/2023, 5:02 PMrhythmic-morning-87313
10/11/2023, 5:05 PMenough-analyst-54434
10/11/2023, 5:05 PMenough-analyst-54434
10/11/2023, 5:06 PMenough-analyst-54434
10/11/2023, 5:07 PMrhythmic-morning-87313
10/11/2023, 5:11 PMenough-analyst-54434
10/11/2023, 5:14 PMenough-analyst-54434
10/11/2023, 5:14 PMrhythmic-morning-87313
10/11/2023, 5:15 PMrhythmic-morning-87313
10/11/2023, 5:15 PMlate-advantage-75311
10/27/2023, 7:07 PM