Looking to hire someone to help me with my Oak-D and installing depthai on Jetson Xaiver, etc

I’m going in circles trying to install depthai. I was able to get opencv to install.
import cv2 as cv
print(cv.version)
This worked. I’m on version 3.2.0

I’m on a Jetson Xaiver and I’m using the instructions from Luxonis
https://docs.luxonis.com/projects/api/en/latest/install/#jetson

I was successfully able to install depthai version number 2.1 5.0.0

But this command seems to like to wipe things out.
jimmy@NX1:~/depthai$ python3 install_requirements.py
ip 21.3.1 from /home/jimmy/.local/lib/python3.6/site-packages/pip (python 3.6)
Requirement already satisfied: pip in /home/jimmy/.local/lib/python3.6/site-packages (21.3.1)
WARNING: Skipping opencv-python as it is not installed.
WARNING: Skipping opencv-contrib-python as it is not installed.
Found existing installation: depthai 2.15.0.0
Uninstalling depthai-2.15.0.0:
Successfully uninstalled depthai-2.15.0.0

I don’t why it uninstalled depthai-2.15.0.0
It does the same thing with the opencv-python and opencv-contrib-python

So I guess right now I’m stuck here.

Any help on this step would be greatly appreciated but again, I know I’m going do you have more questions going forward regarding the implementation of this camera and the models. And currently my time is somewhat valuable so again if there is anyone that is interested in getting paid to walk me through these things and explain to me conceptually how the system works I would be happy to pay for that.

Thanks very much.
Jim

1 Like

indeed, it does that (probably to get rid of outdated installed versions)
however, opencv will get reinstalled from requirements.txt, and the depthai code will get downloaded from github

#Download and install the dependency package
sudo wget -qO- https://docs.luxonis.com/install_dependencies.sh | bash

#Clone github repository
git clone https://github.com/luxonis/depthai-python.git
cd depthai-python

Thanks Berak. That added that directory. I’m not sure what to do next.

run setup.py
or
run build_module.sh

I guess I don’t want to be guessing but I’m not sure what to do next. I have dependency problems all over the place.

Not that we expected anything different here but this is still the status quo.


jimmy@NX1:~/depthai$ ./install_requirements.py 
pip 21.3.1 from /home/jimmy/.local/lib/python3.6/site-packages/pip (python 3.6)
Requirement already satisfied: pip in /home/jimmy/.local/lib/python3.6/site-packages (21.3.1)
WARNING: Skipping opencv-python as it is not installed.
WARNING: Skipping opencv-contrib-python as it is not installed.
WARNING: Skipping depthai as it is not installed.

Usage:   
  /usr/bin/python3 -m pip install [options] <requirement specifier> [package-index-options] ...
  /usr/bin/python3 -m pip install [options] -r <requirements file> [package-index-options] ...
  /usr/bin/python3 -m pip install [options] [-e] <vcs project url> ...
  /usr/bin/python3 -m pip install [options] [-e] <local project path> ...
  /usr/bin/python3 -m pip install [options] <archive url/path> ...

option --use-deprecated: invalid choice: 'html5lib' (choose from 'legacy-resolver', 'out-of-tree-build')
Traceback (most recent call last):
  File "./install_requirements.py", line 47, in <module>
    subprocess.check_call(pip_package_install + ["-r", "requirements.txt"], cwd=scriptDirectory)
  File "/usr/lib/python3.6/subprocess.py", line 311, in check_call
    raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['/usr/bin/python3', '-m', 'pip', 'install', '-U', '--prefer-binary', '--use-deprecated=html5lib', '--user', '-r', 'requirements.txt']' returned non-zero exit status 2.
jimmy@NX1:~/depthai$ ./depthai_demo.py 
Third party libraries failed to import: No module named 'depthai'
Run "python3 install_requirements.py" to install dependencies or visit our installation page for more details - https://docs.luxonis.com/projects/api/en/latest/install/

Thanks in advance. I didn’t think it would be this convoluted to get things working on a Jetson but we’ll get there.