I am using PYNQ-Z2, image version 2.6. I am running a code that involves capturing of frames using Reasense camera. The code is working fine using jupyter notebook python version 3.6. Now I want to run same code at boot time. But the camera is not turning ON. Any solution of this? is there any python version issue at boot time? The camera need depth and distance file for library use. I have added them in SD card. But still it’s not working. Any kind of suggestion are welcomed.
Thanks
How are you running the code at boot?
Cathal
Replacing the boot time code with my own code.
I have done it same for logitech camera and it was working. But realsense camera is not working.
Thanks
You will have to check the log.
boot.py
is a service, so to check the log run
sudo systemctl status bootpy.service
Mario
If it runs in notebook but not on cmd line, you may also want to check you are running from a venv See similar issue: https://discuss.pynq.io/t/how-to-use-kria-pynq-from-the-command-line/3723/2
Cathal
venv was introduced in PYNQ 2.7, it should not be a problem in 2.6
But, it is a good suggestion to make sure that the env you are running the notebook is the same as the one boot.py is running on.
Mario