XGboost error

Application error 1 Reputation point
2020-11-07T17:40:32.543+00:00

Add support for xgboost in standard Flask python app container
When trying to deploy a python app using Flask for an API on Azure Web Apps, if the dependency of xgboost is included errors occur during the build.

For example, if the following is application.py:
import xgboost as xgb
import pandas as pd
from flask import Flask
from flask import request, jsonify
import numpy as np

then errors are thrown as follows:

2020-01-14T22:17:00.663067008Z xgboost.core.XGBoostError: XGBoost Library (libxgboost.so) could not be loaded.
2020-01-14T22:17:00.663070609Z Likely causes:
2020-01-14T22:17:00.663074109Z * OpenMP runtime is not installed (vcomp140.dll or libgomp-1.dll for Windows, libgomp.so for UNIX-like OSes)
2020-01-14T22:17:00.663077709Z * You are running 32-bit Python on a 64-bit OS

the problem appears to be missing libgomp.so

Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
8,933 questions
{count} votes

1 answer

Sort by: Most helpful
  1. SnehaAgrawal-MSFT 22,706 Reputation points Moderator
    2020-11-10T17:41:34.14+00:00

    Thanks for reaching here! As its mentioned here by PG “We have only added support for XGBoost to Azure Functions and not to Azure App Service. “
    Reference: https://github.com/Azure/azure-functions-python-worker/issues/659
    Also, we had internal discussions with PG and according to recent update there is no ETA at this point of time.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.