-
Bug
-
Resolution: Fixed
-
Minor
-
3.4.7, 3.5.4, 3.6.2, 3.7
-
MOODLE_34_STABLE, MOODLE_35_STABLE, MOODLE_36_STABLE, MOODLE_37_STABLE
-
MOODLE_35_STABLE, MOODLE_36_STABLE
-
MDL-64994-master-pythonmlversion -
As a part of MDL-60944, the commit 18eb9a37334 changed the \mlbackend_python\processor::REQUIRED_PIP_PACKAGE_VERSION to 0.37.0 which is the latest version of the Python package https://github.com/moodlehq/moodle-mlbackend-python
This latest version 0.37.0 is installed by default when using the documented procedure of installing the package.
In stable branches such as Moodle 3.6, the constant was not changed and it still holds the original value 0.0.5.
The bug is that the method \mlbackend_python\processor::is_ready() checks for exact match of the versions. So if I have the latest version 0.37.0 installed, my Moodle 3.6 installation does not allow me to select the Python machine learning backend as the default one with the invalid error:
The selected predictions processor is not ready: "moodlemlbackend" python package should be updated. The required version is "0.0.5" and the installed version is "0.37.0"
We need to make it so that REQUIRED_PIP_PACKAGE_VERSION or higher is present.