addon-node-red
addon-node-red copied to clipboard
How to import python packages?
Hi. I try to run a python script with the exec node. When I try to run the script I get the following error:
Traceback (most recent call last):
File "/homeassistant/noderedgardenasocket.py", line 1, in <module>
import websocket
ModuleNotFoundError: No module named 'websocket'
Here are the first lines of the script:
import websocket
from threading import Thread
import time
import sys
import requests
May I use the configuration part of Nodered with the system_packages and rpm_packages? But wich packages should write down? At the moment I have the python3 and websocketd packages as system_packages running.
Thank you for your help.
Regards Martin