https://pantsbuild.org/ logo
#general
Title
# general
s

strong-answer-14518

04/25/2022, 1:49 PM
Hello everyone! Has someone successfully installed pants 2.10 on a Linux OS with ARM architecture? I’ve managed to get it set-up locally on a Macbook M1 with OSX, however in a arm64v8/debian devcontainer the bootstrap fails with the following error:
Copy code
Bootstrapping Pants using /usr/bin/python3.9
Creating the virtualenv PEX.
Downloading the Pex PEX.
SHA256 fingerprint of <https://github.com/pantsbuild/pex/releases/download/v2.1.62/pex> verified.
Installing pantsbuild.pants==2.10.0 into a virtual environment at /root/.cache/pants/setup/bootstrap-Linux-aarch64/2.10.0_py39
I supposed that makes sense since Linux with ARM is not supported yet. However, as indicated here and here, I’ve tried to build from sources with both
./pants package src/python/pants:pants-packaged
and
build-support/bin/release.sh -q
but rust won’t compile some modules (tokio v1.16.1 or reqwest v0.11 with rust v1.60). Do you guys know if that might be related to versions compatibility or is it something inherent to Linux on ARM?
w

witty-crayon-22786

04/25/2022, 4:50 PM
I’ve tried to build from sources with both
./pants package src/python/pants:pants-packaged
and
build-support/bin/release.sh -q
but rust won’t compile some modules (tokio v1.16.1 or reqwest v0.11 with rust v1.60). Do you guys know if that might be related to versions compatibility or is it something inherent to Linux on ARM? (edited)
that’s surprising! no, we haven’t heard about that. commenting on https://github.com/pantsbuild/pants/issues/12183 to that effect would be helpful
s

strong-answer-14518

05/27/2022, 9:45 AM
Hello ! A little follow-up about this one @witty-crayon-22786: I think latest reqwest patch solved the issue. The installation now succeed! However when bootstrapping pants it seems that I get a
ERROR: No matching distribution found for pantsbuild.pants==2.11.0
, with latest version indicated beign
1.7.0
. I’m trying to run this on a mac M1, in a container using arm64v8/debian image with the following specs:
Linux 68462c3e6b73 5.10.104-linuxkit #1 SMP PREEMPT Thu Mar 17 17:05:54 UTC 2022 aarch64 GNU/Linux
. I’ve seen post suggesting to remove the cache and add few environment variables related to python but it didn’t help.
w

witty-crayon-22786

05/27/2022, 4:32 PM
did you end up building a PEX or wheels? if wheels, where are you expecting them to be resolved from?
4 Views