Gurobi / modeling-examples

Gurobi modeling examples
https://gurobi.github.io/modeling-examples/
Apache License 2.0
615 stars 272 forks source link

music_recommendation.ipynb cannot run under python 3.12 #27

Open venaturum opened 4 months ago

venaturum commented 4 months ago

modeling-examples/music_recommendation/music_recommendation.ipynb relies on lightfm.

The following works in an empty py311 environment:

python -m pip install --upgrade pip setuptools wheel
python -m pip install lightfm

but fails to build in an empty py312 environment. Consequently the notebook can't be used with py312.

mattmilten commented 3 months ago

I say we disable the 3.12 test for now until we find a better fix for this notebook. @yurchisin, do you have any idea on what to do here? We could also download the music data with 3.11 and add it to the repo but I am not too fond of this approach.

venaturum commented 3 months ago

We could always put the music data in its own repo if you didn't want to pollute this one.