BalenaSense - error on build/deploy


I can’t seem to get this project deployed. I’ve tried so many things today and I’m at my wits end.
I have followed the instructions on your blog carefully, I even bought only the things you recommended. The BME680, the PHAT Breakout and the Pi Zero.

Here are the results of my push to my device.

balena-sense on  master
➜ git push balena master
Enumerating objects: 154, done.
Counting objects: 100% (154/154), done.
Delta compression using up to 12 threads
Compressing objects: 100% (86/86), done.
Writing objects: 100% (154/154), 75.88 KiB | 25.29 MiB/s, done.
Total 154 (delta 56), reused 154 (delta 56)
remote: Resolving deltas: 100% (56/56), done.
[Info]      Starting build for balenasensezero, user joehanson
[Info]      Dashboard link:
[Info]      Building on arm03
[Info]      Pulling previous images for caching purposes...
[Success]   Successfully pulled cache images
[influxdb]  Step 1/4 : FROM balenalib/raspberry-pi-alpine
[sensor]    Step 1/11 : FROM balenalib/raspberry-pi-python:build
[grafana]   Step 1/9 : FROM balenalib/raspberry-pi
[grafana]    ---> 8ae9943715a7
[grafana]   Step 2/9 : COPY ./grafana.ini /usr/share/grafana/conf/custom.ini
[sensor]     ---> af8fa38a531f
[sensor]    Step 2/11 : WORKDIR /tmp
[influxdb]   ---> c059510b4e18
[influxdb]  Step 2/4 : RUN apk add influxdb
[influxdb]   ---> Running in 70f07cb3a911
[sensor]     ---> e322985907bd
[sensor]    Removing intermediate container 9c40187448b1
[sensor]    Step 3/11 : RUN git clone RTIMU
[grafana]    ---> 9dabb409c729
[grafana]   Removing intermediate container 8b1f955eb207
[grafana]   Step 3/9 : COPY ./grafana.db /tmp
[sensor]     ---> Running in c7fbb55dc1c3
[influxdb]  fetch
[influxdb]  fetch
[influxdb]  (1/1) Installing influxdb (1.6.3-r0)
[influxdb]  Executing influxdb-1.6.3-r0.pre-install
[sensor]    Cloning into 'RTIMU'...
[grafana]    ---> d2518650dd8e
[grafana]   Removing intermediate container 3e02e2f7c6c1
[grafana]   Step 4/9 : COPY ./ /usr/src/app/
[grafana]    ---> 1b4046c014cc
[grafana]   Removing intermediate container eafafa1640ce
[grafana]   Step 5/9 : RUN install_packages       fontconfig-config       fonts-dejavu-core       libfontconfig1       ucf
[grafana]    ---> Running in 72895b1e5385
[influxdb]  Executing busybox-1.29.3-r10.trigger
[influxdb]  OK: 130 MiB in 71 packages
[sensor]     ---> d8f62d5ae87e
[sensor]    Removing intermediate container c7fbb55dc1c3
[sensor]    Step 4/11 : WORKDIR /tmp/RTIMU/Linux/python
[sensor]     ---> 44edfadd8e29
[sensor]    Removing intermediate container 9bf846c80769
[sensor]    Step 5/11 : RUN python ./ build
[sensor]     ---> Running in 60400f384af3
[influxdb]   ---> 9206c629c959
[sensor]    running build
[sensor]    running build_ext
[influxdb]  Removing intermediate container 70f07cb3a911
[influxdb]  Step 3/4 : RUN sed -i 's|/var/lib/influxdb|/data/influxdb|g' /etc/influxdb/influxdb.conf
[sensor]    building 'RTIMU' extension
[sensor]    creating build
[sensor]    creating build/temp.linux-armv6l-3.7
[sensor]    creating RTIMULib
[sensor]    creating RTIMULib/IMUDrivers
[sensor]    gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -DHAL_QUIET -I../../RTIMULib -I/usr/local/include/python3.7m -c PyRTIMU.cpp -o build/temp.linux-armv6l-3.7/PyRTIMU.o -std=c++0x
[influxdb]   ---> Running in 2b443412de9b
[sensor]    gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -DHAL_QUIET -I../../RTIMULib -I/usr/local/include/python3.7m -c PyRTIMU_Settings.cpp -o build/temp.linux-armv6l-3.7/PyRTIMU_Settings.o -std=c++0x
[influxdb]   ---> 3ce973774295
[influxdb]  Removing intermediate container 2b443412de9b
[influxdb]  Step 4/4 : CMD influxd
[influxdb]   ---> Running in 2c6446180284
[influxdb]   ---> a03538113318
[influxdb]  Removing intermediate container 2c6446180284
[influxdb]  Successfully built a03538113318
[sensor]    gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -DHAL_QUIET -I../../RTIMULib -I/usr/local/include/python3.7m -c PyRTIMU_RTIMU.cpp -o build/temp.linux-armv6l-3.7/PyRTIMU_RTIMU.o -std=c++0x
[sensor]    gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -DHAL_QUIET -I../../RTIMULib -I/usr/local/include/python3.7m -c PyRTIMU_RTPressure.cpp -o build/temp.linux-armv6l-3.7/PyRTIMU_RTPressure.o -std=c++0x
[sensor]    gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -DHAL_QUIET -I../../RTIMULib -I/usr/local/include/python3.7m -c PyRTIMU_RTHumidity.cpp -o build/temp.linux-armv6l-3.7/PyRTIMU_RTHumidity.o -std=c++0x
[sensor]    gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -DHAL_QUIET -I../../RTIMULib -I/usr/local/include/python3.7m -c ../../RTIMULib/RTMath.cpp -o build/temp.linux-armv6l-3.7/../../RTIMULib/RTMath.o -std=c++0x
[sensor]    gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -DHAL_QUIET -I../../RTIMULib -I/usr/local/include/python3.7m -c ../../RTIMULib/RTIMUHal.cpp -o build/temp.linux-armv6l-3.7/../../RTIMULib/RTIMUHal.o -std=c++0x
[sensor]    ../../RTIMULib/RTIMUHal.cpp: In member function ‘bool RTIMUHal::HALWrite(unsigned char, unsigned char, unsigned char, const unsigned char*, const char*)’:
[sensor]    ../../RTIMULib/RTIMUHal.cpp:156:11: warning: variable ‘ifType’ set but not used [-Wunused-but-set-variable]
[sensor]         char *ifType;
[sensor]               ^~~~~~
[sensor]    gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -DHAL_QUIET -I../../RTIMULib -I/usr/local/include/python3.7m -c ../../RTIMULib/RTFusion.cpp -o build/temp.linux-armv6l-3.7/../../RTIMULib/RTFusion.o -std=c++0x
[sensor]    gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -DHAL_QUIET -I../../RTIMULib -I/usr/local/include/python3.7m -c ../../RTIMULib/RTFusionKalman4.cpp -o build/temp.linux-armv6l-3.7/../../RTIMULib/RTFusionKalman4.o -std=c++0x
[sensor]    gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -DHAL_QUIET -I../../RTIMULib -I/usr/local/include/python3.7m -c ../../RTIMULib/RTFusionRTQF.cpp -o build/temp.linux-armv6l-3.7/../../RTIMULib/RTFusionRTQF.o -std=c++0x
[sensor]    gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -DHAL_QUIET -I../../RTIMULib -I/usr/local/include/python3.7m -c ../../RTIMULib/RTIMUSettings.cpp -o build/temp.linux-armv6l-3.7/../../RTIMULib/RTIMUSettings.o -std=c++0x
[grafana]   Reading package lists...
[sensor]    gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -DHAL_QUIET -I../../RTIMULib -I/usr/local/include/python3.7m -c ../../RTIMULib/IMUDrivers/RTIMU.cpp -obuild/temp.linux-armv6l-3.7/../../RTIMULib/IMUDrivers/RTIMU.o -std=c++0x
[sensor]    gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -DHAL_QUIET -I../../RTIMULib -I/usr/local/include/python3.7m -c ../../RTIMULib/IMUDrivers/RTIMUNull.cpp -o build/temp.linux-armv6l-3.7/../../RTIMULib/IMUDrivers/RTIMUNull.o -std=c++0x
[sensor]    gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -DHAL_QUIET -I../../RTIMULib -I/usr/local/include/python3.7m -c ../../RTIMULib/IMUDrivers/RTIMUMPU9150.cpp -o build/temp.linux-armv6l-3.7/../../RTIMULib/IMUDrivers/RTIMUMPU9150.o -std=c++0x
[sensor]    gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -DHAL_QUIET -I../../RTIMULib -I/usr/local/include/python3.7m -c ../../RTIMULib/IMUDrivers/RTIMUMPU9250.cpp -o build/temp.linux-armv6l-3.7/../../RTIMULib/IMUDrivers/RTIMUMPU9250.o -std=c++0x
[grafana]   Building dependency tree...
[sensor]    gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -DHAL_QUIET -I../../RTIMULib -I/usr/local/include/python3.7m -c ../../RTIMULib/IMUDrivers/RTIMUGD20HM303D.cpp -o build/temp.linux-armv6l-3.7/../../RTIMULib/IMUDrivers/RTIMUGD20HM303D.o -std=c++0x
[grafana]   Reading state information...
[sensor]    gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -DHAL_QUIET -I../../RTIMULib -I/usr/local/include/python3.7m -c ../../RTIMULib/IMUDrivers/RTIMUGD20HM303DLHC.cpp -o build/temp.linux-armv6l-3.7/../../RTIMULib/IMUDrivers/RTIMUGD20HM303DLHC.o -std=c++0x
[grafana]   The following additional packages will be installed:
[grafana]     libexpat1 libfreetype6
[grafana]   The following NEW packages will be installed:
[grafana]     fontconfig-config fonts-dejavu-core libexpat1 libfontconfig1 libfreetype6
[grafana]     ucf
[sensor]    gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -DHAL_QUIET -I../../RTIMULib -I/usr/local/include/python3.7m -c ../../RTIMULib/IMUDrivers/RTIMUGD20M303DLHC.cpp -o build/temp.linux-armv6l-3.7/../../RTIMULib/IMUDrivers/RTIMUGD20M303DLHC.o -std=c++0x
[sensor]    gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -DHAL_QUIET -I../../RTIMULib -I/usr/local/include/python3.7m -c ../../RTIMULib/IMUDrivers/RTIMULSM9DS0.cpp -o build/temp.linux-armv6l-3.7/../../RTIMULib/IMUDrivers/RTIMULSM9DS0.o -std=c++0x
[grafana]   0 upgraded, 6 newly installed, 0 to remove and 11 not upgraded.
[grafana]   Need to get 2169 kB of archives.
[grafana]   After this operation, 5181 kB of additional disk space will be used.
[grafana]   Get:1 stretch/main armhf ucf all 3.0036 [70.2 kB]
[sensor]    gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -DHAL_QUIET -I../../RTIMULib -I/usr/local/include/python3.7m -c ../../RTIMULib/IMUDrivers/RTIMULSM9DS1.cpp -o build/temp.linux-armv6l-3.7/../../RTIMULib/IMUDrivers/RTIMULSM9DS1.o -std=c++0x
[grafana]   Get:2 stretch/main armhf fonts-dejavu-core all 2.37-1 [1068 kB]
[grafana]   Get:3 stretch/main armhf fontconfig-config all 2.11.0-6.7 [271 kB]
[sensor]    gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -DHAL_QUIET -I../../RTIMULib -I/usr/local/include/python3.7m -c ../../RTIMULib/IMUDrivers/RTIMUBMX055.cpp -o build/temp.linux-armv6l-3.7/../../RTIMULib/IMUDrivers/RTIMUBMX055.o -std=c++0x
[grafana]   Get:4 stretch/main armhf libexpat1 armhf 2.2.0-2+deb9u1 [62.2 kB]
[grafana]   Get:5 stretch/main armhf libfreetype6 armhf 2.6.3-3.2 [384 kB]
[grafana]   Get:6 stretch/main armhf libfontconfig1 armhf 2.11.0-6.7 [313 kB]
[grafana]   debconf: delaying package configuration, since apt-utils is not installed
[sensor]    gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -DHAL_QUIET -I../../RTIMULib -I/usr/local/include/python3.7m -c ../../RTIMULib/IMUDrivers/RTIMUBNO055.cpp -o build/temp.linux-armv6l-3.7/../../RTIMULib/IMUDrivers/RTIMUBNO055.o -std=c++0x
[grafana]   Fetched 2169 kB in 0s (2556 kB/s)
[grafana]   Selecting previously unselected package ucf.
[grafana]   (Reading database ...
(Reading database ... 65%base ... 5%
(Reading database ... 75%base ... 70%
[grafana]   (Reading database ... 80%
[grafana]   (Reading database ... 85%
[grafana]   (Reading database ... 90%
[grafana]   (Reading database ... 95%
(Reading database ... 10813 files and directories currently installed.)
[grafana]   Preparing to unpack .../0-ucf_3.0036_all.deb ...
[grafana]   Moving old data out of the way
[grafana]   Unpacking ucf (3.0036) ...
[grafana]   Selecting previously unselected package fonts-dejavu-core.
[grafana]   Preparing to unpack .../1-fonts-dejavu-core_2.37-1_all.deb ...
[grafana]   Unpacking fonts-dejavu-core (2.37-1) ...
[sensor]    gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -DHAL_QUIET -I../../RTIMULib -I/usr/local/include/python3.7m -c ../../RTIMULib/IMUDrivers/RTPressure.cpp -o build/temp.linux-armv6l-3.7/../../RTIMULib/IMUDrivers/RTPressure.o -std=c++0x
[sensor]    gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -DHAL_QUIET -I../../RTIMULib -I/usr/local/include/python3.7m -c ../../RTIMULib/IMUDrivers/RTPressureBMP180.cpp -o build/temp.linux-armv6l-3.7/../../RTIMULib/IMUDrivers/RTPressureBMP180.o -std=c++0x
[grafana]   Selecting previously unselected package fontconfig-config.
[grafana]   Preparing to unpack .../2-fontconfig-config_2.11.0-6.7_all.deb ...
[grafana]   Unpacking fontconfig-config (2.11.0-6.7) ...
[sensor]    gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -DHAL_QUIET -I../../RTIMULib -I/usr/local/include/python3.7m -c ../../RTIMULib/IMUDrivers/RTPressureLPS25H.cpp -o build/temp.linux-armv6l-3.7/../../RTIMULib/IMUDrivers/RTPressureLPS25H.o -std=c++0x
[grafana]   Selecting previously unselected package libexpat1:armhf.
[grafana]   Preparing to unpack .../3-libexpat1_2.2.0-2+deb9u1_armhf.deb ...
[grafana]   Unpacking libexpat1:armhf (2.2.0-2+deb9u1) ...
[sensor]    gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -DHAL_QUIET -I../../RTIMULib -I/usr/local/include/python3.7m -c ../../RTIMULib/IMUDrivers/RTPressureMS5611.cpp -o build/temp.linux-armv6l-3.7/../../RTIMULib/IMUDrivers/RTPressureMS5611.o -std=c++0x
[grafana]   Selecting previously unselected package libfreetype6:armhf.
[grafana]   Preparing to unpack .../4-libfreetype6_2.6.3-3.2_armhf.deb ...
[grafana]   Unpacking libfreetype6:armhf (2.6.3-3.2) ...
[grafana]   Selecting previously unselected package libfontconfig1:armhf.
[grafana]   Preparing to unpack .../5-libfontconfig1_2.11.0-6.7_armhf.deb ...
[grafana]   Unpacking libfontconfig1:armhf (2.11.0-6.7) ...
[grafana]   Setting up libexpat1:armhf (2.2.0-2+deb9u1) ...
[sensor]    gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -DHAL_QUIET -I../../RTIMULib -I/usr/local/include/python3.7m -c ../../RTIMULib/IMUDrivers/RTPressureMS5637.cpp -o build/temp.linux-armv6l-3.7/../../RTIMULib/IMUDrivers/RTPressureMS5637.o -std=c++0x
[grafana]   Setting up fonts-dejavu-core (2.37-1) ...
[grafana]   Setting up ucf (3.0036) ...
[sensor]    gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -DHAL_QUIET -I../../RTIMULib -I/usr/local/include/python3.7m -c ../../RTIMULib/IMUDrivers/RTHumidity.cpp -o build/temp.linux-armv6l-3.7/../../RTIMULib/IMUDrivers/RTHumidity.o -std=c++0x
[grafana]   Setting up libfreetype6:armhf (2.6.3-3.2) ...
[grafana]   Processing triggers for libc-bin (2.24-11+deb9u4) ...
[sensor]    gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -DHAL_QUIET -I../../RTIMULib -I/usr/local/include/python3.7m -c ../../RTIMULib/IMUDrivers/RTHumidityHTS221.cpp -o build/temp.linux-armv6l-3.7/../../RTIMULib/IMUDrivers/RTHumidityHTS221.o -std=c++0x
[grafana]   Setting up fontconfig-config (2.11.0-6.7) ...
[sensor]    gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -DHAL_QUIET -I../../RTIMULib -I/usr/local/include/python3.7m -c ../../RTIMULib/IMUDrivers/RTHumidityHTU21D.cpp -o build/temp.linux-armv6l-3.7/../../RTIMULib/IMUDrivers/RTHumidityHTU21D.o -std=c++0x
[sensor]    creating build/lib.linux-armv6l-3.7
[sensor]    g++ -pthread -shared build/temp.linux-armv6l-3.7/PyRTIMU.o build/temp.linux-armv6l-3.7/PyRTIMU_Settings.o build/temp.linux-armv6l-3.7/PyRTIMU_RTIMU.o build/temp.linux-armv6l-3.7/PyRTIMU_RTPressure.o build/temp.linux-armv6l-3.7/PyRTIMU_RTHumidity.o build/temp.linux-armv6l-3.7/../../RTIMULib/RTMath.o build/temp.linux-armv6l-3.7/../../RTIMULib/RTIMUHal.o build/temp.linux-armv6l-3.7/../../RTIMULib/RTFusion.o build/temp.linux-armv6l-3.7/../../RTIMULib/RTFusionKalman4.o build/temp.linux-armv6l-3.7/../../RTIMULib/RTFusionRTQF.o build/temp.linux-armv6l-3.7/../../RTIMULib/RTIMUSettings.o build/temp.linux-armv6l-3.7/../../RTIMULib/IMUDrivers/RTIMU.o build/temp.linux-armv6l-3.7/../../RTIMULib/IMUDrivers/RTIMUNull.o build/temp.linux-armv6l-3.7/../../RTIMULib/IMUDrivers/RTIMUMPU9150.o build/temp.linux-armv6l-3.7/../../RTIMULib/IMUDrivers/RTIMUMPU9250.o build/temp.linux-armv6l-3.7/../../RTIMULib/IMUDrivers/RTIMUGD20HM303D.o build/temp.linux-armv6l-3.7/../../RTIMULib/IMUDrivers/RTIMUGD20HM303DLHC.o build/temp.linux-armv6l-3.7/../../RTIMULib/IMUDrivers/RTIMUGD20M303DLHC.o build/temp.linux-armv6l-3.7/../../RTIMULib/IMUDrivers/RTIMULSM9DS0.o build/temp.linux-armv6l-3.7/../../RTIMULib/IMUDrivers/RTIMULSM9DS1.o build/temp.linux-armv6l-3.7/../../RTIMULib/IMUDrivers/RTIMUBMX055.o build/temp.linux-armv6l-3.7/../../RTIMULib/IMUDrivers/RTIMUBNO055.o build/temp.linux-armv6l-3.7/../../RTIMULib/IMUDrivers/RTPressure.o build/temp.linux-armv6l-3.7/../../RTIMULib/IMUDrivers/RTPressureBMP180.o build/temp.linux-armv6l-3.7/../../RTIMULib/IMUDrivers/RTPressureLPS25H.o build/temp.linux-armv6l-3.7/../../RTIMULib/IMUDrivers/RTPressureMS5611.o build/temp.linux-armv6l-3.7/../../RTIMULib/IMUDrivers/RTPressureMS5637.o build/temp.linux-armv6l-3.7/../../RTIMULib/IMUDrivers/RTHumidity.o build/temp.linux-armv6l-3.7/../../RTIMULib/IMUDrivers/RTHumidityHTS221.o build/temp.linux-armv6l-3.7/../../RTIMULib/IMUDrivers/RTHumidityHTU21D.o -L/usr/local/lib -lpython3.7m -o build/lib.linux-armv6l-3.7/
[grafana]   Setting up libfontconfig1:armhf (2.11.0-6.7) ...
[grafana]   Processing triggers for libc-bin (2.24-11+deb9u4) ...
[sensor]     ---> 0bee4381e5cc
[sensor]    Removing intermediate container 60400f384af3
[sensor]    Step 6/11 : RUN python ./ install
[grafana]    ---> 891d2d8073ed
[grafana]   Removing intermediate container 72895b1e5385
[grafana]   Step 6/9 : COPY ./ /usr/src/app/
[sensor]     ---> Running in f4256039e4e3
[sensor]    running install
[sensor]    running build
[sensor]    running build_ext
[grafana]    ---> 6818b90a2f86
[sensor]    running install_lib
[sensor]    copying build/lib.linux-armv6l-3.7/ -> /usr/local/lib/python3.7/site-packages
[sensor]    running install_egg_info
[sensor]    Writing /usr/local/lib/python3.7/site-packages/RTIMULib-7.2.1-py3.7.egg-info
[grafana]   Removing intermediate container 1e5b1d78c4c5
[grafana]   Step 7/9 : RUN chmod +x /usr/src/app/ && /usr/src/app/ "raspberry-pi"
[grafana]    ---> Running in 0c2888cf8622
[grafana]     % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
[grafana]    Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0
[grafana]         0      0 --
[grafana]   :--:-
[grafana]   - --:--:-- --:-
[grafana]   -:--     0
[sensor]     ---> 8c28060d6a4d
[sensor]    Removing intermediate container f4256039e4e3
[sensor]    Step 7/11 : RUN pip install smbus bme680 influxdb sense-hat
[sensor]     ---> Running in 8da0958fbdcf
[sensor]    /bin/sh: 1: pip: not found
 85 27.7M   85 23.6M    0     0  39.6M      0 --:--:-- --:--:-- --:--:-- 39.5M
100 27.7M  100 27.7M    0     0  40.4M      0 --:--:-- --:--:-- --:--:-- 40.4M
[sensor]    Removing intermediate container 8da0958fbdcf
[sensor]    The command '/bin/sh -c pip install smbus bme680 influxdb sense-hat' returned a non-zero code: 127
[grafana]    ---> fac5c80488ad
[grafana]   Removing intermediate container 0c2888cf8622
[grafana]   Step 8/9 : RUN dpkg -i /tmp/grafana.deb && rm /tmp/grafana.deb
[grafana]    ---> Running in 08bb592a7a07
[grafana]   Selecting previously unselected package grafana-rpi.
[grafana]   (Reading database ... 10966 files and directories currently installed.)
[grafana]   Preparing to unpack /tmp/grafana.deb ...
[grafana]   Unpacking grafana-rpi (6.1.4) ...
[grafana]   Setting up grafana-rpi (6.1.4) ...
[grafana]   Adding system user `grafana' (UID 105) ...
[grafana]   Adding new user `grafana' (UID 105) with group `grafana' ...
[grafana]   Not creating home directory `/usr/share/grafana'.
[grafana]   ### NOT starting on installation, please execute the following statements to configure grafana to start automatically using systemd
[grafana]    sudo /bin/systemctl daemon-reload
[grafana]    sudo /bin/systemctl enable grafana-server
[grafana]   ### You can start grafana-server by executing
[grafana]    sudo /bin/systemctl start grafana-server
[grafana]   Processing triggers for systemd (232-25+deb9u9) ...
[grafana]    ---> 5617c77ef84d
[grafana]   Removing intermediate container 08bb592a7a07
[grafana]   Step 9/9 : CMD /bin/sh /usr/src/app/
[grafana]    ---> Running in ecd706f94043
[grafana]    ---> 23035f0a4a84
[grafana]   Removing intermediate container ecd706f94043
[grafana]   Successfully built 23035f0a4a84
[Info]      Uploading images
[Success]   Successfully uploaded images
[Error]     Some services failed to build:
[Error]       Service: undefined
[Error]         Error: Information not available
[Error]       Service: undefined
[Error]         Error: Information not available
[Error]       Service: sensor
[Error]         Error: The command '/bin/sh -c pip install smbus bme680 influxdb sense-hat' returned a non-zero code: 127
[Error]     Not deploying release.

remote: error: hook declined to update refs/heads/master

Hi there @jahanson welcome to the forums!

Your post has highlighted an issue with the project which I’ve just resolved. Python was updated to a newer version in our base images which for some reason isn’t working. If you download the latest version of the project and try using balena push again it should be OK now.

Alternatively, if you just wanted to apply the fix yourself, you need to edit the file sensor/Dockerfile.template. Change the first line so it reads FROM balenalib/%%BALENA_MACHINE_NAME%%-python:2.7.15-build. Note that a Python version has been added which wasn’t there previously. We’ll investigate to see what happened here, but in the mean time this should get you going.

I hope this helps, let us know how you get on.


It built! Just need to check on the device now :slight_smile:

[Success]   Successfully uploaded images
[Success]   Release successfully created!
[Info]      Release: c85df73ac5de0cc9ac4921856074792941cb6e9e (id: 917514)
[Info]      ┌──────────┬────────────┬───────────────────────┐
[Info]      │ Service  │ Image Size │ Build Time            │
[Info]      ├──────────┼────────────┼───────────────────────┤
[Info]      │ influxdb │ 128.51 MB  │ < 1 second            │
[Info]      ├──────────┼────────────┼───────────────────────┤
[Info]      │ grafana  │ 278.04 MB  │ < 1 second            │
[Info]      ├──────────┼────────────┼───────────────────────┤
[Info]      │ sensor   │ 768.38 MB  │ 2 minutes, 45 seconds │
[Info]      └──────────┴────────────┴───────────────────────┘
[Info]      Build finished in 3 minutes, 13 seconds
                            _.-(6'  \
                           (=___._/` \
                                )  \ |
                               /   / |
                              /    > /
                             j    < _\
                         _.-' :      ``.
                         \ r=._\        `.
                        <`\\_  \         .`-.
                         \ r-7  `-. ._  ' .  `\
                          \`,      `-.`7  7)   )
                           \/         \|  \'  / `-._
                                      ||    .'
                                       \\  (
                                        >\  >
                                    ,.-' >.'

Ah, great news! Let us know if you have any further issues!


It works like a charm! Also, thanks for the warm welcome to the community :slight_smile: and for your help. I know I’ll have a few more questions later.

1 Like