From 710121fd2edca3d3dda153eadb5bdeaa7e1f110b Mon Sep 17 00:00:00 2001 From: Andreas Motl Date: Tue, 9 Apr 2024 01:07:04 +0200 Subject: [PATCH 1/2] TSML/PyCaret woes: Downgrade to Joblib 1.3 Joblib 1.4.0 is not compatible with PyCaret 3.3.0. from pycaret.internal.memory import get_memory from joblib.memory import _format_load_msg ImportError: cannot import name '_format_load_msg' from 'joblib.memory' --- topic/machine-learning/automl/requirements.txt | 1 + topic/timeseries/requirements.txt | 1 + 2 files changed, 2 insertions(+) diff --git a/topic/machine-learning/automl/requirements.txt b/topic/machine-learning/automl/requirements.txt index 76792597..0f1cf097 100644 --- a/topic/machine-learning/automl/requirements.txt +++ b/topic/machine-learning/automl/requirements.txt @@ -1,5 +1,6 @@ # Real. crate[sqlalchemy] +joblib<1.4 # Joblib 1.4.0 is not compatible with PyCaret 3.3.0 mlflow-cratedb==2.10.2 plotly<5.21 pycaret[models,parallel,test]==3.3.0 diff --git a/topic/timeseries/requirements.txt b/topic/timeseries/requirements.txt index bb22c200..b711e9ad 100644 --- a/topic/timeseries/requirements.txt +++ b/topic/timeseries/requirements.txt @@ -1,5 +1,6 @@ crate[sqlalchemy]==0.35.2 cratedb-toolkit[datasets]==0.0.8 +joblib<1.4 # Joblib 1.4.0 is not compatible with PyCaret 3.3.0 refinitiv-data<1.7 pandas<2 pycaret>=3.0,<3.4 From ea3bc240924822a10ba9187d2fd1cfd9aaa16945 Mon Sep 17 00:00:00 2001 From: Andreas Motl Date: Tue, 9 Apr 2024 20:27:47 +0200 Subject: [PATCH 2/2] TSML/PyCaret woes: Downgrade to Python 3.10 On CI/GHA/Python 3.11, we receive this error: ERROR automl_timeseries_forecasting_with_pycaret.py - TypeError: descriptor '__call__' for 'type' objects doesn't apply to a 'property' object On the other hand, `ngr test topic/machine-learning/automl` works well on our workstation on Python 3.10, so let's try that on CI as well. --- .github/workflows/ml-automl.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ml-automl.yml b/.github/workflows/ml-automl.yml index 9f13bf01..6ab38f11 100644 --- a/.github/workflows/ml-automl.yml +++ b/.github/workflows/ml-automl.yml @@ -37,7 +37,7 @@ jobs: fail-fast: false matrix: os: [ 'ubuntu-latest' ] - python-version: [ '3.11' ] + python-version: [ '3.10' ] cratedb-version: [ 'nightly' ] services: