dry-orange-3870
03/04/2024, 3:48 PMbrew install libomp
is likely required. I've done that, but it's not making the error go away. I'll put the full error in the thread.
Lightgbm version: 4.3.0
Repo Python version: 3.9.5
Application resolve Python: 3.10.12
Pants version: 2.18.0 (but also happens in 2.19.0)
Any ideas on what's going on here and how we can resolve it?dry-orange-3870
03/04/2024, 3:48 PM× Building wheel for lightgbm (pyproject.toml) did not run successfully.
│ exit code: 1
╰─> [41 lines of output]
2024-03-04 09:38:48,863 - scikit_build_core - INFO - RUN: /Users/stephenhopper/.cache/pants/named_caches/pex_root/pip/23.1.2/pip_cache/.tmp/pip-build-env-31sagpts/normal/lib/python3.10/site-packages/cmake/data/bin/cmake --version
2024-03-04 09:38:48,871 - scikit_build_core - INFO - CMake version: 3.28.3
*** scikit-build-core 0.8.2 using CMake 3.28.3 (wheel)
2024-03-04 09:38:48,877 - scikit_build_core - INFO - Build directory: /Users/stephenhopper/.cache/pants/named_caches/pex_root/pip/23.1.2/pip_cache/.tmp/tmpd5h2myww/build
*** Configuring CMake...
2024-03-04 09:38:48,893 - scikit_build_core - INFO - RUN: /Users/stephenhopper/.cache/pants/named_caches/pex_root/pip/23.1.2/pip_cache/.tmp/pip-build-env-31sagpts/normal/lib/python3.10/site-packages/ninja/data/bin/ninja --version
2024-03-04 09:38:48,958 - scikit_build_core - INFO - Ninja version: 1.11.1
2024-03-04 09:38:48,960 - scikit_build_core - INFO - RUN: /Users/stephenhopper/.cache/pants/named_caches/pex_root/pip/23.1.2/pip_cache/.tmp/pip-build-env-31sagpts/normal/lib/python3.10/site-packages/cmake/data/bin/cmake -S. -B/Users/stephenhopper/.cache/pants/named_caches/pex_root/pip/23.1.2/pip_cache/.tmp/tmpd5h2myww/build -DCMAKE_BUILD_TYPE:STRING=Release -C/Users/stephenhopper/.cache/pants/named_caches/pex_root/pip/23.1.2/pip_cache/.tmp/tmpd5h2myww/build/CMakeInit.txt -DCMAKE_MAKE_PROGRAM=/Users/stephenhopper/.cache/pants/named_caches/pex_root/pip/23.1.2/pip_cache/.tmp/pip-build-env-31sagpts/normal/lib/python3.10/site-packages/ninja/data/bin/ninja -D__BUILD_FOR_PYTHON:BOOL=ON
loading initial cache file /Users/stephenhopper/.cache/pants/named_caches/pex_root/pip/23.1.2/pip_cache/.tmp/tmpd5h2myww/build/CMakeInit.txt
-- The C compiler identification is AppleClang 14.0.3.14030022
-- The CXX compiler identification is AppleClang 14.0.3.14030022
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /Library/Developer/CommandLineTools/usr/bin/cc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /Library/Developer/CommandLineTools/usr/bin/c++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Could NOT find OpenMP_C (missing: OpenMP_C_FLAGS OpenMP_C_LIB_NAMES)
-- Could NOT find OpenMP_CXX (missing: OpenMP_CXX_FLAGS OpenMP_CXX_LIB_NAMES)
-- Could NOT find OpenMP (missing: OpenMP_C_FOUND OpenMP_CXX_FOUND)
Error: $HOME must be set to run brew.
-- Found OpenMP_C: -Xpreprocessor -fopenmp -I/include
-- Found OpenMP_CXX: -Xpreprocessor -fopenmp -I/include
-- Found OpenMP: TRUE
-- Performing Test MM_PREFETCH
-- Performing Test MM_PREFETCH - Failed
-- Performing Test MM_MALLOC
-- Performing Test MM_MALLOC - Success
-- Using _mm_malloc
-- Configuring done (1.2s)
-- Generating done (0.0s)
-- Build files have been written to: /Users/stephenhopper/.cache/pants/named_caches/pex_root/pip/23.1.2/pip_cache/.tmp/tmpd5h2myww/build
*** Building project with Ninja...
2024-03-04 09:38:50,226 - scikit_build_core - INFO - RUN: /Users/stephenhopper/.cache/pants/named_caches/pex_root/pip/23.1.2/pip_cache/.tmp/pip-build-env-31sagpts/normal/lib/python3.10/site-packages/cmake/data/bin/cmake --build /Users/stephenhopper/.cache/pants/named_caches/pex_root/pip/23.1.2/pip_cache/.tmp/tmpd5h2myww/build
ninja: error: '/lib/libomp.dylib', needed by '/Users/stephenhopper/.cache/pants/named_caches/pex_root/pip/23.1.2/pip_cache/.tmp/pip-req-build-_ihaga_j/lib_lightgbm.so', missing and no known rule to make it
*** CMake build failed
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for lightgbm
ERROR: Failed to build one or more wheels
happy-kitchen-89482
03/04/2024, 4:08 PMhappy-kitchen-89482
03/04/2024, 4:08 PMdry-orange-3870
03/04/2024, 4:14 PMbrew install libomp
, how do I pipe that through so that Pants / PEX can see it?curved-television-6568
03/04/2024, 4:34 PMhappy-kitchen-89482
03/04/2024, 4:55 PMhappy-kitchen-89482
03/04/2024, 5:00 PMdry-orange-3870
03/04/2024, 5:12 PMhappy-kitchen-89482
03/04/2024, 11:26 PMhappy-kitchen-89482
03/04/2024, 11:27 PMdry-architect-80370
03/05/2024, 12:22 PMhappy-kitchen-89482
03/05/2024, 3:40 PMdry-orange-3870
03/05/2024, 3:52 PMpants.toml
, should I include the default values too?dry-orange-3870
03/05/2024, 4:22 PMHOME
through to the subprocess fixed the error. Thank you so much!