+ echo '*******************Begin of package installation******************' *******************Begin of package installation****************** + touch /tmp/jeedom_install_in_progress_zigbee + echo 1 + echo 2 + sudo chmod +x /var/www/html/core/class/../../plugins/zigbee/resources/pre-install.sh + sudo /var/www/html/core/class/../../plugins/zigbee/resources/pre-install.sh Launch pre-install of zigbee dependancy Reading package lists... Building dependency tree... Reading state information... Package 'python-rpi.gpio' is not installed, so not removed Package 'python-rpi.gpio-dbgsym' is not installed, so not removed Package 'python3-rpi.gpio' is not installed, so not removed Package 'python3-rpi.gpio-dbgsym' is not installed, so not removed Package 'rpi.gpio-common' is not installed, so not removed The following packages were automatically installed and are no longer required: chromium-common chromium-sandbox libimobiledevice6 libjsoncpp1 libminizip1 libplist3 libre2-5 libu2f-udev libupower-glib3 libusbmuxd4 upower usbmuxd Use 'sudo apt autoremove' to remove them. 0 upgraded, 0 newly installed, 0 to remove and 249 not upgraded. WARNING: apt does not have a stable CLI interface. Use with caution in scripts. Reading package lists... Building dependency tree... Reading state information... Package 'rustc' is not installed, so not removed The following packages were automatically installed and are no longer required: chromium-common chromium-sandbox libimobiledevice6 libjsoncpp1 libminizip1 libplist3 libre2-5 libu2f-udev libupower-glib3 libusbmuxd4 upower usbmuxd Use 'sudo apt autoremove' to remove them. 0 upgraded, 0 newly installed, 0 to remove and 249 not upgraded. WARNING: apt does not have a stable CLI interface. Use with caution in scripts. Reading package lists... Building dependency tree... Reading state information... Package 'cargo' is not installed, so not removed The following packages were automatically installed and are no longer required: chromium-common chromium-sandbox libimobiledevice6 libjsoncpp1 libminizip1 libplist3 libre2-5 libu2f-udev libupower-glib3 libusbmuxd4 upower usbmuxd Use 'sudo apt autoremove' to remove them. 0 upgraded, 0 newly installed, 0 to remove and 249 not upgraded. info: downloading installer info: profile set to 'default' info: default host triple is armv7-unknown-linux-gnueabihf warning: Updating existing toolchain, profile choice will be ignored info: syncing channel updates for 'stable-armv7-unknown-linux-gnueabihf' info: default toolchain set to 'stable-armv7-unknown-linux-gnueabihf' stable-armv7-unknown-linux-gnueabihf unchanged - rustc 1.69.0 (84c898d65 2023-04-16) Rust is installed now. Great! To get started you may need to restart your current shell. This would reload your PATH environment variable to include Cargo's bin directory ($HOME/.cargo/bin). To configure your current shell, run: source "$HOME/.cargo/env" + echo 3 ++ awk '$1 <= 4' ++ find /usr/local/lib/python2.7/dist-packages/ /usr/local/lib/python3.7/dist-packages/ -mindepth 1 -maxdepth 1 -type d -exec du -ks '{}' + ++ cut -f 2- + RESULTTODELETE= ++ echo '' ++ sed 's, ,\ ,g' + RESULTTODELETE2= + echo '' + xargs rm -rf + echo 4 + sudo pip3 cache purge Files removed: 162 + echo 5 + sudo pip3 install --upgrade pip Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple Requirement already satisfied: pip in /usr/local/lib/python3.7/dist-packages (23.1.2) WARNING: Error parsing requirements for idna: [Errno 2] No such file or directory: '/usr/local/lib/python3.7/dist-packages/idna-3.3.dist-info/METADATA' WARNING: Error parsing requirements for pyudev: [Errno 2] No such file or directory: '/usr/local/lib/python3.7/dist-packages/pyudev-0.23.2.dist-info/METADATA' 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 + echo 6 + sudo pip3 install --force-reinstall --upgrade setuptools Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple Collecting setuptools Downloading https://www.piwheels.org/simple/setuptools/setuptools-67.8.0-py3-none-any.whl (1.1 MB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 1.1/1.1 MB 3.1 MB/s eta 0:00:00 WARNING: Error parsing requirements for idna: [Errno 2] No such file or directory: '/usr/local/lib/python3.7/dist-packages/idna-3.3.dist-info/METADATA' WARNING: Error parsing requirements for pyudev: [Errno 2] No such file or directory: '/usr/local/lib/python3.7/dist-packages/pyudev-0.23.2.dist-info/METADATA' Installing collected packages: setuptools Attempting uninstall: setuptools Found existing installation: setuptools 67.8.0 Uninstalling setuptools-67.8.0: Successfully uninstalled setuptools-67.8.0 Successfully installed setuptools-67.8.0 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 + echo 7 + sudo pip3 install --force-reinstall --upgrade wheel Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple Collecting wheel Downloading https://www.piwheels.org/simple/wheel/wheel-0.40.0-py3-none-any.whl (64 kB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 64.5/64.5 kB 685.5 kB/s eta 0:00:00 WARNING: Error parsing requirements for idna: [Errno 2] No such file or directory: '/usr/local/lib/python3.7/dist-packages/idna-3.3.dist-info/METADATA' WARNING: Error parsing requirements for pyudev: [Errno 2] No such file or directory: '/usr/local/lib/python3.7/dist-packages/pyudev-0.23.2.dist-info/METADATA' Installing collected packages: wheel Attempting uninstall: wheel Found existing installation: wheel 0.40.0 Uninstalling wheel-0.40.0: Successfully uninstalled wheel-0.40.0 Successfully installed wheel-0.40.0 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 + echo 8 + sudo pip3 install --force-reinstall --upgrade six Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple Collecting six Downloading https://www.piwheels.org/simple/six/six-1.16.0-py2.py3-none-any.whl (11 kB) WARNING: Error parsing requirements for idna: [Errno 2] No such file or directory: '/usr/local/lib/python3.7/dist-packages/idna-3.3.dist-info/METADATA' WARNING: Error parsing requirements for pyudev: [Errno 2] No such file or directory: '/usr/local/lib/python3.7/dist-packages/pyudev-0.23.2.dist-info/METADATA' Installing collected packages: six Attempting uninstall: six Found existing installation: six 1.16.0 Uninstalling six-1.16.0: Successfully uninstalled six-1.16.0 Successfully installed six-1.16.0 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 + echo 9 + sudo pip3 install --force-reinstall --upgrade pyudev Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple Collecting pyudev Downloading https://www.piwheels.org/simple/pyudev/pyudev-0.24.1-py3-none-any.whl (62 kB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 62.9/62.9 kB 832.1 kB/s eta 0:00:00 WARNING: Error parsing requirements for idna: [Errno 2] No such file or directory: '/usr/local/lib/python3.7/dist-packages/idna-3.3.dist-info/METADATA' WARNING: Error parsing requirements for pyudev: [Errno 2] No such file or directory: '/usr/local/lib/python3.7/dist-packages/pyudev-0.23.2.dist-info/METADATA' Installing collected packages: pyudev Attempting uninstall: pyudev WARNING: No metadata found in /usr/local/lib/python3.7/dist-packages Found existing installation: pyudev 0.23.2 ERROR: Cannot uninstall pyudev 0.23.2, RECORD file not found. You might be able to recover from this via: 'pip install --force-reinstall --no-deps pyudev==0.23.2'. + echo 10 + sudo pip3 install --force-reinstall --upgrade requests Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple Collecting requests Downloading https://www.piwheels.org/simple/requests/requests-2.31.0-py3-none-any.whl (62 kB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 62.6/62.6 kB 770.5 kB/s eta 0:00:00 Collecting charset-normalizer<4,>=2 (from requests) Downloading charset_normalizer-3.1.0-py3-none-any.whl (46 kB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 46.2/46.2 kB 700.3 kB/s eta 0:00:00 Collecting idna<4,>=2.5 (from requests) Downloading https://www.piwheels.org/simple/idna/idna-3.4-py3-none-any.whl (61 kB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 61.5/61.5 kB 739.3 kB/s eta 0:00:00 Collecting urllib3<3,>=1.21.1 (from requests) Downloading https://www.piwheels.org/simple/urllib3/urllib3-2.0.2-py3-none-any.whl (123 kB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 123.2/123.2 kB 1.2 MB/s eta 0:00:00 Collecting certifi>=2017.4.17 (from requests) Downloading https://www.piwheels.org/simple/certifi/certifi-2023.5.7-py3-none-any.whl (156 kB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 156.9/156.9 kB 1.7 MB/s eta 0:00:00 WARNING: Error parsing requirements for idna: [Errno 2] No such file or directory: '/usr/local/lib/python3.7/dist-packages/idna-3.3.dist-info/METADATA' WARNING: Error parsing requirements for pyudev: [Errno 2] No such file or directory: '/usr/local/lib/python3.7/dist-packages/pyudev-0.23.2.dist-info/METADATA' Installing collected packages: urllib3, idna, charset-normalizer, certifi, requests Attempting uninstall: urllib3 Found existing installation: urllib3 2.0.2 Uninstalling urllib3-2.0.2: Successfully uninstalled urllib3-2.0.2 Attempting uninstall: idna WARNING: No metadata found in /usr/local/lib/python3.7/dist-packages Found existing installation: idna 3.3 ERROR: Cannot uninstall idna 3.3, RECORD file not found. You might be able to recover from this via: 'pip install --force-reinstall --no-deps idna==3.3'. + echo 11 + sudo pip3 install --force-reinstall --upgrade pyserial Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple Collecting pyserial Downloading https://www.piwheels.org/simple/pyserial/pyserial-3.5-py2.py3-none-any.whl (90 kB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 90.6/90.6 kB 955.0 kB/s eta 0:00:00 WARNING: Error parsing requirements for idna: [Errno 2] No such file or directory: '/usr/local/lib/python3.7/dist-packages/idna-3.3.dist-info/METADATA' WARNING: Error parsing requirements for pyudev: [Errno 2] No such file or directory: '/usr/local/lib/python3.7/dist-packages/pyudev-0.23.2.dist-info/METADATA' Installing collected packages: pyserial Attempting uninstall: pyserial Found existing installation: pyserial 3.5 Uninstalling pyserial-3.5: Successfully uninstalled pyserial-3.5 Successfully installed pyserial-3.5 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 + echo 12 + sudo pip3 install --force-reinstall --upgrade tornado Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple Collecting tornado Downloading https://www.piwheels.org/simple/tornado/tornado-6.2-cp37-abi3-linux_armv7l.whl (422 kB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 422.5/422.5 kB 2.7 MB/s eta 0:00:00 WARNING: Error parsing requirements for idna: [Errno 2] No such file or directory: '/usr/local/lib/python3.7/dist-packages/idna-3.3.dist-info/METADATA' WARNING: Error parsing requirements for pyudev: [Errno 2] No such file or directory: '/usr/local/lib/python3.7/dist-packages/pyudev-0.23.2.dist-info/METADATA' Installing collected packages: tornado Attempting uninstall: tornado Found existing installation: tornado 6.2 Uninstalling tornado-6.2: Successfully uninstalled tornado-6.2 Successfully installed tornado-6.2 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 + echo 13 + sudo pip3 install --force-reinstall --upgrade zha-quirks==0.0.80 Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple Collecting zha-quirks==0.0.80 Downloading https://www.piwheels.org/simple/zha-quirks/zha_quirks-0.0.80-py3-none-any.whl (315 kB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 315.6/315.6 kB 1.8 MB/s eta 0:00:00 Collecting zigpy>=0.45.1 (from zha-quirks==0.0.80) Downloading https://www.piwheels.org/simple/zigpy/zigpy-0.51.6-py3-none-any.whl (153 kB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 153.1/153.1 kB 1.4 MB/s eta 0:00:00 Collecting aiohttp (from zigpy>=0.45.1->zha-quirks==0.0.80) Downloading https://www.piwheels.org/simple/aiohttp/aiohttp-3.8.4-cp37-cp37m-linux_armv7l.whl (486 kB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 486.6/486.6 kB 3.7 MB/s eta 0:00:00 Collecting aiosqlite>=0.16.0 (from zigpy>=0.45.1->zha-quirks==0.0.80) Downloading https://www.piwheels.org/simple/aiosqlite/aiosqlite-0.19.0-py3-none-any.whl (15 kB) Collecting crccheck (from zigpy>=0.45.1->zha-quirks==0.0.80) Downloading https://www.piwheels.org/simple/crccheck/crccheck-1.3.0-py3-none-any.whl (21 kB) Collecting cryptography (from zigpy>=0.45.1->zha-quirks==0.0.80) Downloading cryptography-40.0.2.tar.gz (625 kB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 625.6/625.6 kB 3.0 MB/s eta 0:00:00 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' Preparing metadata (pyproject.toml): started Preparing metadata (pyproject.toml): finished with status 'done' Collecting voluptuous (from zigpy>=0.45.1->zha-quirks==0.0.80) Downloading https://www.piwheels.org/simple/voluptuous/voluptuous-0.13.1-py3-none-any.whl (35 kB) Collecting yarl (from zigpy>=0.45.1->zha-quirks==0.0.80) Downloading https://www.piwheels.org/simple/yarl/yarl-1.9.2-cp37-cp37m-linux_armv7l.whl (99 kB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 99.3/99.3 kB 1.1 MB/s eta 0:00:00 Collecting pyserial-asyncio (from zigpy>=0.45.1->zha-quirks==0.0.80) Downloading https://www.piwheels.org/simple/pyserial-asyncio/pyserial_asyncio-0.6-py3-none-any.whl (7.5 kB) Collecting typing_extensions>=4.0 (from aiosqlite>=0.16.0->zigpy>=0.45.1->zha-quirks==0.0.80) Using cached https://www.piwheels.org/simple/typing-extensions/typing_extensions-4.6.2-py3-none-any.whl (31 kB) Collecting attrs>=17.3.0 (from aiohttp->zigpy>=0.45.1->zha-quirks==0.0.80) Downloading https://www.piwheels.org/simple/attrs/attrs-23.1.0-py3-none-any.whl (61 kB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 61.2/61.2 kB 862.0 kB/s eta 0:00:00 Collecting charset-normalizer<4.0,>=2.0 (from aiohttp->zigpy>=0.45.1->zha-quirks==0.0.80) Using cached charset_normalizer-3.1.0-py3-none-any.whl (46 kB) Collecting multidict<7.0,>=4.5 (from aiohttp->zigpy>=0.45.1->zha-quirks==0.0.80) Downloading https://www.piwheels.org/simple/multidict/multidict-6.0.4-cp37-cp37m-linux_armv7l.whl (53 kB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 53.9/53.9 kB 660.5 kB/s eta 0:00:00 Collecting async-timeout<5.0,>=4.0.0a3 (from aiohttp->zigpy>=0.45.1->zha-quirks==0.0.80) Downloading https://www.piwheels.org/simple/async-timeout/async_timeout-4.0.2-py3-none-any.whl (5.8 kB) Collecting frozenlist>=1.1.1 (from aiohttp->zigpy>=0.45.1->zha-quirks==0.0.80) Downloading https://www.piwheels.org/simple/frozenlist/frozenlist-1.3.3-cp37-cp37m-linux_armv7l.whl (66 kB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 66.1/66.1 kB 821.5 kB/s eta 0:00:00 Collecting aiosignal>=1.1.2 (from aiohttp->zigpy>=0.45.1->zha-quirks==0.0.80) Downloading https://www.piwheels.org/simple/aiosignal/aiosignal-1.3.1-py3-none-any.whl (7.6 kB) Collecting asynctest==0.13.0 (from aiohttp->zigpy>=0.45.1->zha-quirks==0.0.80) Downloading https://www.piwheels.org/simple/asynctest/asynctest-0.13.0-py3-none-any.whl (26 kB) Collecting idna>=2.0 (from yarl->zigpy>=0.45.1->zha-quirks==0.0.80) Using cached https://www.piwheels.org/simple/idna/idna-3.4-py3-none-any.whl (61 kB) Collecting cffi>=1.12 (from cryptography->zigpy>=0.45.1->zha-quirks==0.0.80) Using cached https://www.piwheels.org/simple/cffi/cffi-1.15.1-cp37-cp37m-linux_armv7l.whl (219 kB) Collecting pyserial (from pyserial-asyncio->zigpy>=0.45.1->zha-quirks==0.0.80) Using cached https://www.piwheels.org/simple/pyserial/pyserial-3.5-py2.py3-none-any.whl (90 kB) Collecting importlib-metadata (from attrs>=17.3.0->aiohttp->zigpy>=0.45.1->zha-quirks==0.0.80) Downloading https://www.piwheels.org/simple/importlib-metadata/importlib_metadata-6.6.0-py3-none-any.whl (22 kB) Collecting pycparser (from cffi>=1.12->cryptography->zigpy>=0.45.1->zha-quirks==0.0.80) Using cached https://www.piwheels.org/simple/pycparser/pycparser-2.21-py2.py3-none-any.whl (119 kB) Collecting zipp>=0.5 (from importlib-metadata->attrs>=17.3.0->aiohttp->zigpy>=0.45.1->zha-quirks==0.0.80) Downloading https://www.piwheels.org/simple/zipp/zipp-3.15.0-py3-none-any.whl (6.8 kB) Building wheels for collected packages: cryptography Building wheel for cryptography (pyproject.toml): started Building wheel for cryptography (pyproject.toml): still running... Building wheel for cryptography (pyproject.toml): still running... Building wheel for cryptography (pyproject.toml): still running... Building wheel for cryptography (pyproject.toml): still running... Building wheel for cryptography (pyproject.toml): still running... Building wheel for cryptography (pyproject.toml): still running... Building wheel for cryptography (pyproject.toml): still running...