# No module named rpi\_rf Import Error (433 mhz sender reciever)

**URL:** <https://discourse.nodered.org/t/no-module-named-rpi-rf-import-error-433-mhz-sender-reciever/37454>\
**Category:** General\
**Created:** [13 December 2020 20:51 UTC](https://discourse.nodered.org/t/no-module-named-rpi-rf-import-error-433-mhz-sender-reciever/37454 "2020-12-13T20:51:06Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![Elektroman](https://avatars.discourse-cdn.com/v4/letter/e/7ba0ec/32.png) [@Elektroman](https://discourse.nodered.org/u/Elektroman)\
**Post date:** [13 December 2020 20:51 UTC](https://discourse.nodered.org/t/no-module-named-rpi-rf-import-error-433-mhz-sender-reciever/37454/1 "2020-12-13T20:51:06Z")

</div>

Hi,  
i have this fault message when i run the code for the send with python3-function on node red. Same code working without any problem with Thonny IDE. Somehow import of rpi\_rf working not corectly. Does anyone has an idea, what the issue is?  
thanks

---

<div class="post-metadata">

**Author:** ![fellinga](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/fellinga/32/30631_2.png) [@fellinga](https://discourse.nodered.org/u/fellinga)\
**Post date:** [13 December 2020 21:10 UTC](https://discourse.nodered.org/t/no-module-named-rpi-rf-import-error-433-mhz-sender-reciever/37454/2 "2020-12-13T21:10:57Z")

</div>

had a similar issue.

The following solved my problem:

```auto
apt-get install python3-pip
pip3 install rpi-rf

```

---

<div class="post-metadata">

**Author:** ![Elektroman](https://avatars.discourse-cdn.com/v4/letter/e/7ba0ec/32.png) [@Elektroman](https://discourse.nodered.org/u/Elektroman)\
**Post date:** [13 December 2020 21:27 UTC](https://discourse.nodered.org/t/no-module-named-rpi-rf-import-error-433-mhz-sender-reciever/37454/3 "2020-12-13T21:27:20Z")

</div>

I tryed already. But nothing changed. ☹

---

<div class="post-metadata">

**Author:** ![fellinga](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/fellinga/32/30631_2.png) [@fellinga](https://discourse.nodered.org/u/fellinga)\
**Post date:** [13 December 2020 21:31 UTC](https://discourse.nodered.org/t/no-module-named-rpi-rf-import-error-433-mhz-sender-reciever/37454/4 "2020-12-13T21:31:13Z")

</div>

Are you calling the script via the exec node?

It should work if you would put this:

```auto
/usr/bin/python3 /home/pi/.node-red/myFolder/myScript.py

```

into the command field.

---

<div class="post-metadata">

**Author:** ![Elektroman](https://avatars.discourse-cdn.com/v4/letter/e/7ba0ec/32.png) [@Elektroman](https://discourse.nodered.org/u/Elektroman)\
**Post date:** [13 December 2020 22:04 UTC](https://discourse.nodered.org/t/no-module-named-rpi-rf-import-error-433-mhz-sender-reciever/37454/5 "2020-12-13T22:04:37Z")

</div>

Actually no. I am running the code in function python modul. How did you you do? My goal is sending decimal code from OpenHab over node red.

---

<div class="post-metadata">

**Author:** ![fellinga](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/fellinga/32/30631_2.png) [@fellinga](https://discourse.nodered.org/u/fellinga)\
**Post date:** [13 December 2020 22:09 UTC](https://discourse.nodered.org/t/no-module-named-rpi-rf-import-error-433-mhz-sender-reciever/37454/6 "2020-12-13T22:09:02Z")

</div>

I am using this script [send.py.txt](https://discourse.nodered.org/uploads/short-url/hJ0cNvfjOCYgOeV7RP5jGKgNl35.txt) (1.2 KB) and just call it with the exec node. The payload passed to the exec node goes directly to the script as argument - and the script just uses the Pi's GPIO Pin.

I made a button that sends `16777099` as payload to the exec node to turn on RGB lights for example.

---

<div class="post-metadata">

**Author:** ![Elektroman](https://avatars.discourse-cdn.com/v4/letter/e/7ba0ec/32.png) [@Elektroman](https://discourse.nodered.org/u/Elektroman)\
**Post date:** [13 December 2020 22:20 UTC](https://discourse.nodered.org/t/no-module-named-rpi-rf-import-error-433-mhz-sender-reciever/37454/7 "2020-12-13T22:20:29Z")

</div>

Thanks. I am going to try this way. Give you fb.

---

<div class="post-metadata">

**Author:** ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)\
**Post date:** [13 December 2020 22:20 UTC](https://discourse.nodered.org/t/no-module-named-rpi-rf-import-error-433-mhz-sender-reciever/37454/8 "2020-12-13T22:20:32Z")

</div>

+1 for using an exec node, or rewrite the function in javascript. Others have had issues with the python nodes.

---

<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:** [11 February 2021 22:20 UTC](https://discourse.nodered.org/t/no-module-named-rpi-rf-import-error-433-mhz-sender-reciever/37454/9 "2021-02-11T22:20:33Z")

</div>

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