Resolving XGBoost Error on M3 Macs using Rosetta Translation (Homebrew , Conda , or Direct )
Please help I am at my wits end tried multiple strategies through terminal. Installed XGBoost, Homebrew and Conda libraries. Updated Java. The AutoMl training cannot compile output for Random Forest and XGBoost Algo's. Error documented below.
M3 Max Macbook Pro
zsh : parse error near - In terminal when doing checks
Error in DSS
Failed to train : <class 'xgboost.core.XGBoostError'> : XGBoost Library (libxgboost.dylib) could not be loaded. Likely causes: * OpenMP runtime is not installed - vcomp140.dll or libgomp-1.dll for Windows - libomp.dylib for Mac OSX - libgomp.so for Linux and other UNIX-like OSes Mac OSX users: Run `brew install libomp` to install OpenMP runtime. * You are running 32-bit Python on a 64-bit OS Error message(s): ["dlopen(/Users/drushennaidoo/Library/DataScienceStudio/kits/dataiku-dss-13.0.0-osx/python37.packages/xgboost/lib/libxgboost.dylib, 0x0006): Library not loaded: /usr/local/opt/libomp/lib/libomp.dylib\n Referenced from: <4D0FF2E5-E6B5-33EC-95A4-F63DEE574377> /Users/drushennaidoo/Library/DataScienceStudio/kits/dataiku-dss-13.0.0-osx/python37.packages/xgboost/lib/libxgboost.dylib\n Reason: tried: '/usr/local/opt/libomp/lib/libomp.dylib' (no such file), '/System/Volumes/Preboot/Cryptexes/OS/usr/local/opt/libomp/lib/libomp.dylib' (no such file), '/usr/local/opt/libomp/lib/libomp.dylib' (no such file), '/usr/local/lib/libomp.dylib' (mach-o file, but is an incompatible architecture (have 'arm64', need 'x86_64')), '/usr/lib/libomp.dylib' (no such file, not in dyld cache)"]
Operating system used: Mac OS 14
Answers
-
After Updating to DataIku 13.0 I have the same problem with all Train recipes on MacBook 13" 2020 Intel Core i5 with MacOS Sonoma 14.5
-
Hello,
You should try to run :
arch -x86_64 /usr/local/bin/brew install libomp
You don't have the right installation for libomp.
-
Where should I run that line?
I did it, but I had an error.
Please I need more help.
Or should I just re-install it? -
Hi, how do I run this ?
-
Turribeach Dataiku DSS Core Designer, Neuron, Dataiku DSS Adv Designer, Registered, Neuron 2023 Posts: 2,160 Neuron
It's worth mentioning that the Dataiku MacOS version is:
- Not meant for production usage
- Only provided for testing and experiments
- Dataiku will not provide support on this platform
So some features may not work. For a fully supported experience I recommend you look at the Dataiku requirements.