buresu / ndi-python

NewTek NDI Python wrapper
MIT License
133 stars 30 forks source link

install error on windows 11 64 #28

Closed fgraux closed 1 year ago

fgraux commented 1 year ago

Hi I tried to install on windows, but term return a wheels building error. I have all requirements installed (python, ndi sdk), but when I type "pip install ndi-python" in powershell or cmd, with or without admin rights, I always get an error message :

Collecting ndi-python
  Using cached ndi-python-5.1.1.1.tar.gz (16 kB)
  Preparing metadata (setup.py) ... done
Requirement already satisfied: numpy in c:\python311\lib\site-packages (from ndi-python) (1.24.2)
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
  ╰─> [35 lines of output]
      running bdist_wheel
      running build
      running build_py
      creating build
      creating build\lib.win-amd64-cpython-311
      creating build\lib.win-amd64-cpython-311\NDIlib
      copying NDIlib\__init__.py -> build\lib.win-amd64-cpython-311\NDIlib
      running build_ext
      cmake .. -DCMAKE_INSTALL_PREFIX=C:\Users\Graux\AppData\Local\Temp\pip-install-h2kvsnzw\ndi-python_6ea5817216b84309b2c9fd1f986e82d6\build\install
      -- Building for: Visual Studio 16 2019
      -- Selecting Windows SDK version 10.0.19041.0 to target Windows 10.0.22621.
      -- The C compiler identification is MSVC 19.29.30143.0
      -- The CXX compiler identification is MSVC 19.29.30143.0
      -- Detecting C compiler ABI info
      -- Detecting C compiler ABI info - done
      -- Check for working C compiler: C:/Program Files (x86)/Microsoft Visual Studio/2019/BuildTools/VC/Tools/MSVC/14.29.30133/bin/Hostx64/x64/cl.exe - 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: C:/Program Files (x86)/Microsoft Visual Studio/2019/BuildTools/VC/Tools/MSVC/14.29.30133/bin/Hostx64/x64/cl.exe - 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: C:/Program Files/NDI/NDI 5 SDK
      CMake Error at CMakeLists.txt:19 (pybind11_add_module):
        Unknown CMake command "pybind11_add_module".

      -- Configuring incomplete, errors occurred!
      error: command 'C:\\Python311\\Scripts\\cmake.exe' 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

Have you got an idea of what I should do to solve this ? Thanks

Techman360 commented 1 year ago

I am having the same issue... what was the fix?

hancem commented 7 months ago

I have the problem. Can we re-open the issue? Any pointers?