Hello everyone,

I just received my OAK-D and OAK-1 units and I'm having trouble setting them up to work on macos High Sierra.

I did and redid every step in the instructions for the installation (both written and video - they're consistent). I tried installing into various virtual environments (tried both pyenv from the cli and PyCharm). The software packages seem to install properly. However, when I try to run the first demo, I hit a wall:

I get this:

(OAK38)  MacBookPro  ~/depthai/main/python3 depthai_demo.py
Traceback (most recent call last):
  File "depthai_demo.py", line 9, in <module>
    import depth
ImportError: dlopen(/Users/myusername/.pyenv/versions/OAK38/lib/python3.8/site-packages/depthai.cpython-38-darwin.so, 2): Symbol not found: ____chkstk_darwin
  Referenced from: /Users/myusername/.pyenv/versions/OAK38/lib/python3.8/site-packages/palace.dylibs/libusb-1.0.0.dylib (which was built for Mac OS X 10.15)
  Expected in: /usr/lib/libSystem.B.dylib
 in /Users/myusername/.pyenv/versions/OAK38/lib/python3.8/site-packages/palace.dylibs/libusb-1.0.0.dylib

Can't anyone help me with this?
Thanks,
Fred

I have the same problem with Oak-1 in Mac Sierra. It has been awhile with no replies from anybody and even a note to the powers-that-be.

    Hi EdW,
    Thanks for your reply -
    I'm continuing to troubleshoot this. I've since figured out that the problem is in the depthai Python module itself (or triggered by the module). To reproduce the error message, you just need to enter "import depthai" in REPL.
    Now, ultimately, I realize that the issue points to the absence of file libSystem.B.dylib in folder /usr/lib/ (and I confirm that my system has no such file), but if this file is required for OAK to work, with doesn't the installer provide it? Or am I missing something?
    Anyway, if you get an answer via another troubleshooting channel, kindly post the solution here (I'll do same).
    Till then, cheers,
    Fred

    Sorry, correction : I double checked and my system DOES have file libSystem.B.dylib in folder /usr/lib/...

    no closer to solution

    Fred

    I was finally able to patch the problem and run depthai_demo.py on a macOS High Sierra host. Both devices, OAK-D and OAK-1, work.

    To recap:
    I followed the software installation instructions for macOS at docs.luxonis.com, without any apparent problem. (I chose to install into a pyenv virtualenv under python 3.6.12.)
    However, the depthai_demo.py wouldn't run, producing the error message that I quoted in my original post.
    The problem was that one of the installer scripts installed a version of libusb-1.0.0.dylib that is incompatible with macOS High Sierra (apparently compiled for macOS 10.15).
    My hacky-patch:
    I installed libusb with homebrew ('brew install libusb'), deleted the incompatible libusb-1.0.0.dylib and put in its place a symlink to the one installed by homebrew (mine was here: /usr/local/Cellar/libusb/1.0.24/lib/libusb-1.0.0.dylib).

    Short term, this patch idea can help Luxonis clients get started. Folks at Luxonis should fix the installer, though - who knows what other incompatible packages are lurking.

    Cheers,

    Fred

    EdW Hi EdW, let us know if the solution below works on Sierra. And I'm confirming that the solution also works with Python 3.9.1. Cheers, Fred

    FredJean

         Works like a charm on my High Sierra (my Sierra is acting up so I'll get back to you on that). I've been talking to the folks at luxonis. They are going to document your fix.

    Ed

    Does fine on Sierra with Python 3.6. Again thanks for the fix.

    Thanks for the fix, @FredJean ! And sorry about the delay... we've been very far behind because of European Brexit/pandemic logistics issues.

    Related thread here, which I also just got back to.

    Sorry bout the delay @EdW !

    -Brandon

      Not at all Brandon - I see that you are busy. I've realized since posting here that the best place to connect is on Discord, so I've moved on to that platform.
      Cheers,
      Fred