I am trying to install ndi-python package in my mac, I am getting the below error, anyone got idea on how to fix this issue.
CMake Error at CMakeLists.txt:10 (add_subdirectory):
add_subdirectory given source "lib/pybind11" which is not an existing
directory.
-- Found NDI: /Library/NDI SDK for Apple
CMake Error at CMakeLists.txt:19 (pybind11_add_module):
Unknown CMake command "pybind11_add_module".
-- Configuring incomplete, errors occurred!
error: command '/opt/homebrew/bin/cmake' failed with exit code 1
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for ndi-python
Running setup.py clean for ndi-python
Failed to build ndi-python
**ERROR: Could not build wheels for ndi-python, which is required to install pyproject.toml-based projects**
Scenario I am working on: Listing all the ndi sources available
I tried installing ndi-python
command used: pip install ndi-python
Python version: 3.9
IDE used: PyCharm
Take a look at the first part of your error message, which says:
As Tsyvarev stated, this is a git submodule. See https://github.com/buresu/ndi-python/tree/master/lib. It sounds like you did a clone without passing the
--recurse-submodules
flag. You can fix this though, by runninggit submodule update --init
(See also Pull git submodules after cloning project from GitHub).