Skip to content

TSML/PyCaret woes: Downgrade to Joblib 1.3 and Python 3.10 #401

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Apr 9, 2024

Conversation

amotl
Copy link
Member

@amotl amotl commented Apr 8, 2024

Problem

Joblib 1.4.0, released a few hours ago, 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'

Solution

Downgrade to Joblib 1.3.

References

@amotl amotl requested a review from surister April 8, 2024 23:10
@amotl amotl mentioned this pull request Apr 8, 2024
2 tasks
@amotl
Copy link
Member Author

amotl commented Apr 9, 2024

Problem

710121f resolved the incompatibility with Joblib 1.4.0, but now, AutoML/PyCaret fails with:

ERROR automl_timeseries_forecasting_with_pycaret.py - TypeError: descriptor '__call__' for 'type' objects doesn't apply to a 'property' object

-- https://github.com/crate/cratedb-examples/actions/runs/8607776648/job/23599964011?pr=401#step:6:1057

Evaluation

What's going on? We also filed an upstream issue about it, just for the records.

amotl added 2 commits April 9, 2024 20:26
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'
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.
@amotl amotl force-pushed the amo/fix-pycaret-joblib branch from 7612f9d to ea3bc24 Compare April 9, 2024 18:27
@amotl amotl changed the title Dependencies: Downgrade to Joblib 1.3 TSML/PyCaret woes: Downgrade to Joblib 1.3 Apr 9, 2024
@amotl amotl marked this pull request as ready for review April 9, 2024 18:39
@amotl
Copy link
Member Author

amotl commented Apr 9, 2024

Downgrading to Python 3.10 on behalf of ea3bc24 finally resolved that hiccup. Seufz.

@amotl amotl changed the title TSML/PyCaret woes: Downgrade to Joblib 1.3 TSML/PyCaret woes: Downgrade to Joblib 1.3 and Python 3.10 Apr 9, 2024
@amotl amotl merged commit e9e59f3 into main Apr 9, 2024
@amotl amotl deleted the amo/fix-pycaret-joblib branch April 9, 2024 18:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant