python error in bookworm lite image

34 views
Skip to first unread message

Wilm Boerhout

unread,
Feb 28, 2026, 11:26:07 AM (9 days ago) Feb 28
to ClusterHAT
I downloaded the "2025-10-01-1-bookworm-ClusterCTRL-armhf-lite-CBRIDGE.img"

It booted fine on my Raspberry Pi 3. I proceeded to download and setup the USBBOOT environment, and ran into an error when doing the USBBOOT-INIT 1 for the first Pi Zero.

The error is also reproducible in plain python, ouside the . The offending statement in usr/sbin/clusterctrl is line 381

import RPi.GPIO as GPIO

it raises a 

NotImplementedError: This module does not understand old-style revision codes

What gives?


Wilm Boerhout

unread,
Feb 28, 2026, 12:49:31 PM (9 days ago) Feb 28
to ClusterHAT
further investigation shows:

/proc/device-tree/system/linux,revision has 4 bytes: 00 00 00 10 as shown by hexdump
/proc/cpuinfo ends with: Model: Raspberry Pi Model B Plus Rev 1.2



Op zaterdag 28 februari 2026 om 17:26:07 UTC+1 schreef Wilm Boerhout:

ClusterHAT

unread,
Feb 28, 2026, 3:55:44 PM (9 days ago) Feb 28
to ClusterHAT
Hi,
 From the output of cpuinfo it looks like a Raspberry Pi Plus rather than a 3, which version of ClusterHAT do you have (so I can test with the same setup)?

It might also be worth trying with the newer 2025-11-24-2 release. I've updated the links on the website if you're using rpi-imager 1.x.x or for v2 rpi-imager (click "APP OPTION", click EDIT next to Content Repository, select "Use custom URL", paste in "https://dist.8086.net/clusterctrl/clusterctrl_os_list_v4.json", click "APPLY & RESTART".

Chris.

Wilm Boerhout

unread,
Mar 1, 2026, 3:29:18 AM (8 days ago) Mar 1
to clust...@googlegroups.com
Thank you Chris. I am using ClusterHAT V2.2. I shall follow up on your advice later today. 
  
Groet,
Wilm

(Verstuurd vanaf mijn telefoon, dus wat korter dan gewoonlijk.)
(Sent from my phone, so a bit more compact than usual)

Op 28 feb 2026 om 21:55 heeft ClusterHAT <clust...@googlegroups.com> het volgende geschreven:

Hi,
--
You received this message because you are subscribed to a topic in the Google Groups "ClusterHAT" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/clusterhat/r0dff7rD3rQ/unsubscribe.
To unsubscribe from this group and all its topics, send an email to clusterhat+...@googlegroups.com.
To view this discussion, visit https://groups.google.com/d/msgid/clusterhat/95d6e9f7-6993-401a-bcf5-c478b5b6afe3n%40googlegroups.com.

Wilm Boerhout

unread,
Mar 1, 2026, 7:37:16 AM (8 days ago) Mar 1
to ClusterHAT
After loading the above image, the same arror shows up in the first boot log:

pi@cbridge:~ $ journalctl -b | grep clusterctrl
Nov 24 02:21:35 cbridge systemd[1]: Starting clusterctrl-init.service - ClusterCTRL init...
Nov 24 02:21:48 cbridge clusterctrl[290]: Traceback (most recent call last):
Nov 24 02:21:48 cbridge clusterctrl[290]:   File "/usr/sbin/clusterctrl", line 381, in <module>
Nov 24 02:21:48 cbridge clusterctrl[290]:     import RPi.GPIO as GPIO
Nov 24 02:21:48 cbridge clusterctrl[290]:   File "/usr/lib/python3/dist-packages/RPi/GPIO/__init__.py", line 927, in <module>
Nov 24 02:21:48 cbridge clusterctrl[290]:     RPI_INFO = _get_rpi_info()
Nov 24 02:21:48 cbridge clusterctrl[290]:                ^^^^^^^^^^^^^^^
Nov 24 02:21:48 cbridge clusterctrl[290]:   File "/usr/lib/python3/dist-packages/RPi/GPIO/__init__.py", line 428, in _get_rpi_info
Nov 24 02:21:48 cbridge clusterctrl[290]:     raise NotImplementedError(
Nov 24 02:21:48 cbridge clusterctrl[290]: NotImplementedError: This module does not understand old-style revision codes
Nov 24 02:22:04 cbridge systemd[1]: clusterctrl-init.service: Main process exited, code=exited, status=1/FAILURE
Nov 24 02:22:04 cbridge systemd[1]: clusterctrl-init.service: Failed with result 'exit-code'.
Nov 24 02:22:04 cbridge systemd[1]: Failed to start clusterctrl-init.service - ClusterCTRL init.
Nov 24 02:22:04 cbridge systemd[1]: Dependency failed for clusterctrl-rpiboot.service - ClusterCTRL rpiboot for SD cardless booting.
Nov 24 02:22:04 cbridge systemd[1]: clusterctrl-rpiboot.service: Job clusterctrl-rpiboot.service/start failed with result 'dependency'.
Nov 24 02:22:04 cbridge systemd[1]: clusterctrl-init.service: Consumed 1.966s CPU time.
Nov 24 02:22:13 cbridge NetworkManager[435]: <info>  [1763947333.6404] ifupdown:       interface-parser: parsing file /etc/network/interfaces.d/clusterctrl
Nov 24 02:22:13 cbridge NetworkManager[435]: <info>  [1763947333.9006] ifupdown:       interface-parser: finished parsing file /etc/network/interfaces.d/clusterctrl


Op zondag 1 maart 2026 om 09:29:18 UTC+1 schreef Wilm Boerhout:

Wilm Boerhout

unread,
Mar 1, 2026, 8:01:50 AM (8 days ago) Mar 1
to ClusterHAT
I GOOFED BIG TIME ON THIS -- SORRY!

There are too many Pi boards on my workbench. I have installed the clusterhat on the wrong Pi. (A Raspberry Pi Model B+ V1.2)

Once I did this, and because the two boards are physically indistinguishable with the HAT on top, I failed to notice it during the clusterhat software install. With this in mind, the error is easily explained; as always, just read what it says.

With the correct Pi now under the HAT, the error is gone and I can proceed.

Sorry for wasting your time, y'all!

Wilm

Op zondag 1 maart 2026 om 13:37:16 UTC+1 schreef Wilm Boerhout:

Chris Burton

unread,
Mar 1, 2026, 6:54:00 PM (7 days ago) Mar 1
to ClusterHAT
Hi, 
There are too many Pi boards on my workbench. I have installed the clusterhat on the wrong Pi. (A Raspberry Pi Model B+ V1.2)

Not a problem, it looks like https://github.com/waveform80/rpi-lgpio/issues/22 is the cause of the issue, I have a patch which emulates it for the old models so I'll get try and get a PR submitted in the next few days (it might not get merged but it'll be there I guess).

Chris. 

ClusterHAT

unread,
Mar 2, 2026, 7:46:18 AM (7 days ago) Mar 2
to ClusterHAT
Hi, 

A patch to work around the "NotImplementedError: This module does not understand old-style revision codes" problem when running clusterctrl on models with old-style revision codes can be found at https://github.com/burtyb/clusterhat-image/commit/d59cdec43f411d55d86685c9cf87e107f95ab7fa (just needs a line adding to /usr/sbin/clusterctrl) and will be included in future ClusterCTRL releases.

Chris.
Reply all
Reply to author
Forward
0 new messages