Error on CodeRunner for Python3 plugins MeCab

Error on CodeRunner for Python3 plugins MeCab

by sky dancer23 -
Number of replies: 1

Please note that this is poor English as I am putting it into Google Translate
I would like to implement a Python plugin called MeCab that handles Japanese grammar with CodeRunner!

I have already installed MeCab on the Jobe server and have confirmed that it works on the CLI of the Jobe server.

However, I am having trouble creating a CodeRunner quiz on moodle and when I run it, I get the error in the attached image, does anyone know anything about this?

In reply to sky dancer23

Re: Error on CodeRunner for Python3 plugins MeCab

by Richard Lobb -
I assume you've already tried removing the memory limit and setting a large num_procs value? Sometimes you get inappropriate error messages when you exceed resource limits. But I admit this doesn't look like one of those errors.

You say MeCab works on the CLI of the Jobe server. Is it possible you have multiple versions of Python installed? I see that CodeRunner is trying to use python3.7 which is a fairly old version. Also, did you install mecab globally or just for the logged in user?
 
You can check that MeCab works for a typical jobe worker thread with a command like

sudo -u jobe01 python3.7

Make sure your code works from that python shell.