addon-node-red icon indicating copy to clipboard operation
addon-node-red copied to clipboard

How to import python packages?

Open martinb07 opened this issue 2 years ago • 0 comments

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

martinb07 avatar Oct 03 '24 18:10 martinb07