henryclever / FleX_PyBind11

Python bindings for the Nvidia FleX simulator
Other
13 stars 1 forks source link

Bindings Error #4

Open YoloZyk opened 7 months ago

YoloZyk commented 7 months ago

Hello, I'm trying to use the Python bindings based on the README.md in the bindings directory, but I got some unexpected results when I use pip install ./bindings

Looking in indexes: http://pypi.mirrors.ustc.edu.cn/simple
Processing ./bindings
  DEPRECATION: A future pip version will change local packages to be built in-place without first copying to a temporary directory. We recommend you use --use-feature=in-tree-build to test your packages with this new behavior be
fore it becomes the default.
   pip 21.3 will remove support for this functionality. You can find discussion regarding this at https://github.com/pypa/pip/issues/7555.
Building wheels for collected packages: bindings
  Building wheel for bindings (setup.py) ... error
  ERROR: Command errored out with exit status 1:
   command: /opt/conda/bin/python -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-req-build-f27r01u1/setup.py'"'"'; __file__='"'"'/tmp/pip-req-build-f27r01u1/setup.py'"'"';f = getattr(tokenize, '"'"'
open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'
))' bdist_wheel -d /tmp/pip-wheel-a9gz0d4z
       cwd: /tmp/pip-req-build-f27r01u1/
  Complete output (133 lines):
  running bdist_wheel
  running build
  running build_ext
  -- The C compiler identification is GNU 9.4.0
  -- The CXX compiler identification is GNU 9.4.0
  -- Check for working C compiler: /usr/bin/cc
  -- Check for working C compiler: /usr/bin/cc -- works
  -- Detecting C compiler ABI info
  -- Detecting C compiler ABI info - done
  -- Detecting C compile features
  -- Detecting C compile features - done
  -- Check for working CXX compiler: /usr/bin/c++
  -- Check for working CXX compiler: /usr/bin/c++ -- works
  -- Detecting CXX compiler ABI info
  -- Detecting CXX compiler ABI info - done
  -- Detecting CXX compile features
  -- Detecting CXX compile features - done
  -- Found OpenGL: /usr/lib/x86_64-linux-gnu/libGL.so
  -- Found Eigen: /usr/include/eigen3
  CMake Warning (dev) at CMakeLists.txt:18 (find_package):
    Policy CMP0074 is not set: find_package uses <PackageName>_ROOT variables.
    Run "cmake --help-policy CMP0074" for policy details.  Use the cmake_policy
    command to set the policy and suppress this warning.

    CMake variable FleX_ROOT is set to:

      /workspace/zyk/FlexDart/FleX_PyBind11

    For compatibility, CMake is ignoring the variable.
  This warning is for project developers.  Use -Wno-dev to suppress it.

  CMake Warning (dev) at CMakeLists.txt:19 (find_package):
    Policy CMP0074 is not set: find_package uses <PackageName>_ROOT variables.
    Run "cmake --help-policy CMP0074" for policy details.  Use the cmake_policy
    command to set the policy and suppress this warning.

    CMake variable CUDA_ROOT is set to:

      /usr/local/cuda

    For compatibility, CMake is ignoring the variable.
  This warning is for project developers.  Use -Wno-dev to suppress it.

  -- Found PythonInterp: /opt/conda/bin/python (found version "3.8.12")
  -- Found PythonLibs: /opt/conda/lib/libpython3.8.so
  -- Performing Test HAS_CPP14_FLAG
  -- Performing Test HAS_CPP14_FLAG - Success
  -- pybind11 v2.2.0
  -- Performing Test HAS_FLTO
  -- Performing Test HAS_FLTO - Success
  -- LTO enabled
  CMake Error: The following variables are used in this project, but they are set to NOTFOUND.
  Please set them or make sure they are set and tested correctly in the CMake files:
  LIB_ACCINJ64_148
      linked by target "bindings" in directory /tmp/pip-req-build-f27r01u1
  LIB_CUBLAS_148
      linked by target "bindings" in directory /tmp/pip-req-build-f27r01u1
  LIB_CUDART_148
      linked by target "bindings" in directory /tmp/pip-req-build-f27r01u1
  LIB_CUFFTW_148
      linked by target "bindings" in directory /tmp/pip-req-build-f27r01u1
  LIB_CUFFT_148
      linked by target "bindings" in directory /tmp/pip-req-build-f27r01u1
  LIB_CUINJ64_148
      linked by target "bindings" in directory /tmp/pip-req-build-f27r01u1
  LIB_CUPTI_148
      linked by target "bindings" in directory /tmp/pip-req-build-f27r01u1
  LIB_CURAND_148
      linked by target "bindings" in directory /tmp/pip-req-build-f27r01u1
  LIB_CUSOLVER_148
      linked by target "bindings" in directory /tmp/pip-req-build-f27r01u1
  LIB_CUSPARSE_148
      linked by target "bindings" in directory /tmp/pip-req-build-f27r01u1
  LIB_NPPC_148
      linked by target "bindings" in directory /tmp/pip-req-build-f27r01u1
  LIB_NPPIAL_148
      linked by target "bindings" in directory /tmp/pip-req-build-f27r01u1
  LIB_NPPICC_148
      linked by target "bindings" in directory /tmp/pip-req-build-f27r01u1
  LIB_NPPICOM_148
      linked by target "bindings" in directory /tmp/pip-req-build-f27r01u1
  LIB_NPPIDEI_148
      linked by target "bindings" in directory /tmp/pip-req-build-f27r01u1
  LIB_NPPIG_148
      linked by target "bindings" in directory /tmp/pip-req-build-f27r01u1
  LIB_NPPIM_148
      linked by target "bindings" in directory /tmp/pip-req-build-f27r01u1
  LIB_NPPIST_148
      linked by target "bindings" in directory /tmp/pip-req-build-f27r01u1
  LIB_NPPISU_148
      linked by target "bindings" in directory /tmp/pip-req-build-f27r01u1
  LIB_NPPITC_148
      linked by target "bindings" in directory /tmp/pip-req-build-f27r01u1
  LIB_NPPS_148
      linked by target "bindings" in directory /tmp/pip-req-build-f27r01u1
  LIB_NVBLAS_148
      linked by target "bindings" in directory /tmp/pip-req-build-f27r01u1
  LIB_NVGRAPH_148
      linked by target "bindings" in directory /tmp/pip-req-build-f27r01u1

I guess the key error is that the definition of LIB_*_148 is not found, but I'm not sure what that is. The results online told me that these are files in CUDA, but I didn't find them...