# Raspberry sense hat problem

**URL:** <https://discourse.nodered.org/t/raspberry-sense-hat-problem/57918>\
**Category:** General\
**Created:** [7 February 2022 13:03 UTC](https://discourse.nodered.org/t/raspberry-sense-hat-problem/57918 "2022-02-07T13:03:33Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![RogierQ](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/rogierq/32/3211_2.png) [@RogierQ](https://discourse.nodered.org/u/RogierQ)\
**Post date:** [7 February 2022 13:03 UTC](https://discourse.nodered.org/t/raspberry-sense-hat-problem/57918/1 "2022-02-07T13:03:33Z")

</div>

Trying to get my sense hat working after a crash of my pi.  
created a new image ( basic ) and installed node red.  
using nr version 2.2.0  
every time i get the message `[node-red-node-pi-sense-hat/sensehat] Error: Can't find Sense HAT python libraries. Run sudo apt-get install sense-hat`

on install of sudo pip-3.2 install pillow i get sudo: pip-3.2: command not found  
maybe this is the problem?  
i cannot find in google how to solve that

thanks!

---

<div class="post-metadata">

**Author:** ![zenofmud](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/zenofmud/32/316_2.png) [@zenofmud](https://discourse.nodered.org/u/zenofmud)\
**Post date:** [7 February 2022 13:07 UTC](https://discourse.nodered.org/t/raspberry-sense-hat-problem/57918/2 "2022-02-07T13:07:57Z")

</div>

See if the hack here helps

> [@SenseHat environment / motion problem](https://discourse.nodered.org/t/sensehat-environment-motion-problem/46851/22):
>
> I may have found a hack to cure the problem One of the recent changes was to default to using python3 for the background data gathering instead of python2 I changed home/pi/.node-red/node\_modules/node-red-node-pi-sense-hat/sensehat to just use python2 again and it seems to have made it work again [image]

---

<div class="post-metadata">

**Author:** ![RogierQ](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/rogierq/32/3211_2.png) [@RogierQ](https://discourse.nodered.org/u/RogierQ)\
**Post date:** [7 February 2022 13:24 UTC](https://discourse.nodered.org/t/raspberry-sense-hat-problem/57918/3 "2022-02-07T13:24:01Z")

</div>

Thanks!  
So change python3 to python2?  
nope that is not working, found that solution before.

---

<div class="post-metadata">

**Author:** ![zenofmud](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/zenofmud/32/316_2.png) [@zenofmud](https://discourse.nodered.org/u/zenofmud)\
**Post date:** [7 February 2022 13:43 UTC](https://discourse.nodered.org/t/raspberry-sense-hat-problem/57918/4 "2022-02-07T13:43:32Z")

</div>

The issue is that the node calls a python program that was written using things that are not compatible with python3. I took a look awhile ago and did some work, but dropped it because of other claims on my time.

Recently I’ve been doing a little python coding for a project I’m developing and it may shine some light on what needs to be changed in the node’s python program. I’ll see if I can scrounge some time (in between watching grandkids shoveling snow, doing taxes etc) to take a look this week. No promises though.

---

<div class="post-metadata">

**Author:** ![RogierQ](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/rogierq/32/3211_2.png) [@RogierQ](https://discourse.nodered.org/u/RogierQ)\
**Post date:** [7 February 2022 17:51 UTC](https://discourse.nodered.org/t/raspberry-sense-hat-problem/57918/5 "2022-02-07T17:51:51Z")

</div>

🙏 🙏 🙏  
Thanks!

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)\
**Post date:** [8 April 2022 17:52 UTC](https://discourse.nodered.org/t/raspberry-sense-hat-problem/57918/6 "2022-04-08T17:52:26Z")

</div>

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.
