Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
carlosug opened this issue Jul 15, 2024 · 1 comment
Open

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

carlosug opened this issue Jul 15, 2024 · 1 comment
Labels
documentation Improvements or additions to documentation

Comments

@carlosug
Copy link

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
Copy link
Collaborator

dgarijo commented Aug 21, 2024

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

@dgarijo dgarijo added the documentation Improvements or additions to documentation label Aug 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

No branches or pull requests

2 participants