Question Authors' Forum

Pb installing Code runner python 3 exemples

Picture of Nicolas M
Pb installing Code runner python 3 exemples
by Nicolas M - Thursday, 8 December 2016, 2:31 AM

Hi everybody

I'm just trying to install and use code runner for my courses in Moodle.

I'm facing problems using python 3 examples..I can't see the instant feedback like in the python 3 demo quizz.

the error message is : 

"Detailed test results unavailable. Perhaps an empty answer, or question not using Adaptive Mode?"

I've tried several modes but the problem seems to be with the plugins, libraries,templates.... I don't really know ;)

Thanks for your answers

Picture of Richard Lobb
Re: Pb installing Code runner python 3 exemples
by Richard Lobb - Thursday, 8 December 2016, 7:44 AM

Hi Nicolas

Firstly would you mind carrying out the following steps, please, because the use of something other than an adaptive behaviour is the usual and common cause of that error.

Navigate to the category containing your question in the Question Bank, then:

  1. Click the Preview icon for that question (magnifying glass)
  2. Scroll down to the Attempt options section
  3. Select "Adaptive mode" in the How questions behave dropdown.
  4. Click Start again with these options [did you miss this step, perhaps?]
  5. When the page refreshes, enter your answer in the question answer box.
  6. Click Check.
The wording of the error message is from a slightly older version of CodeRunner. I'd suggest you upgrade to the latest version. In fact, if you don't mind living slightly closer to the bleeding edge, you could checkout the Development branch on Github, rather than the Master Branch. The Development branch is now the Version 3.1 Release Candidate, and is pretty stable. We're running it on our production systems. It has a few nice new features including a Preview capability and an option to reload the student's answer box with a skeleton answer or extra instructions. Also, version 3.1 forces use of Adaptive Behaviour no matter what behaviour is chosen for the quiz, so the problem you're having (I think) shouldn't occur in future.