• DepthAI
  • I can install, but I can't run depthAI...

Hello,

Last year I installed depthAI on my macbook pro and have no issues running the OAK-D Lite and Pro models with my custom scripts.

It was time to transfer to a mac mini, which ran fine in January 2024. The mac mini had to be wiped. I have reinstalled the depthAI, and dependencies, and the demo app runs. But when I try to run my own scripts I get errors. I have tried installing depthAI in both the user home folder and in a folder in the documents, neither allows me to run the scripts. I get the below error:

And here is the demo app running:

I have tried updating/reinstalling opencv and numpy but I still get that error. Please help!

Many thanks, David

I am trying to install it manually and also get errors:

Hopefully someone can help me with this!

    dhunterrr
    You are installing packages in base environment which is blocked on newer versions of MacOS and generally a bad practice.
    Create a custom environment using venv pyenv or conda or something similar.
    Then clone the github repo (depthai-python) and run install_requirements.py.

    Make sure python version is at least 3.10 (optional but a good practice so you don't end up with some old version).

    Thanks,
    Jaka

    Thank you @jakaskerl I'll give this a go.

    Does using a virtual environment mean that all the repo code and required libraries are installed in the virtual environment folder? If I'm connected the camera output image to a local webpage does the webpage also need to go in a folder inside the virtual environment folder?

    Thanks,

    David

      dhunterrr
      Only the python packages you install while inside the virtual environment will be installed there.

      This is pretty standard python stuff, it's best if you GPT it; will be faster.

      Thanks,
      Jaka

      Thanks for the tips that is working very well now!

      I appreciate the speedy and helpful advice.