buresu / ndi-python

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

Pip install failing on Raspberry Pi #19

Open rsardal opened 2 years ago

rsardal commented 2 years ago

Pi version: Model 4 B Mmake version: 3.18.4

pi@raspberrypi:~ $ pip install ndi-python
Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple
Collecting ndi-python
  Using cached ndi-python-5.1.1.1.tar.gz (16 kB)
Requirement already satisfied: numpy in ./.local/lib/python3.9/site-packages (from ndi-python) (1.23.1)
Building wheels for collected packages: ndi-python
  Building wheel for ndi-python (setup.py) ... error
  ERROR: Command errored out with exit status 1:
   command: /usr/bin/python3 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-vc5djfcr/ndi-python_2ebd18bddf8c4ff3998aee43ddf2563c/setup.py'"'"'; __file__='"'"'/tmp/pip-install-vc5djfcr/ndi-python_2ebd18bddf8c4ff3998aee43ddf2563c/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' bdist_wheel -d /tmp/pip-wheel-kj3ci06v
       cwd: /tmp/pip-install-vc5djfcr/ndi-python_2ebd18bddf8c4ff3998aee43ddf2563c/
  Complete output (34 lines):
  running bdist_wheel
  running build
  running build_py
  creating build
  creating build/lib.linux-armv7l-3.9
  creating build/lib.linux-armv7l-3.9/NDIlib
  copying NDIlib/__init__.py -> build/lib.linux-armv7l-3.9/NDIlib
  running build_ext
  cmake .. -DCMAKE_INSTALL_PREFIX=/tmp/pip-install-vc5djfcr/ndi-python_2ebd18bddf8c4ff3998aee43ddf2563c/build/install
  -- The C compiler identification is GNU 10.2.1
  -- The CXX compiler identification is GNU 10.2.1
  -- Detecting C compiler ABI info
  -- Detecting C compiler ABI info - done
  -- Check for working C compiler: /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: /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: /usr
  CMake Error at CMakeLists.txt:19 (pybind11_add_module):
    Unknown CMake command "pybind11_add_module".

  -- Configuring incomplete, errors occurred!
  See also "/tmp/pip-install-vc5djfcr/ndi-python_2ebd18bddf8c4ff3998aee43ddf2563c/build/CMakeFiles/CMakeOutput.log".
  error: command '/usr/bin/cmake' failed with exit code 1
  ----------------------------------------
  ERROR: Failed building wheel for ndi-python
  Running setup.py clean for ndi-python
Failed to build ndi-python
Installing collected packages: ndi-python
    Running setup.py install for ndi-python ... error
    ERROR: Command errored out with exit status 1:
     command: /usr/bin/python3 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-vc5djfcr/ndi-python_2ebd18bddf8c4ff3998aee43ddf2563c/setup.py'"'"'; __file__='"'"'/tmp/pip-install-vc5djfcr/ndi-python_2ebd18bddf8c4ff3998aee43ddf2563c/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /tmp/pip-record-il66tt0h/install-record.txt --single-version-externally-managed --user --prefix= --compile --install-headers /home/pi/.local/include/python3.9/ndi-python
         cwd: /tmp/pip-install-vc5djfcr/ndi-python_2ebd18bddf8c4ff3998aee43ddf2563c/
    Complete output (20 lines):
    running install
    running build
    running build_py
    creating build/lib.linux-armv7l-3.9
    creating build/lib.linux-armv7l-3.9/NDIlib
    copying NDIlib/__init__.py -> build/lib.linux-armv7l-3.9/NDIlib
    running build_ext
    cmake .. -DCMAKE_INSTALL_PREFIX=/tmp/pip-install-vc5djfcr/ndi-python_2ebd18bddf8c4ff3998aee43ddf2563c/build/install
    CMake Error at CMakeLists.txt:10 (add_subdirectory):
      add_subdirectory given source "lib/pybind11" which is not an existing
      directory.

    CMake Error at CMakeLists.txt:19 (pybind11_add_module):
      Unknown CMake command "pybind11_add_module".

    -- Configuring incomplete, errors occurred!
    See also "/tmp/pip-install-vc5djfcr/ndi-python_2ebd18bddf8c4ff3998aee43ddf2563c/build/CMakeFiles/CMakeOutput.log".
    error: command '/usr/bin/cmake' failed with exit code 1
    ----------------------------------------
ERROR: Command errored out with exit status 1: /usr/bin/python3 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-vc5djfcr/ndi-python_2ebd18bddf8c4ff3998aee43ddf2563c/setup.py'"'"'; __file__='"'"'/tmp/pip-install-vc5djfcr/ndi-python_2ebd18bddf8c4ff3998aee43ddf2563c/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /tmp/pip-record-il66tt0h/install-record.txt --single-version-externally-managed --user --prefix= --compile --install-headers /home/pi/.local/include/python3.9/ndi-python Check the logs for full command output.
buresu commented 2 years ago

@rsardal Hi, which architecture in raspberry pi are you using? ndi-python only support for aarch64 in raspberry pi, so should select 64bit os. Please check the your architecture with the following command.

uname -m
rsardal commented 2 years ago

@buresu Ahh mine is armv7l, so looks like I won't be able to use it! Is there any support for 32 bit os coming?

Regardless, I love the library and thanks for the great work!