Jason. Apologies. I was mistaken. I take detailed notes, and should have checked them before responding. (I must have been thinking of something else that resulted in "Illegal instruction".)
My error message was:
(lux_only) pi@oak1b:~/depthai-python/examples $ python3 01_rgb_preview.py
Traceback (most recent call last):
File "01_rgb_preview.py", line 23, in <module>
with dai.Device(pipeline) as device:
RuntimeError: Failed to find device (ma2480), error message: X_LINK_DEVICE_NOT_FOUND
Most likely due to trying to run Gen2 examples with Gen1 depthai, I would think.
My venv/bin is :
(lux_only) pi@oak1b:~/.virtualenvs/lux_only/bin $ ls -al | grep python
lrwxrwxrwx 1 pi pi 16 Apr 1 11:34 python -> /usr/bin/python3
lrwxrwxrwx 1 pi pi 6 Apr 1 11:34 python3 -> python
lrwxrwxrwx 1 pi pi 6 Apr 1 11:34 python3.7 -> python
And in the hope that it might be helpful, I will include my entire install notes below:
Downloaded 32 bit via Raspberry Pi Imager
Set time/loc/passwd/connected to WLAN/ran upddates / rebooted
Renamed host to 'oak1b'
>Preferences>Raspberry Pi Configuration
Renamed to 'oak1b'
Enabled camera, VNC, SSH
Increased GPU to 128
rebooted / checked settings
set static wifi ip / disabled IPv6 / rebooted
connected to vnc
sudo rpi-eeprom-update checked
right click on Task Bar and Add/Remove Panel items.
added CPU temp
added CPU usage
sudo apt update
sudo apt full-upgrade
sudo apt install python3 python3-pip
sudo apt install build-essential cmake pkg-config
sudo apt install libatlas-base-dev gfortran
sudo apt install libhdf5-serial-dev hdf5-tools
mkdir python-envs && cd python-envs
pip3 install virtualenvwrapper
sudo nano ~/.bashrc
[my notes are not clear at this point - but essentially - within the lux_only env, I followed the basic steps of dependencies.sh, install_reqs and then I wasn't sure which depth-ai to install, and ended up trying to install Gen1, and I think the snapshot (though maybe I am mistaken and am remembering a previous occasion...);
but the end result was that I ended up running: pip uninstall depthai]
//then my notes start again...
...Installing collected packages: depthai
Successfully installed depthai-18.104.22.168
After that I was successfully able to execute the scripts in the examples folder.
I hope this is helpful, and apologies for my initial incorrect response.