I'm using a python virtual environment and installing dependencies using the requirments.txt, (installed via install_requirements.py) from the depthai git repro.
The depthai version (from requirments.txt) is:
depthai==0.4.1.1; platform_machine != "armv6l" or platform_machine != "aarch64"
I can successfully run depthai_demo.py from depthai git repo, but I get the following error when running any of the examples from https://github.com/luxonis/depthai-python.
(depthai) pi@raspberrypi:/dev/depthai-python/examples$ python3 27_spatial_location_calculator.py
Traceback (most recent call last):
File "27_spatial_location_calculator.py", line 9, in <module>
pipeline = dai.Pipeline()
TypeError: depthai.Pipeline: No constructor defined!
and second example:
(depthai) pi@raspberrypi:/dev/depthai-python/examples$ python3 01_rgb_preview.py
Traceback (most recent call last):
File "01_rgb_preview.py", line 7, in <module>
pipeline = dai.Pipeline()
TypeError: depthai.Pipeline: No constructor defined!
So are depthai-python examples compatible with depthai 0.4.1.1 or do I need to manage multiple versions of depthai or other dependencies? Or... am I doing something else wrong?
Thanks in advance.