h2oai / wave-apps

Sample AI Apps built with H2O Wave.
MIT License
143 stars 52 forks source link

Telco churn 1.1.0 fails to start with `Failed building wheel for numpy` #124

Open hersonoliveira opened 6 months ago

hersonoliveira commented 6 months ago

Actual behavior Instance logs attached, error during pip install trying to build wheel for numpy 41319fdb-8436-47e4-802a-aa8c9cf93404.txt

Steps to reproduce: Import bundle and start new instance

Affected Versions: Telco Churn Risk 1.1.0

OS, browser, other environment details and versions: Tested on MC-24.02.1 https://7342184.dedicated.h2o.ai/apps/996a3028-49ef-4a9e-bc35-3ebd86a896c6

hersonoliveira commented 6 months ago

cc @VijithaEkanayake

mnezh commented 6 months ago

Investigation: apps from https://github.com/h2oai/wave-apps/releases/tag/v1.1.0 generally fail to install on the latest default runtime with python 3.10 (gcr.io/vorvan/h2oai/h2oai-cloud-launcher-python310:latest or 524466471676.dkr.ecr.us-east-1.amazonaws.com/h2oai/h2oai-cloud-launcher-python310:latest), but works with python 3.8.

There are two reasons:

  1. Applications use older versions of the packages (e.g. pandas==1.1.0). There are pre-built packages for python 3.6-3.8, but none for newer pythons (i.e. default 3.10) https://pypi.org/project/pandas/1.1.0/#files
  2. Attempt to build pandas for newer python fails because of the missing dev dependencies (see attached log failed-pandas-build-on-python-310.txt )

The solution: