question

Applicationerror-6864 avatar image
0 Votes"
Applicationerror-6864 asked PrasannaD-0494 published

XGboost error

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-webapps
· 2
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

I had already tried this method, but it not get succeeded

0 Votes 0 ·

1 Answer

SnehaAgrawal-MSFT avatar image
0 Votes"
SnehaAgrawal-MSFT answered PrasannaD-0494 published

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.

· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Is there any further update regarding ETA on support for XGBoost to Azure App Service?

0 Votes 0 ·