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.