qcr/gtsam-quadrics

Error when executing `pip install .`

Closed this issue · 1 comments

Processing /home/xechariah/Projects/gtsam-quadrics-0.1.1
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
  Preparing metadata (pyproject.toml) ... done
Building wheels for collected packages: gtsam-quadrics
  Building wheel for gtsam-quadrics (pyproject.toml) ... error
  error: subprocess-exited-with-error
  
  × Building wheel for gtsam-quadrics (pyproject.toml) did not run successfully.
  │ exit code: 1
  ╰─> [46 lines of output]
      Warning: 'classifiers' should be a list, got type 'tuple'
      running bdist_wheel
      running build
      running build_ext
      cmake -DBUILD_SHARED_LIBS=OFF -DCMAKE_POSITION_INDEPENDENT_CODE=ON -G Ninja -B build/temp.linux-x86_64-3.8 -S /home/xechariah/Projects/gtsam-quadrics-0.1.1
      -- 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
      CMake Error at CMakeLists.txt:21 (add_subdirectory):
        The source directory
      
          /home/xechariah/Projects/gtsam-quadrics-0.1.1/gtsam
      
        does not contain a CMakeLists.txt file.
      
      
      CMake Error at CMakeLists.txt:34 (include):
        include could not find load file:
      
          /home/xechariah/Projects/gtsam-quadrics-0.1.1/gtsam/wrap/cmake/GtwrapUtils.cmake
      
      
      CMake Error at CMakeLists.txt:35 (include):
        include could not find load file:
      
          /home/xechariah/Projects/gtsam-quadrics-0.1.1/gtsam/wrap/cmake/PybindWrap.cmake
      
      
      CMake Error at CMakeLists.txt:86 (gtsamAddTestsGlob):
        Unknown CMake command "gtsamAddTestsGlob".
      
      
      -- Configuring incomplete, errors occurred!
      See also "/home/xechariah/Projects/gtsam-quadrics-0.1.1/build/temp.linux-x86_64-3.8/CMakeFiles/CMakeOutput.log".
      error: command 'cmake' failed with exit status 1
      [end of output]
  
  note: This error originates from a subprocess, and is likely not a problem with pip.
  ERROR: Failed building wheel for gtsam-quadrics
Failed to build gtsam-quadrics
ERROR: Could not build wheels for gtsam-quadrics, which is required to install pyproject.toml-based projects

Nevermind. It can only be installed in Python 3.9 environment.