Hi. I am trying to use the Pythonshell node to start a program on a RPi. My default environment is Python 3.5.3. The program file has a shebang statement reflecting this environment (#!/usr/bin/env python3) and works fine from the command line, a desktop icon and the NR exec node. When executing it from the Pythonshell command, it can't find the first import module. It is finding the program. I assume it's launching the program in an environment other than where I have the modules installed but this may not really be the problem. I am quite new to this environment.
Using the "exec" node in NR works fine. I am using exactly the same string as the payload:
/home/pi/pp/dashboard/./temp_hum_pres_2.py
The error that I get is:
exit code: 1, Traceback (most recent call last):
File "temp_hum_pres.py", line 4, in
import board
ImportError: No module named board
"board" is a module installed in my Python environment from Adafruit.
Hi. I am trying to use the Pythonshell node to start a program on a RPi. My default environment is Python 3.5.3. The program file has a shebang statement reflecting this environment (#!/usr/bin/env python3) and works fine from the command line, a desktop icon and the NR exec node. When executing it from the Pythonshell command, it can't find the first import module. It is finding the program. I assume it's launching the program in an environment other than where I have the modules installed but this may not really be the problem. I am quite new to this environment.
Using the "exec" node in NR works fine. I am using exactly the same string as the payload:
/home/pi/pp/dashboard/./temp_hum_pres_2.py
The error that I get is:
exit code: 1, Traceback (most recent call last):
File "temp_hum_pres.py", line 4, in
import board
ImportError: No module named board
"board" is a module installed in my Python environment from Adafruit.