purple-plastic-57801
07/25/2023, 12:56 AMpex3 interpreter inspect --markers --tags
. After building a pex and putting it onto the host I'm seeing an issue with a package.
No interpreter compatible with the requested constraints was found:
A distribution for cffi could not be resolved for /usr/bin/python3.9.
Found 1 distribution for cffi that do not apply:
1.) The wheel tags for cffi 1.15.1 are cp39-cp39-manylinux_2_17_aarch64, cp39-cp39-manylinux2014_aarch64 which do not match the supported tags of /usr/bin/python3.9:
cp39-cp39-manylinux_2_33_armv7l
... 409 more ...
I can install cffi-1.15.1-cp39-cp39-linux_aarch64.whl
via pip.. is there a way to tell cffi to care about this platform? Or do I just add to the complete platform command 🤔enough-analyst-54434
07/25/2023, 1:24 AMpex3 interpreter inspect
with the correct python? You should really use --python this/one/here
to be sure / explicit.enough-analyst-54434
07/25/2023, 1:30 AMpurple-plastic-57801
07/25/2023, 1:56 AMroot@fc8fa89:/usr/src/app# ls -la /usr/bin/python*
lrwxrwxrwx 1 root root 9 Apr 6 2021 /usr/bin/python3 -> python3.9
lrwxrwxrwx 1 root root 16 Apr 6 2021 /usr/bin/python3-config -> python3.9-config
-rwxr-xr-x 1 root root 3888592 Nov 18 2021 /usr/bin/python3.9
lrwxrwxrwx 1 root root 36 Nov 18 2021 /usr/bin/python3.9-config -> arm-linux-gnueabihf-python3.9-config
Running
pex3 interpreter inspect --markers --tags --python=$(which python3)
Makes no difference unfortunately.purple-plastic-57801
07/25/2023, 1:58 AMroot@fc8fa89:/usr/src/app# pex3 interpreter inspect
/usr/bin/python3.9
enough-analyst-54434
07/25/2023, 2:01 AMpackaging
which is what calcs tags.purple-plastic-57801
07/25/2023, 2:02 AMroot@fc8fa89:/usr/src/app# pex3 --version
2.1.140
root@fc8fa89:/usr/src/app# pex --version
2.1.140
enough-analyst-54434
07/25/2023, 2:02 AMenough-analyst-54434
07/25/2023, 2:03 AMpurple-plastic-57801
07/25/2023, 2:04 AMroot@fc8fa89:/usr/src/app# cat /proc/cpuinfo
processor : 0
BogoMIPS : 108.00
Features : fp asimd evtstrm crc32 cpuid
CPU implementer : 0x41
CPU architecture: 8
CPU variant : 0x0
CPU part : 0xd08
CPU revision : 3
processor : 1
BogoMIPS : 108.00
Features : fp asimd evtstrm crc32 cpuid
CPU implementer : 0x41
CPU architecture: 8
CPU variant : 0x0
CPU part : 0xd08
CPU revision : 3
processor : 2
BogoMIPS : 108.00
Features : fp asimd evtstrm crc32 cpuid
CPU implementer : 0x41
CPU architecture: 8
CPU variant : 0x0
CPU part : 0xd08
CPU revision : 3
processor : 3
BogoMIPS : 108.00
Features : fp asimd evtstrm crc32 cpuid
CPU implementer : 0x41
CPU architecture: 8
CPU variant : 0x0
CPU part : 0xd08
CPU revision : 3
Hardware : BCM2835
Revision : d03115
Serial : 100000000c3111d0
Model : Raspberry Pi 4 Model B Rev 1.5
enough-analyst-54434
07/25/2023, 2:05 AMpurple-plastic-57801
07/25/2023, 2:06 AMpurple-plastic-57801
07/25/2023, 2:07 AMenough-analyst-54434
07/25/2023, 2:09 AMenough-analyst-54434
07/25/2023, 2:10 AMenough-analyst-54434
07/25/2023, 2:11 AMpurple-plastic-57801
07/25/2023, 2:11 AMpurple-plastic-57801
07/25/2023, 2:11 AMpex_binaries(
name="binaries",
entry_points=["manager.py", "server.py"],
complete_platforms=["//.build/complete_platforms:python_39_rpi4_debian_buster"],
)
enough-analyst-54434
07/25/2023, 2:12 AMpurple-plastic-57801
07/25/2023, 2:12 AMenough-analyst-54434
07/25/2023, 2:12 AMpurple-plastic-57801
07/25/2023, 2:12 AMenough-analyst-54434
07/25/2023, 2:12 AMenough-analyst-54434
07/25/2023, 2:13 AMenough-analyst-54434
07/25/2023, 2:13 AMenough-analyst-54434
07/25/2023, 2:14 AMpurple-plastic-57801
07/25/2023, 2:14 AMenough-analyst-54434
07/25/2023, 2:14 AMpurple-plastic-57801
07/25/2023, 2:14 AMenough-analyst-54434
07/25/2023, 2:14 AMpurple-plastic-57801
07/25/2023, 2:15 AMenough-analyst-54434
07/25/2023, 2:15 AMenough-analyst-54434
07/25/2023, 2:15 AMenough-analyst-54434
07/25/2023, 2:16 AMenough-analyst-54434
07/25/2023, 2:16 AMenough-analyst-54434
07/25/2023, 2:17 AMenough-analyst-54434
07/25/2023, 2:19 AMpurple-plastic-57801
07/25/2023, 2:19 AM.deps$ ls | grep aar
cffi-1.15.1-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
charset_normalizer-3.2.0-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
google_crc32c-1.5.0-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
grpcio-1.49.1-cp39-cp39-manylinux_2_17_aarch64.whl
libcamera-0.0.4-cp39-cp39-linux_aarch64.whl
MarkupSafe-2.1.3-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
numpy-1.24.4-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
pandas-2.0.3-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Pillow-9.5.0-cp39-cp39-manylinux_2_28_aarch64.whl
protobuf-4.23.4-cp37-abi3-manylinux2014_aarch64.whl
PyWavelets-1.4.1-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
PyYAML-6.0-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
rpds_py-0.8.10-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
scikit_image-0.20.0-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
scipy-1.9.1-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
sgp4-2.22-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
enough-analyst-54434
07/25/2023, 2:19 AMpurple-plastic-57801
07/25/2023, 2:19 AMenough-analyst-54434
07/25/2023, 2:20 AMenough-analyst-54434
07/25/2023, 2:20 AMenough-analyst-54434
07/25/2023, 2:22 AMpex --complete-platform yours scipy -o script.pex
works and contains aarch64 wheels?purple-plastic-57801
07/25/2023, 2:24 AMpkill pantsd
rm -r .pants.d
rm -r ~/.cache/pants
And now it is complaining. So maybe a caching error? I rebuilt a few times.enough-analyst-54434
07/25/2023, 2:26 AMenough-analyst-54434
07/25/2023, 2:28 AMpurple-plastic-57801
07/25/2023, 2:29 AMenough-analyst-54434
07/25/2023, 2:29 AMpurple-plastic-57801
07/25/2023, 2:30 AMenough-analyst-54434
07/25/2023, 2:30 AMenough-analyst-54434
07/25/2023, 2:30 AMpurple-plastic-57801
07/25/2023, 2:30 AMenough-analyst-54434
07/25/2023, 2:30 AMpurple-plastic-57801
07/25/2023, 2:31 AMenough-analyst-54434
07/25/2023, 2:31 AMenough-analyst-54434
07/25/2023, 2:31 AMenough-analyst-54434
07/25/2023, 2:32 AMpurple-plastic-57801
07/25/2023, 2:33 AMenough-analyst-54434
07/25/2023, 2:33 AMpurple-plastic-57801
07/25/2023, 2:34 AMenough-analyst-54434
07/25/2023, 2:34 AMenough-analyst-54434
07/25/2023, 2:34 AMpurple-plastic-57801
07/25/2023, 2:34 AMenough-analyst-54434
07/25/2023, 2:34 AMenough-analyst-54434
07/25/2023, 2:35 AMenough-analyst-54434
07/25/2023, 2:35 AMenough-analyst-54434
07/25/2023, 2:36 AMpip --log log.txt install ...
then read the log.purple-plastic-57801
07/25/2023, 2:36 AMPants / Pex do not, they do not run on raspberry pi - right?Correct. I was trying to create a pex file on x86 for rpi4 via complete platforms.
enough-analyst-54434
07/25/2023, 2:37 AMpurple-plastic-57801
07/25/2023, 2:37 AMenough-analyst-54434
07/25/2023, 2:37 AMenough-analyst-54434
07/25/2023, 2:38 AMpurple-plastic-57801
07/25/2023, 2:38 AMenough-analyst-54434
07/25/2023, 2:38 AMpurple-plastic-57801
07/25/2023, 2:39 AM