Home/Support/Support Forum/launch python script
Welcome to Digi Forum, where you can ask questions and receive answers from other members of the community.

launch python script

0 votes
Hello everybody,

I test a digi card with yocto project, and in fact i've installed the digi image for yocto.

i see python is already install on this image , so after image installation, in FTP mode, i've forward my python file inside /home/myuser/

so i've /home/myuser/my_test_file_python.py

in SSH mode i'm log in root user and i set the next command :

python /home/myuser/my_test_file_python.py

=> i've the next error => Python : command not found.

So my question it will be ( excuse me per advance if it's a crazy question ) :

How i can lauch from yocto a python script ?

Thank a lot per advance for your return, and excuse my english, because i known it's not my most quality.

Thanks a lot,
co-IoT.
asked 6 days ago in Embedded Devices by coiot New to the Community (1 point)
recategorized 5 days ago by rmaroun

Please log in or register to answer this question.

1 Answer

0 votes
Hello all,

In fact it's ok for me i don't write :

phyton /home...


by i must write

phyton3.5 /home...

and it's ok my script is execute.

So now i don't now if someone use it, i would like to use the picamera on my digi card ( connect Core 6 SBC ) i had read on a website ( i don't remenber wich one sorry) that it was possible.

So,

on my raspberry pi i copy all the forlder picamera ( the library file in fact ) and i had paste in the same folder on the digi card. But in my python script when i execute it i've an error :

Traceback (most recent call last):
File "/home/user/test.py", line 7, in <module>
import picamera
ImportError: No module named 'picamera'

if somebody will be a little way for my problem, thanks a lot.

co-IoT.
answered 5 days ago by coiot New to the Community (1 point)
Contact a Digi expert and get started today! Contact Us
...