I am trying to install in my mac
I have all requirements installed (python, ndi sdk), but when I type "pip install ndi-python" in terminal, with or without sudo rights, I always getting the below error message :
Collecting ndi-python
Downloading ndi-python-5.1.1.1.tar.gz (16 kB)
Preparing metadata (setup.py) ... done
Requirement already satisfied: numpy in ./venv/lib/python3.11/site-packages (from ndi-python) (1.24.3)
Building wheels for collected packages: ndi-python
Building wheel for ndi-python (setup.py) ... error
error: subprocess-exited-with-error
× python setup.py bdist_wheel did not run successfully.
│ exit code: 1
╰─> [33 lines of output]
running bdist_wheel
running build
running build_py
creating build
creating build/lib.macosx-10.9-universal2-cpython-311
creating build/lib.macosx-10.9-universal2-cpython-311/NDIlib
copying NDIlib/init.py -> build/lib.macosx-10.9-universal2-cpython-311/NDIlib
running build_ext
cmake .. -DCMAKE_INSTALL_PREFIX=/private/tmp/pip-install-zea9xikg/ndi-python_2d44c946686a4d6a82d70f978cec3258/build/install
-- The C compiler identification is AppleClang 14.0.3.14030022
-- The CXX compiler identification is AppleClang 14.0.3.14030022
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /Library/Developer/CommandLineTools/usr/bin/cc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /Library/Developer/CommandLineTools/usr/bin/c++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
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
I have seen the same error in windows machine also.
Hi,
I am trying to install in my mac I have all requirements installed (python, ndi sdk), but when I type "pip install ndi-python" in terminal, with or without sudo rights, I always getting the below error message :
Collecting ndi-python Downloading ndi-python-5.1.1.1.tar.gz (16 kB) Preparing metadata (setup.py) ... done Requirement already satisfied: numpy in ./venv/lib/python3.11/site-packages (from ndi-python) (1.24.3) Building wheels for collected packages: ndi-python Building wheel for ndi-python (setup.py) ... error error: subprocess-exited-with-error
× python setup.py bdist_wheel did not run successfully. │ exit code: 1 ╰─> [33 lines of output] running bdist_wheel running build running build_py creating build creating build/lib.macosx-10.9-universal2-cpython-311 creating build/lib.macosx-10.9-universal2-cpython-311/NDIlib copying NDIlib/init.py -> build/lib.macosx-10.9-universal2-cpython-311/NDIlib running build_ext cmake .. -DCMAKE_INSTALL_PREFIX=/private/tmp/pip-install-zea9xikg/ndi-python_2d44c946686a4d6a82d70f978cec3258/build/install -- The C compiler identification is AppleClang 14.0.3.14030022 -- The CXX compiler identification is AppleClang 14.0.3.14030022 -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Check for working C compiler: /Library/Developer/CommandLineTools/usr/bin/cc - skipped -- Detecting C compile features -- Detecting C compile features - done -- Detecting CXX compiler ABI info -- Detecting CXX compiler ABI info - done -- Check for working CXX compiler: /Library/Developer/CommandLineTools/usr/bin/c++ - skipped -- Detecting CXX compile features -- Detecting CXX compile features - done CMake Error at CMakeLists.txt:10 (add_subdirectory): add_subdirectory given source "lib/pybind11" which is not an existing directory.
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
I have seen the same error in windows machine also.
Please provide solution to fix this issue.
Thank you 😃