# Node-red-node-pi-gpio output stopped

**URL:** <https://discourse.nodered.org/t/node-red-node-pi-gpio-output-stopped/38363>\
**Category:** General\
**Created:** [1 January 2021 16:45 UTC](https://discourse.nodered.org/t/node-red-node-pi-gpio-output-stopped/38363 "2021-01-01T16:45:17Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jamos1988](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/jamos1988/32/34562_2.png) [@Jamos1988](https://discourse.nodered.org/u/Jamos1988)\
**Post date:** [1 January 2021 16:45 UTC](https://discourse.nodered.org/t/node-red-node-pi-gpio-output-stopped/38363/1 "2021-01-01T16:45:17Z")

</div>

I am having an issue with the node [node-red-node-pi-gpio (node) - Node-RED](https://flows.nodered.org/node/node-red-node-pi-gpio)  
This is the flow I am using:

```auto
[{"id":"881428ed.66fe88","type":"rpi-gpio out","z":"bc3b26f0.b8e538","name":"","pin":"29","set":true,"level":"0","freq":"","out":"out","x":507.00000762939453,"y":312.9999809265137,"wires":[]}]

```

Flow itself is fine I think, but after an upgrade of the Pi (compute module 3 16GB) the outputs all stopped. (see screenshot)

![issue](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/b/4/b4f58cc5076da91d35e497a1b8578515e2a21935.png)

When I activate the button so it will go to "1" the following error is in the debug: "nrgpio python command not running"

But, I don't know how to troubleshoot. Hope someone can help.

---

<div class="post-metadata">

**Author:** ![ghayne](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/ghayne/32/39_2.png) [@ghayne](https://discourse.nodered.org/u/ghayne)\
**Post date:** [1 January 2021 16:57 UTC](https://discourse.nodered.org/t/node-red-node-pi-gpio-output-stopped/38363/2 "2021-01-01T16:57:06Z")

</div>

> [@Jamos1988](#):
>
> but after an upgrade of the Pi (compute module 3 16GB)

Welcome to the forum.

What sort of upgrade have you made? Have you upgraded the OS or upgraded the whole system to a compute module?

---

<div class="post-metadata">

**Author:** ![dceejay](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/dceejay/32/38_2.png) [@dceejay](https://discourse.nodered.org/u/dceejay)\
**Post date:** [1 January 2021 17:30 UTC](https://discourse.nodered.org/t/node-red-node-pi-gpio-output-stopped/38363/3 "2021-01-01T17:30:33Z")

</div>

Is there a command python still installed ? try `which python` and tell us what it reports.  
If not - Is there a python3 ?

---

<div class="post-metadata">

**Author:** ![Jamos1988](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/jamos1988/32/34562_2.png) [@Jamos1988](https://discourse.nodered.org/u/Jamos1988)\
**Post date:** [1 January 2021 17:46 UTC](https://discourse.nodered.org/t/node-red-node-pi-gpio-output-stopped/38363/4 "2021-01-01T17:46:12Z")

</div>

Thanks for the answer. Python -V reports: 2.7.16  
But, I know I also have Python 3 installed, but 2.7.16 seems default.

---

<div class="post-metadata">

**Author:** ![Jamos1988](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/jamos1988/32/34562_2.png) [@Jamos1988](https://discourse.nodered.org/u/Jamos1988)\
**Post date:** [1 January 2021 19:21 UTC](https://discourse.nodered.org/t/node-red-node-pi-gpio-output-stopped/38363/5 "2021-01-01T19:21:51Z")

</div>

Sorry, I've read your question again, I have now done `which python` and it reports: usr/bin/python  
So, what do I do?

---

<div class="post-metadata">

**Author:** ![dceejay](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/dceejay/32/38_2.png) [@dceejay](https://discourse.nodered.org/u/dceejay)\
**Post date:** [1 January 2021 20:16 UTC](https://discourse.nodered.org/t/node-red-node-pi-gpio-output-stopped/38363/6 "2021-01-01T20:16:41Z")

</div>

The error indicates the python app that links to the gpio isn’t running. Usually this because python has got moved or broken. That doesn’t seem to be the case here. Are you running as the pi user ? Or at least the same one you used to install.

---

<div class="post-metadata">

**Author:** ![Jamos1988](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/jamos1988/32/34562_2.png) [@Jamos1988](https://discourse.nodered.org/u/Jamos1988)\
**Post date:** [1 January 2021 21:30 UTC](https://discourse.nodered.org/t/node-red-node-pi-gpio-output-stopped/38363/7 "2021-01-01T21:30:14Z")

</div>

I am running as the pi user indeed. The flow used to work before on the same install. Might it be a missing package or something like that? Something that makes the script fail? If I try to execute it manually it doesn't do anything. There is also a testscript in the same folder as the script, but it doesn't seem to output anything. Hope you can point me in the right direction or have any idea what is going wrong here.

---

<div class="post-metadata">

**Author:** ![Jamos1988](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/jamos1988/32/34562_2.png) [@Jamos1988](https://discourse.nodered.org/u/Jamos1988)\
**Post date:** [20 January 2021 12:05 UTC](https://discourse.nodered.org/t/node-red-node-pi-gpio-output-stopped/38363/8 "2021-01-20T12:05:13Z")

</div>

Sorry I missed your answer! I've also upgraded the image from 3b+ to the CM3 compute module (in essence they should be the same right?)

---

<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:** [21 March 2021 12:05 UTC](https://discourse.nodered.org/t/node-red-node-pi-gpio-output-stopped/38363/9 "2021-03-21T12:05:22Z")

</div>

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