"Training failed" Error in Machine Learning Quick Start Project

Stephen_Hughes
Stephen_Hughes Registered Posts: 1

I just installed Dataiku 13.3.3 (Free Edition) on a MacBook Pro (MacOS 15.3) using Chrome as a browser.

I am going through the Machine Learning Quick Start project following instructions in Dataiku Academy.

I am getting a "Training Failed" error when training the model with the error message below.

I suspect the issue has something to do with the use of Python 3.7 packages, which I understand has been deprecated.

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/Stephen/Library/DataScienceStudio/kits/dataiku-dss-13.3.3-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/Stephen/Library/DataScienceStudio/kits/dataiku-dss-13.3.3-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' (no such file), '/usr/lib/libomp.dylib' (no such file, not in dyld cache)"]

Operating system used: MacOS 15.3

Answers

  • Lautaro
    Lautaro Registered Posts: 2

    Hi Stephen,

    Could you try the following and let me know if this helps?

    Steps in MAC Terminal:

    1) Install Rosetta 2:

    Install Apple Rosetta 2:

    /usr/sbin/softwareupdate --install-rosetta
    

    2) Install Homebrew for Universal apps:

    /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
    

    3) Install Homebrew for Intel apps:

    cd ~/Downloadsmkdir homebrewcurl -L https://github.com/Homebrew/brew/tarball/master | tar xz --strip 1 -C homebrew
    

    4) Move the homebrew directory to /usr/local/homebrew

    sudo mv homebrew /usr/local/homebrew
    

    5) Add a path to the .zshrc file:

    export PATH=$HOME/bin:/usr/local/bin:$PATH
    

    6) Create alias

    alias axbrew='arch -x86_64 /usr/local/homebrew/bin/brew'
    

    7) Install libomp for intel processor:

    axbrew install libomp
    

    In DSS:

    1) Create code env and add the xgboost package:

    image.png?expires=1738611900&signature=1ac554615f9ef41d1586c404fd4a54d56ae280f0e35e76bc2570e086ffe038e7&req=dSMnFc16nYZWWPMW1HO4zQ86Q1zAI5KGv9HN%2Fln0QLq6SA%3D%3D%0A

    2) Set the code env in your model design:

    image.png?expires=1738611900&signature=973b3e50d32841e640af28c7f71638967597813c72a62134ac46d88b221f1d06&req=dSMnFc16nYZWXfMW1HO4zZBkZ540xcTUgl%2FrbjHBccf8IQ%3D%3D%0A

    3) Enable the xgboost and train the model:

    image.png?expires=1738611900&signature=500297af3e18befa3be9ec72f8222219f24be457f24d83d4a4d11c5c9a2a0f5d&req=dSMnFc16nYZWW%2FMW1HO4zaGAgUUy8s1SjtC9yuoa2%2FrPuA%3D%3D%0A

    Regards,

Setup Info
    Tags
      Help me…