Hi! Does anyone know if it's possible to use ARM p...
# general
g
Hi! Does anyone know if it's possible to use ARM python interpreters on MacOS? I've installed CPython 3.12.0 from conda, and it doesn't seem to show up in the list of interpreters found by pants. If I set the bin folder of the conda environment directly in the interpreter search path, I get an error
Interpreters were found but they all appear to be broken
. I'm working on upgrading my project from python 3.7, which was
x86_64
only, so haven't run into this before. Not sure if it's related or if I have some kind of other issue.
h
I don't think we've seen much success in getting Pants to use conda interpreters. Can you try installing that interpreter version via pyenv and see if that works?
(I don't think it's an ARM issue per se.)
So adding the conda bin folder to the interpreter search path would be necessary, but apparently it's not sufficient.
Can you run with
-ldebug
and see if we get more details on what made them appear to be broken?
When Pants discovers an interpreter it tries to run it, and maybe that failed for some reason
How did you install that conda interpreter?
g
Sorry, I messed up the threading here, but it wasn't an ARM issue. The issue seems to be PEX not having support for 3.12, I didn't have any issues with Python 3.11. I've used pants with Conda for a couple years and never had any issues. I just create and activate an environment:
conda create -n myenv python=3.11
conda activate myenv
And conda adds its bin folder to PATH, which pants is able to find the interpreter in. This is basically the extent of my conda use with pants, I just use it to manage different interpreter versions and switch between them.
Here's the follow-up thread, it was failing when it tried to run the interpeter: https://pantsbuild.slack.com/archives/C046T6T9U/p1703178016587629
h
Great, hope that fixed things!