Step 1/6 : FROM balenalib/raspberrypi0-2w-64-python:3.7-buster-build ---> d4d26e7252ce Step 2/6 : RUN install_packages python3-smbus wget unzip ---> Running in 34f8de3a70e9 Reading package lists... Building dependency tree... Reading state information... wget is already the newest version (1.20.1-1.1). Suggested packages: zip The following NEW packages will be installed: python3-smbus unzip 0 upgraded, 2 newly installed, 0 to remove and 6 not upgraded. Need to get 178 kB of archives. After this operation, 613 kB of additional disk space will be used. Get:1 http://deb.debian.org/debian buster/main arm64 python3-smbus arm64 4.1-1 [12.4 kB] Get:2 http://deb.debian.org/debian-security buster/updates/main arm64 unzip arm64 6.0-23+deb10u3 [166 kB] debconf: delaying package configuration, since apt-utils is not installed Fetched 178 kB in 0s (3533 kB/s) Selecting previously unselected package python3-smbus:arm64. (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 20298 files and directories currently installed.) Preparing to unpack .../python3-smbus_4.1-1_arm64.deb ... Unpacking python3-smbus:arm64 (4.1-1) ... Selecting previously unselected package unzip. Preparing to unpack .../unzip_6.0-23+deb10u3_arm64.deb ... Unpacking unzip (6.0-23+deb10u3) ... Setting up unzip (6.0-23+deb10u3) ... Setting up python3-smbus:arm64 (4.1-1) ... Processing triggers for mime-support (3.62) ... Removing intermediate container 34f8de3a70e9 ---> c1fc772d5085 Step 3/6 : RUN pip3 install --upgrade pip setuptools wheel smbus2 RPi.GPIO balena-sdk automationhat paho-mqtt ---> Running in 1894578b4ffc Requirement already satisfied: pip in /usr/local/lib/python3.7/site-packages (23.0) Collecting pip Downloading pip-23.3.1-py3-none-any.whl (2.1 MB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 2.1/2.1 MB 48.7 MB/s eta 0:00:00 Requirement already satisfied: setuptools in /usr/local/lib/python3.7/site-packages (67.2.0) Collecting setuptools Downloading setuptools-68.0.0-py3-none-any.whl (804 kB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 804.0/804.0 kB 83.0 MB/s eta 0:00:00 Requirement already satisfied: wheel in /usr/local/lib/python3.7/site-packages (0.42.0) Collecting smbus2 Downloading smbus2-0.4.3-py2.py3-none-any.whl (11 kB) Collecting RPi.GPIO Downloading RPi.GPIO-0.7.1.tar.gz (29 kB) Preparing metadata (setup.py): started Preparing metadata (setup.py): finished with status 'done' Collecting balena-sdk Downloading balena_sdk-12.7.0-py3-none-any.whl (74 kB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 74.8/74.8 kB 22.0 MB/s eta 0:00:00 Collecting automationhat Downloading automationhat-0.4.1-py3-none-any.whl (8.3 kB) Collecting paho-mqtt Downloading paho-mqtt-1.6.1.tar.gz (99 kB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 99.4/99.4 kB 36.8 MB/s eta 0:00:00 Preparing metadata (setup.py): started Preparing metadata (setup.py): finished with status 'done' Collecting pyotp>=2.2.5 Downloading pyotp-2.9.0-py3-none-any.whl (13 kB) Collecting service-identity Downloading service_identity-21.1.0-py2.py3-none-any.whl (12 kB) Collecting Twisted>=18.7.0 Downloading twisted-23.8.0-py3-none-any.whl (3.1 MB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 3.1/3.1 MB 75.0 MB/s eta 0:00:00 Collecting PyJWT>=2.0.0 Downloading PyJWT-2.8.0-py3-none-any.whl (22 kB) Collecting semver<3.0.0,>=2.10.0 Downloading semver-2.13.0-py2.py3-none-any.whl (12 kB) Collecting pyOpenSSL>=18.0.0 Downloading pyOpenSSL-23.3.0-py3-none-any.whl (58 kB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 58.8/58.8 kB 24.7 MB/s eta 0:00:00 Collecting requests>=2.19.1 Using cached requests-2.31.0-py3-none-any.whl (62 kB) Collecting ST7735 Downloading st7735-1.0.0-py3-none-any.whl (11 kB) Collecting ads1015>=0.0.8 Downloading ads1015-1.0.0-py3-none-any.whl (9.0 kB) Collecting sn3218>=2.0.0 Downloading sn3218-2.0.0-py3-none-any.whl (4.3 kB) Collecting i2cdevice>=1.0.0 Downloading i2cdevice-1.0.0-py3-none-any.whl (10 kB) Collecting typing-extensions Downloading typing_extensions-4.7.1-py3-none-any.whl (33 kB) Collecting cryptography<42,>=41.0.5 Downloading cryptography-41.0.7-cp37-abi3-manylinux_2_28_aarch64.whl (4.1 MB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 4.1/4.1 MB 71.4 MB/s eta 0:00:00 Collecting certifi>=2017.4.17 Using cached certifi-2023.11.17-py3-none-any.whl (162 kB) Collecting urllib3<3,>=1.21.1 Using cached urllib3-2.0.7-py3-none-any.whl (124 kB) Collecting charset-normalizer<4,>=2 Using cached charset_normalizer-3.3.2-cp37-cp37m-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (133 kB) Collecting idna<4,>=2.5 Using cached idna-3.6-py3-none-any.whl (61 kB) Collecting zope-interface>=5 Downloading zope.interface-6.1-cp37-cp37m-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (241 kB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 241.4/241.4 kB 44.2 MB/s eta 0:00:00 Collecting incremental>=22.10.0 Downloading incremental-22.10.0-py2.py3-none-any.whl (16 kB) Collecting automat>=0.8.0 Downloading Automat-22.10.0-py2.py3-none-any.whl (26 kB) Collecting constantly>=15.1 Downloading constantly-15.1.0-py2.py3-none-any.whl (7.9 kB) Collecting hyperlink>=17.1.1 Downloading hyperlink-21.0.0-py2.py3-none-any.whl (74 kB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 74.6/74.6 kB 28.0 MB/s eta 0:00:00 Collecting attrs>=21.3.0 Downloading attrs-23.1.0-py3-none-any.whl (61 kB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 61.2/61.2 kB 22.8 MB/s eta 0:00:00 Collecting pyasn1 Downloading pyasn1-0.5.1-py2.py3-none-any.whl (84 kB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 84.9/84.9 kB 33.2 MB/s eta 0:00:00 Collecting six Downloading six-1.16.0-py2.py3-none-any.whl (11 kB) Collecting pyasn1-modules Downloading pyasn1_modules-0.3.0-py2.py3-none-any.whl (181 kB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 181.3/181.3 kB 42.2 MB/s eta 0:00:00 Collecting spidev>=3.4 Downloading spidev-3.6.tar.gz (11 kB) Installing build dependencies: started Installing build dependencies: finished with status 'done' Getting requirements to build wheel: started Getting requirements to build wheel: finished with status 'done' Installing backend dependencies: started Installing backend dependencies: finished with status 'done' Preparing metadata (pyproject.toml): started Preparing metadata (pyproject.toml): finished with status 'done' Collecting numpy Downloading numpy-1.21.6-cp37-cp37m-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (13.0 MB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 13.0/13.0 MB 93.3 MB/s eta 0:00:00 Collecting importlib-metadata Downloading importlib_metadata-6.7.0-py3-none-any.whl (22 kB) Collecting cffi>=1.12 Downloading cffi-1.15.1-cp37-cp37m-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (435 kB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 435.6/435.6 kB 54.8 MB/s eta 0:00:00 Collecting pycparser Downloading pycparser-2.21-py2.py3-none-any.whl (118 kB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 118.7/118.7 kB 33.2 MB/s eta 0:00:00 Collecting zipp>=0.5 Downloading zipp-3.15.0-py3-none-any.whl (6.8 kB) Building wheels for collected packages: RPi.GPIO, paho-mqtt, spidev Building wheel for RPi.GPIO (setup.py): started Building wheel for RPi.GPIO (setup.py): finished with status 'done' Created wheel for RPi.GPIO: filename=RPi.GPIO-0.7.1-cp37-cp37m-linux_aarch64.whl size=71306 sha256=3ed47824f184ff97291bfc9a9aa4934c237b2f0dfcffec21cceb93c7c9a82089 Stored in directory: /root/.cache/pip/wheels/db/cc/cb/2c380deb4f244998be422a4f7cd4799775d8f9f0b9d90bfa05 Building wheel for paho-mqtt (setup.py): started Building wheel for paho-mqtt (setup.py): finished with status 'done' Created wheel for paho-mqtt: filename=paho_mqtt-1.6.1-py3-none-any.whl size=62120 sha256=8d038af55356b08d8b834c6d085a67df3dc8bcd03c7b23702702e1979c40b7a2 Stored in directory: /root/.cache/pip/wheels/d0/bf/ac/2b3f43f8c6fcd0f4ba5395397458c521eb0b52d33b574a5a40 Building wheel for spidev (pyproject.toml): started Building wheel for spidev (pyproject.toml): finished with status 'done' Created wheel for spidev: filename=spidev-3.6-cp37-cp37m-linux_aarch64.whl size=44511 sha256=3ec474e4ff0abf5f36566e30f53d776380c34fe57edb1029c0a96e7fbcc63879 Stored in directory: /root/.cache/pip/wheels/d2/c8/33/c9155c67354f096ebe4764daaef76430e5bad95c649762cea4 Successfully built RPi.GPIO paho-mqtt spidev Installing collected packages: spidev, smbus2, RPi.GPIO, paho-mqtt, incremental, constantly, zipp, urllib3, typing-extensions, sn3218, six, setuptools, semver, pyotp, pycparser, pyasn1, pip, numpy, idna, i2cdevice, charset-normalizer, certifi, zope-interface, ST7735, requests, PyJWT, pyasn1-modules, importlib-metadata, hyperlink, cffi, ads1015, cryptography, automationhat, attrs, service-identity, pyOpenSSL, automat, Twisted, balena-sdk Attempting uninstall: setuptools Found existing installation: setuptools 67.2.0 Uninstalling setuptools-67.2.0: Successfully uninstalled setuptools-67.2.0 Attempting uninstall: pip Found existing installation: pip 23.0 Uninstalling pip-23.0: Successfully uninstalled pip-23.0 Successfully installed PyJWT-2.8.0 RPi.GPIO-0.7.1 ST7735-1.0.0 Twisted-23.8.0 ads1015-1.0.0 attrs-23.1.0 automat-22.10.0 automationhat-0.4.1 balena-sdk-12.7.0 certifi-2023.11.17 cffi-1.15.1 charset-normalizer-3.3.2 constantly-15.1.0 cryptography-41.0.7 hyperlink-21.0.0 i2cdevice-1.0.0 idna-3.6 importlib-metadata-6.7.0 incremental-22.10.0 numpy-1.21.6 paho-mqtt-1.6.1 pip-23.3.1 pyOpenSSL-23.3.0 pyasn1-0.5.1 pyasn1-modules-0.3.0 pycparser-2.21 pyotp-2.9.0 requests-2.31.0 semver-2.13.0 service-identity-21.1.0 setuptools-68.0.0 six-1.16.0 smbus2-0.4.3 sn3218-2.0.0 spidev-3.6 typing-extensions-4.7.1 urllib3-2.0.7 zipp-3.15.0 zope-interface-6.1 WARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager. It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/venv Removing intermediate container 1894578b4ffc ---> daaaae37a2ea Step 4/6 : RUN python3 -m pip install --no-cache-dir --trusted-host pypi.python.org Adafruit_DHT==1.4.0 --install-option="--force-pi2" ---> Running in 2d93b32eed9c Usage: /usr/local/bin/python3 -m pip install [options] [package-index-options] ... /usr/local/bin/python3 -m pip install [options] -r [package-index-options] ... /usr/local/bin/python3 -m pip install [options] [-e] ... /usr/local/bin/python3 -m pip install [options] [-e] ... /usr/local/bin/python3 -m pip install [options] ... no such option: --install-option Removing intermediate container 2d93b32eed9c The command '/bin/sh -c python3 -m pip install --no-cache-dir --trusted-host pypi.python.org Adafruit_DHT==1.4.0 --install-option="--force-pi2"' returned a non-zero code: 2