I am trying to run my OAK-lite camera with the DepthAI Viewer as per instructions here, but I am running into the following error - returned non-zero exit status 1 when launching the viewer.

I have seen recent threads here and here, but didn't see a clear resolution.

Thank you,

What I've done so far

1/ Created a virtual environment

2/ Installed dependencies

curl -fL https://docs.luxonis.com/install_dependencies.sh | bash

3/ Installed DepthAI

python3 -m pip install depthai

4/ Installed the viewer
python3 -m pip install depthai-viewer

5/ Launched the viewer
python3 -m depthai_viewer

The viewer (first launch) then starts "building wheel for depthai" for a solid 20 minutes…

… until it fails with the following error log below.

Error log

Building wheel for depthai (pyproject.toml): finished with status 'error'

Successfully built PyTurboJPEG

Failed to build depthai

Creating virtual environment...

Error occurred during dependency installation: Command '['/opt/anaconda3/envs/venv_4/lib/python3.10/site-packages/depthai_viewer/venv-0.2.3/bin/python', '-m', 'pip', 'install', 'depthai-sdk==1.14.0']' returned non-zero exit status 1.

Traceback (most recent call last):

  File "/opt/anaconda3/envs/venv_4/lib/python3.10/site-packages/depthai_viewer/install_requirements.py", line 88, in create_venv_and_install_dependencies

    subprocess.run(

  File "/opt/anaconda3/envs/venv_4/lib/python3.10/subprocess.py", line 526, in run

    raise CalledProcessError(retcode, process.args,

subprocess.CalledProcessError: Command '['/opt/anaconda3/envs/venv_4/lib/python3.10/site-packages/depthai_viewer/venv-0.2.3/bin/python', '-m', 'pip', 'install', 'depthai-sdk==1.14.0']' returned non-zero exit status 1.

Deleting partially created virtual environment: /opt/anaconda3/envs/venv_4/lib/python3.10/site-packages/depthai_viewer/venv-0.2.3

  • @jakaskerl to close the conversation here - I eventually bought a new computer and… everything went smoothly on the first try.

    I thank you for your support 🙂

I am using a MacBook Air 1.1 GHz Dual-Core Intel Core i3, with Sonoma 14.5.

That being said, I managed to run some (not all) of the examples provided on the Github repo.

Thanks @jakaskerl

1/ luxonis/depthai-pythontree/fix_macos_x86_wheels seems to be 404.

2/ run pip install --extra-index-url https://artifacts.luxonis.com/artifactory/luxonis-python-snapshot-local/ depthai==2.26.0.0.dev+75438dcaa5b8b28005b6fc5077ab62e435884e83 doesn't work either for me (also link to a 404).

Not sure what changed, but now when I run python3 -m pip install depthai-viewer I get the following error:

ERROR: Could not find a version that satisfies the requirement depthai-viewer (from versions: none)

ERROR: No matching distribution found for depthai-viewer

Any other option? 🙂

Hi @srecouvreur
Whoops my bad. It has already been merged to develop. Checking out to develop branch and running install_requirements.py should give you the right version.

Thanks,
Jaka

    jakaskerl

    Here's what I've tried:

    1/ depthai-python > examples > python3 install_requirements.py

    It updated a bunch of files (great).

    2/ depthai > examples > python3 install_requirements.py

    It gets stuck at the following step, and I am forced to cancel.

    Building wheels for collected packages: depthai

      Building wheel for depthai (pyproject.toml) ...

    3/ Install depth-viewer python3 -m pip install depthai-viewer

    I get the following error:

    ERROR: Could not find a version that satisfies the requirement depthai-viewer (from versions: none)

    ERROR: No matching distribution found for depthai-viewer

    4/ I tried reinstalling everything in a new environment, and I can no longer install depthai (stuck at the "building wheel" step) like at step 2.

    Did something change in the depthai installation that would prevent me from moving forward? I did manage to install it last week…

    Thanks for your help 🙂

      jakaskerl

      No dice - I get:

      ERROR: depthai_viewer-0.2.4-cp38-abi3-macosx_10_12_x86_64.macosx_11_0_arm64.macosx_10_12_universal2.whl is not a supported wheel on this platform.

      For information, I use Python 3.7.3 on a Mac (x86_64).

      Anything else I should try?

      14 days later

      @jakaskerl to close the conversation here - I eventually bought a new computer and… everything went smoothly on the first try.

      I thank you for your support 🙂