TL;DR
As of now, installation of the present version of TheengsGateway on a raspberry pi 0 w (bookworm, 32bit), takes several hours (I do not exactly know how many, more than 3 for sure). By installing some older pip modules, version 1.5.0 can be installed within minutes. This information may be useful for other Pi 0 w users.
I have been using TheengsGateway on several raspberry pi (3b, 4 and 0W) since version 1.2.0 without any problem. I have now updated the OS and installed the last version (1.6.0) on the raspberry pi 3b with bookworm 64bit without any problem.
When I tried to do the same on my pi 0W, with bookworm 32bit I had to stop installation after three hours. Pip was compiling Cmake from sources.
The version of cmake available in bookworm with apt is 3.25.1-1 which apparently is too old. On the raspberry pi 3b the compilation of cmake did not take so long.
I therefore tried to step back to a Theegsgateway version not requiring the new cmake. It was not only matter of requiring the older version of TG but also of some other modules. By trial and error I managed to install version 1.5.0 by manually installing first
- pip install dbus_fast==1.83.0
- pip install pycryptodomex==3.18.0
- pip install TheengsDecoder==1.7.8
- pip install TheengsGateway==1.5.0
Is there any better workaround? Should I let the pi 0W compile the wheel for all the required time?
Thank you for your attention
1 Like
Try to install Theengs decoder first with the instructions below:
And after install Theengs gateway
Thanks for your answer. I am on freshly installed bookworm on raspberry pi0w. I tried following instructions but when I installed
pip3 install setuptools setuptools_scm cmake==3.25.0 wheel scikit-build ninja
The installation was stuck compiling cmake-4.1.0.
(theengs-venv) raspi0w@raspi0w:~ $ pip3 install setuptools setuptools_scm cmake==3.25.0 wheel scikit-build ninja
Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple
Requirement already satisfied: setuptools in ./theengs-venv/lib/python3.11/site-packages (66.1.1)
Collecting setuptools_scm
Downloading setuptools_scm-9.2.0-py3-none-any.whl.metadata (7.7 kB)
Collecting cmake==3.25.0
Downloading https://archive1.piwheels.org/simple/cmake/cmake-3.25.0-cp311-cp311-linux_armv6l.whl (17.2 MB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 17.2/17.2 MB 396.2 kB/s 0:00:38
Collecting wheel
Downloading https://www.piwheels.org/simple/wheel/wheel-0.45.1-py3-none-any.whl (72 kB)
Collecting scikit-build
Downloading https://www.piwheels.org/simple/scikit-build/scikit_build-0.18.1-py3-none-any.whl (85 kB)
Collecting ninja
Downloading ninja-1.13.0.tar.gz (242 kB)
Installing build dependencies ... done
Getting requirements to build wheel ... done
Installing backend dependencies ... |
I tried again, by installing one package at a time. The culprit is the ninja package.
Maybe the 32bit image for raspberry pi zero w is not complete for some reason?