KnowledgeCaptureAndDiscovery / somef

SOftware Metadata Extraction Framework: A tool for automatically extracting relevant software information from readme files
MIT License
44 stars 22 forks source link

Installing somef via pip -- cmake is missing -- #643

Open carlosug opened 3 months ago

carlosug commented 3 months ago

I've tried to install somef with pip (pip install somef) and got the following error related to cmake. I'm using macOS in a new environment:


ERROR: Failed building wheel for xgboost
Failed to build xgboost
ERROR: ERROR: Failed to build installable wheels for some pyproject.toml based projects (xgboost)

      INFO:root:creating build/temp.macosx-13.4-arm64-cpython-310/xgboost/plugin/example
      INFO:root:copying xgboost/plugin/example/README.md -> build/temp.macosx-13.4-arm64-cpython-310/xgboost/plugin/example
      INFO:root:copying xgboost/plugin/example/custom_obj.cc -> build/temp.macosx-13.4-arm64-cpython-310/xgboost/plugin/example
      INFO:root:creating build/temp.macosx-13.4-arm64-cpython-310/xgboost/plugin/updater_gpu
      INFO:root:copying xgboost/plugin/updater_gpu/README.md -> build/temp.macosx-13.4-arm64-cpython-310/xgboost/plugin/updater_gpu
      INFO:root:copying xgboost/plugin/README.md -> build/temp.macosx-13.4-arm64-cpython-310/xgboost/plugin
      INFO:root:copying xgboost/CMakeLists.txt -> build/temp.macosx-13.4-arm64-cpython-310/xgboost
      INFO:root:copying xgboost/LICENSE -> build/temp.macosx-13.4-arm64-cpython-310/xgboost
      INFO:XGBoost build_ext:Building from source. /private/var/folders/cp/m1hkjgr94zv492qffqvldc9dkth62_/T/pip-install-jw0hwstr/lib/libxgboost.dylib
      INFO:XGBoost build_ext:Run CMake command: ['cmake', 'xgboost', '-GNinja', '-DUSE_OPENMP=1', '-DUSE_CUDA=0', '-DUSE_NCCL=0', '-DBUILD_WITH_SHARED_NCCL=0', '-DHIDE_CXX_SYMBOLS=1', '-DUSE_HDFS=0', '-DUSE_AZURE=0', '-DUSE_S3=0', '-DPLUGIN_DENSE_PARSER=0']
      **error: [Errno 2] No such file or directory: 'cmake'
      [end of output]
  note: This error originates from a subprocess, and is likely not a problem with pip.**

Once I installed cmake (brew install cmake), I was able to install and use somef successfully.

dgarijo commented 2 months ago

This may need an update in the doc, but it is not a problem with the package itself.