Problems with Sensehat on Pi4 with Bookworm (Python3) and NR 4.0.3 - solved

I had the same problem as stefan24:
Problems with Sensehat on Pi4 with Bookworm (Python3) and NR 4.0.3

The cancellation of the connection to the sense-hat node is caused by the warning message ‘DeprecationWarning: activeCount() is deprecated ...’ in the sensehat.py file.
In the file sensehat.py, the deprecated method

activeCount()

must be replaced by the new method

active_count()

in line 130.

As soon as this change has been made, the connection is no longer interrupted.

2 Likes

Hi Paul

Thanks - will patch it later today.
Good luck with the Norovirus - lots of it about over here at the moment as well (as well as RSV and Covid and general winter flu... quadruple whammy! ) . Hope you manage to avoid them all...
Thanks for the update

Published as v 0.2.0... please can you try it again to double check if you get a chance - but it was just that one line change so hopefully ok...

1 Like

Hello dceejay,
I have just replaced my old Sense Hat version 0.1.5 with the new version 0.2.0. It works as desired. Thanks for creating the new version.

1 Like