Hi, when i try to start depthAI, i got the following error:

[  7%] Building CXX object CMakeFiles/arrow_python.dir/pyarrow/src/arrow/python/arrow_to_pandas.cc.o

  /private/var/folders/d9/97yz3dzn47l5n3gb821sbvx00000gp/T/pip-install-3rw8_gvp/pyarrow_f3758674e36746ac90befc782dead577/pyarrow/src/arrow/python/arrow_to_pandas.cc:1202:31: error: no member named 'Wrap' in 'arrow::py::(anonymous namespace)::WrapBytes<arrow::Decimal32Type>'

   1202 |       \*out = WrapBytes<Type>::Wrap(view.data(), view.length());

        |                               ^

  /private/var/folders/d9/97yz3dzn47l5n3gb821sbvx00000gp/T/pip-install-3rw8_gvp/pyarrow_f3758674e36746ac90befc782dead577/pyarrow/src/arrow/python/arrow_to_pandas.cc:1201:22: note: while substituting into a lambda expression here

   1201 |     auto WrapValue = [](const std::string_view& view, PyObject\*\* out) {

        |                      ^

  /opt/homebrew/include/arrow/visit_type_inline.h:54:34: note: in instantiation of function template specialization 'arrow::py::(anonymous namespace)::ObjectWriterVisitor::Visit<arrow::Decimal32Type>' requested here

     54 |     ARROW_GENERATE_FOR_ALL_TYPES(TYPE_VISIT_INLINE);

        |                                  ^

  /private/var/folders/d9/97yz3dzn47l5n3gb821sbvx00000gp/T/pip-install-3rw8_gvp/pyarrow_f3758674e36746ac90befc782dead577/pyarrow/src/arrow/python/arrow_to_pandas.cc:1410:12: note: in instantiation of function template specialization 'arrow::VisitTypeInline<arrow::py::(anonymous namespace)::ObjectWriterVisitor>' requested here

   1410 |     return VisitTypeInline(\*data->type(), &visitor);

        |            ^

  /private/var/folders/d9/97yz3dzn47l5n3gb821sbvx00000gp/T/pip-install-3rw8_gvp/pyarrow_f3758674e36746ac90befc782dead577/pyarrow/src/arrow/python/arrow_to_pandas.cc:1202:31: error: no member named 'Wrap' in 'arrow::py::(anonymous namespace)::WrapBytes<arrow::Decimal64Type>'

   1202 |       \*out = WrapBytes<Type>::Wrap(view.data(), view.length());

        |                               ^

  /private/var/folders/d9/97yz3dzn47l5n3gb821sbvx00000gp/T/pip-install-3rw8_gvp/pyarrow_f3758674e36746ac90befc782dead577/pyarrow/src/arrow/python/arrow_to_pandas.cc:1201:22: note: while substituting into a lambda expression here

   1201 |     auto WrapValue = [](const std::string_view& view, PyObject\*\* out) {

        |                      ^

  /opt/homebrew/include/arrow/visit_type_inline.h:54:34: note: in instantiation of function template specialization 'arrow::py::(anonymous namespace)::ObjectWriterVisitor::Visit<arrow::Decimal64Type>' requested here

     54 |     ARROW_GENERATE_FOR_ALL_TYPES(TYPE_VISIT_INLINE);

        |                                  ^

  /private/var/folders/d9/97yz3dzn47l5n3gb821sbvx00000gp/T/pip-install-3rw8_gvp/pyarrow_f3758674e36746ac90befc782dead577/pyarrow/src/arrow/python/arrow_to_pandas.cc:1410:12: note: in instantiation of function template specialization 'arrow::VisitTypeInline<arrow::py::(anonymous namespace)::ObjectWriterVisitor>' requested here

   1410 |     return VisitTypeInline(\*data->type(), &visitor);

        |            ^

  2 errors generated.

  make[2]: \*\*\* [CMakeFiles/arrow_python.dir/pyarrow/src/arrow/python/arrow_to_pandas.cc.o] Error 1

  make[1]: \*\*\* [CMakeFiles/arrow_python.dir/all] Error 2

  make: \*\*\* [all] Error 2

  error: command '/opt/homebrew/bin/cmake' failed with exit code 2

  [end of output]

note: This error originates from a subprocess, and is likely not a problem with pip.

ERROR: Failed building wheel for pyarrow

Failed to build pyarrow

ERROR: ERROR: Failed to build installable wheels for some pyproject.toml based projects (pyarrow)

Exception: DepthAI Viewer failed to install.

Message Box (Exception): Unable to start the DepthAI Viewer.

Exception: DepthAI Viewer failed to install.

2024-12-26 14:56:39.218 Python[5065:45533] +

System info:

"architecture": "64bit Mach-O",

"machine": "arm64",

"platform": "macOS-15.1.1-arm64-arm-64bit-Mach-O",

"processor": "arm",

"python_build": "main Dec  3 2024 17:59:52",

"python_compiler": "Clang 16.0.0 (clang-1600.0.26.4)",

"python_implementation": "CPython",

"python_version": "3.13.1",

"release": "24.1.0",

"system": "Darwin",

"version": "Darwin Kernel Version 24.1.0: Thu Nov 14 18:15:21 PST 2024; root:xnu-11215.41.3\~13/RELEASE_ARM64_T6041",

"win32_ver": "",

"packages": [

    "blobconverter==1.4.3",

    "certifi==2024.12.14",

    "charset-normalizer==2.0.12",

    "depthai==2.24.0.0",

    "depthai-sdk==1.9.4",

    "distinctipy==1.3.4",

    "ffmpy3==0.2.4",

    "idna==3.10",

    "lz4==4.3.3",

    "marshmallow==3.17.0",

    "mcap==1.2.1",

    "mcap-ros1-support==0.0.8",

    "numpy==1.26.4",

    "opencv-contrib-python==4.5.5.62",

    "packaging==24.2",

    "pip==24.3.1",

    "pytube==15.0.0",

    "PyTurboJPEG==1.6.4",

    "pyusb==1.2.1",

    "PyYAML==6.0.2",

    "Qt.py==1.4.1",

    "requests==2.26.0",

    "rosbags==0.9.11",

    "ruamel.yaml==0.18.6",

    "scipy==1.14.1",

    "sentry-sdk==1.14.0",

    "types-PySide2==5.15.2.1.7",

    "urllib3==1.26.20",

    "xmltodict==0.14.2",

    "zstandard==0.23.0"

],

"usb": [

    "No USB backend found"

],

"uname": [

    "Darwin AA-MacBook-Pro.local 24.1.0 Darwin Kernel Version 24.1.0: Thu Nov 14 18:15:21 PST 2024; root:xnu-11215.41.3\~13/RELEASE_ARM64_T6041 arm64 arm"

]

    peppercatmeow
    Can you try installing/reintsalling the latest version of viewer?

    For some reason the viewer install wants to build pyarrow which fails because your CMake is not properly configured. I just tested and the install works for me. Perhaps a new pyarrow wheel was not available at the time for MacOS.

    Thanks,
    Jaka

      5 days later

      hi Jakaskerl, I was following this instruction: https://docs.luxonis.com/hardware/platform/deploy/usb-deployment-guide/
      and i tried deleting everything downloaded by the script and rerun the curl comment (if that's what you mean by "installing/reinstalling the latest version of viewer") and still sees the error. one thing i notice is that when i ran depthai_launcher, it seems to be trying to use pyarrow 16.0.0 but my apache version is stable 18.1.0, do you think that could be the cause? if so, do you know how to fix? when i try brew install apache-arrow doesn't seem like i can specify a version.

      HEAD detached at v3.6.1
      nothing to commit, working tree clean
      Current commit: e85690d9738c8998c1f22e2ab31537497839dd36
      Current tag: v3.6.1
      Available DepthAI versions: ['v0.3.0.0', 'v0.4.0.0', 'v0.4.1.1', 'v1.0.0', 'v1.0.0.0', 'v2.0.0', 'v2.10.0.0', 'v2.7.2.0', 'v2.8.0.0', 'v2.9.0.0', 'v3.0.0', 'v3.0.1', 'v3.0.10', 'v3.0.11', 'v3.0.12', 'v3.0.12', 'v3.0.2', 'v3.0.3', 'v3.0.4', 'v3.0.5', 'v3.0.6', 'v3.0.7', 'v3.0.7', 'v3.0.8', 'v3.0.9', 'v3.1.0', 'v3.1.0', 'v3.1.1', 'v3.1.1', 'v3.1.2', 'v3.1.2', 'v3.1.3', 'v3.1.3', 'v3.2.0', 'v3.2.1', 'v3.3.0', 'v3.3.0', 'v3.3.1', 'v3.3.1', 'v3.4.0', 'v3.5.0', 'v3.5.0', 'v3.6.0', 'v3.6.0', 'v3.6.1']
      Current tag: v3.6.1, ver: 3.6.1
      Launching DepthAI Viewer.
      DepthAI Viewer not installed, installing...
      Requirement already satisfied: pip in /opt/homebrew/lib/python3.13/site-packages (24.3.1)
      Collecting depthai-viewer
        Using cached depthai_viewer-0.2.7-cp38-abi3-macosx_10_12_x86_64.macosx_11_0_arm64.macosx_10_12_universal2.whl.metadata (1.5 kB)
      Collecting deprecated (from depthai-viewer)
        Using cached Deprecated-1.2.15-py2.py3-none-any.whl.metadata (5.5 kB)
      Requirement already satisfied: numpy>=1.23 in /Users/alexialou/workspace/Luxonis/venv/lib/python3.13/site-packages (from depthai-viewer) (2.2.1)
      Collecting pyarrow==16.0.0 (from depthai-viewer)
        Using cached pyarrow-16.0.0.tar.gz (1.1 MB)
        Installing build dependencies ... done
        Getting requirements to build wheel ... done
        Preparing metadata (pyproject.toml) ... done
      Collecting setuptools (from depthai-viewer)
        Using cached setuptools-75.6.0-py3-none-any.whl.metadata (6.7 kB)
      Collecting wrapt<2,>=1.10 (from deprecated->depthai-viewer)
        Using cached wrapt-1.17.0-cp313-cp313-macosx_11_0_arm64.whl.metadata (6.4 kB)
      Using cached depthai_viewer-0.2.7-cp38-abi3-macosx_10_12_x86_64.macosx_11_0_arm64.macosx_10_12_universal2.whl (21.6 MB)
      Using cached Deprecated-1.2.15-py2.py3-none-any.whl (9.9 kB)
      Using cached setuptools-75.6.0-py3-none-any.whl (1.2 MB)
      Using cached wrapt-1.17.0-cp313-cp313-macosx_11_0_arm64.whl (38 kB)
      Building wheels for collected packages: pyarrow
      (venv) alexialou@AA-MacBook-Pro depthai %error
        error: subprocess-exited-with-error

      jakaskerl please see above comment, thanks!

      when i ran python3 -m pip install depthai-viewer I also see

      Building wheels for collected packages: pyarrow
        Building wheel for pyarrow (pyproject.toml) ... error
        error: subprocess-exited-with-error
      
        × Building wheel for pyarrow (pyproject.toml) did not run successfully.
        │ exit code: 1
        ╰─> [534 lines of output]
            <string>:34: DeprecationWarning: pkg_resources is deprecated as an API. See https://setuptools.pypa.io/en/latest/pkg_resources.html
            /private/var/folders/d9/97yz3dzn47l5n3gb821sbvx00000gp/T/pip-build-env-jz2krh9h/overlay/lib/python3.13/site-packages/setuptools/_distutils/dist.py:261: UserWarning: Unknown distribution option: 'tests_require'
              warnings.warn(msg)
            /private/var/folders/d9/97yz3dzn47l5n3gb821sbvx00000gp/T/pip-build-env-jz2krh9h/overlay/lib/python3.13/site-packages/setuptools/_distutils/dist.py:261: UserWarning: Unknown distribution option: 'test_suite'
              warnings.warn(msg)
            WARNING setuptools_scm.pyproject_reading toml section missing 'pyproject.toml does not contain a tool.setuptools_scm section'
            Traceback (most recent call last):
              File "/private/var/folders/d9/97yz3dzn47l5n3gb821sbvx00000gp/T/pip-build-env-jz2krh9h/overlay/lib/python3.13/site-packages/setuptools_scm/_integration/pyproject_reading.py", line 36, in read_pyproject
                section = defn.get("tool", {})[tool_name]
                          ~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^
            KeyError: 'setuptools_scm'
            running bdist_wheel
            running build
            running build_py
      
      ================================
      setuptools            75.6.0
      pip3 --version
      pip 24.3.1 from /Users/alexialou/workspace/Luxonis/venv/lib/python3.13/site-packages/pip (python 3.13)

      it works after I switch to use python3.10, I was using python3.13. thanks!

        peppercatmeow
        Oh, yes, not all libraries support python3.13 yet so best to use a more tested version.

        Thanks,
        Jaka