Skip to content
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

Analytics model import error #53

Open
klorinczi opened this issue Apr 13, 2022 · 1 comment
Open

Analytics model import error #53

klorinczi opened this issue Apr 13, 2022 · 1 comment

Comments

@klorinczi
Copy link

klorinczi commented Apr 13, 2022

I try to import an Analytics model exported from Moodle 3.9.1 into another Moodle 3.9.1 installation, but I get error:

analytics/errorimportmodelresult
Error code: errorimportmodelresult
line 588 of /lib/mlbackend/python/classes/processor.php: moodle_exception thrown
line 438 of /lib/mlbackend/python/classes/processor.php: call to mlbackend_python\processor->exec_command()
line 131 of /analytics/classes/model_config.php: call to mlbackend_python\processor->import()
line 1613 of /analytics/classes/model.php: call to core_analytics\model_config->import()
line 58 of /admin/tool/analytics/importmodel.php: call to core_analytics\model::import_model()
I also get the following PHP Notice in webserver log:

PHP Notice: The indicator 'indicator:RESOURCE_2' should include a 'indicator:RESOURCE_2_help' string to describe its purpose
Any idea why the model import fails?

I use the moodlemlbackend v2.6.5 with Moodle 3.9.1.

I found interesting note in the following release note which relates to model import problems and moodlemlbackend v2.6.5:
2.6.5: Merge pull request #51 from catalyst/catalyst-fix-tests

Fixing import/export models.

Might be the error related to this fix in any way?

@danmarsden
Copy link
Contributor

Is the model you exported from a previous moodlemlbackend version? - eg something you've stored previously rather than one generated with the v2.6.5 mlbackend? If so, you'll need to re-train - pretty sure you can't take a model that you generated on an old version and then use that same model on the new mlbackend version.

Also - you really need to update that moodle site... 3.9.1 almost 2 years old and is missing a lot of bug and security fixes.

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

No branches or pull requests

2 participants