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 - #122

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

Installing somef via pip - cmake is missing - #122

carlosug opened this issue Jul 15, 2024 · 1 comment

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.

@carlosug
Copy link
Author

closed as this issue was supposed to be in somef (@issue643)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant