Skip to content

Commit 65a4aab

Browse files
committed
Fix ImageBuildFailure: update credit_defaults_model env to Python 3.9
Python 3.8 reached EOL (Oct 2024) and is no longer available in conda-forge or Azure ML base images, causing ImageBuildFailure. Changes to tutorials/get-started-notebooks/deploy/credit_defaults_model/: - conda.yaml: python 3.8.15 -> 3.9, remove pip cap, mlflow 2.17.2 - requirements.txt: mlflow 2.17.2 - python_env.yaml: python 3.9, update pip/setuptools/wheel - MLmodel: python_version 3.9 scikit-learn==0.24.2 is kept (required to load the model pickle). mlflow==2.17.2 is the last release before 2.18.0 dropped Python 3.8.
1 parent 50f168d commit 65a4aab

4 files changed

Lines changed: 9 additions & 9 deletions

File tree

tutorials/get-started-notebooks/deploy/credit_defaults_model/MLmodel

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ flavors:
44
env: conda.yaml
55
loader_module: mlflow.sklearn
66
model_path: model.pkl
7-
python_version: 3.8.15
7+
python_version: 3.9
88
sklearn:
99
code: null
1010
pickled_model: model.pkl

tutorials/get-started-notebooks/deploy/credit_defaults_model/conda.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
channels:
22
- conda-forge
33
dependencies:
4-
- python=3.8.15
5-
- pip<=21.2.4
4+
- python=3.9
5+
- pip
66
- pip:
7-
- mlflow
7+
- mlflow==2.17.2
88
- cloudpickle==2.2.0
99
- psutil==5.8.0
1010
- scikit-learn==0.24.2
Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
python: 3.8.15
1+
python: 3.9
22
build_dependencies:
3-
- pip==21.2.4
4-
- setuptools==59.8.0
5-
- wheel==0.38.4
3+
- pip==23.3.2
4+
- setuptools==69.0.3
5+
- wheel==0.42.0
66
dependencies:
77
- -r requirements.txt
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
mlflow
1+
mlflow==2.17.2
22
cloudpickle==2.2.0
33
psutil==5.8.0
44
scikit-learn==0.24.2

0 commit comments

Comments
 (0)