Closed curcuz closed 7 years ago
Weird thing is that when I do the install steps by hand in a container, it works just fine. Checking further.
resin-emulated seems to get the right package, so maybe the ARM builders provide different arm version for pip than it needs?
The theory is supported by emulated builds getting ...armv7l.whl
, while the ARM builders build the packages from source...
@CameronDiver any idea maybe?
Minimal test case:
FROM resin/%%RESIN_MACHINE_NAME%%-python:2.7
RUN pip install --upgrade grpcio
CMD echo done
$ git push resin master
Counting objects: 12, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (8/8), done.
Writing objects: 100% (12/12), 1.50 KiB | 384.00 KiB/s, done.
Total 12 (delta 1), reused 0 (delta 0)
[Info] Starting build for imrehg/armwheeltest, user imrehg
[Info] Dashboard link: https://dashboard.resin.io/apps/742929/devices
[Info] Building on arm03
[Info] Fetching base image
[==================================================>] 100%
[Info] Building Dockerfile.template project
[Build] Step 1/3 : FROM resin/raspberrypi3-python:2.7
[Build] ---> c8bae3d7f3ad
[Build] Step 2/3 : RUN pip install --upgrade grpcio
[Build] ---> Running in 3784f8dc273e
[Build] Collecting grpcio
[Build] Downloading grpcio-1.7.0.tar.gz (10.0MB)
$ git push resin master:resin-emulated
Counting objects: 12, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (8/8), done.
Writing objects: 100% (12/12), 1.50 KiB | 512.00 KiB/s, done.
Total 12 (delta 1), reused 0 (delta 0)
[Info] Starting build for imrehg/armwheeltest, user imrehg
[Info] Dashboard link: https://dashboard.resin.io/apps/742929/devices
[Info] Running locally emulated build
[Info] Fetching base image
[==================================================>] 100%
[Info] Building Dockerfile.template project
[Build] Step 1/3 : FROM resin/raspberrypi3-python:2.7
[Build] ---> c8bae3d7f3ad
[Build] Step 2/3 : RUN pip install --upgrade grpcio
[Build] ---> Running in e0d78fec35b6
[Build] Collecting grpcio
[Build] Downloading grpcio-1.7.0-cp27-cp27mu-linux_armv7l.whl (5.1MB)
Yeah, that's what it looks like:
ARM builders:
Build] Step 2/4 : RUN python -c 'import os; print(os.uname())'
[Build] ---> Running in f34f599277d3
[Build] ('Linux', '3e9d4e820e46', '4.12.13', '#1 SMP Thu Sep 14 13:00:05 UTC 2017', 'armv8l')
Emulated builder:
[Build] Step 2/4 : RUN python -c 'import os; print(os.uname())'
[Build] ---> Running in d25e1fa4f352
[Build] ('Linux', '3e9d4e820e46', '4.9.9-coreos-r1', '#1 SMP Tue Feb 28 00:06:10 UTC 2017', 'armv7l')
pip install --upgrade google-assistant-library
fails: