Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Not resolving module names #11

Open
kxkayser opened this issue Feb 13, 2019 · 3 comments
Open

Not resolving module names #11

kxkayser opened this issue Feb 13, 2019 · 3 comments

Comments

@kxkayser
Copy link

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.

@namgk
Copy link
Owner

namgk commented Feb 13, 2019 via email

@kxkayser
Copy link
Author

kxkayser commented Feb 13, 2019 via email

@namgk
Copy link
Owner

namgk commented Feb 13, 2019 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants