WeBWorK Problems

pop up list example problem

pop up list example problem

by Helena Verrill -
Number of replies: 1
I'm having a go at using pop ups, following the example at:
http://math.webwork.rochester.edu/docs/docs/pglanguage/tutorial/popuplist.html

This generally works fine, except even with exactly the example as above
cut and paste to my templates directory, so it's on the local problems set,
when I try the problem, (click "try it") and then click the "check answers" button, I get a message:

  • cd /opt/webwork/webwork2/tmp/ImageGenerator.XwevWkbH && /usr/bin/latex equation > latex.out 2> latex.err failed to generate a DVI file at /opt/webwork/pg/lib/WeBWorK/PG/ImageGenerator.pm line 356.
  • cd /opt/webwork/webwork2/tmp/ImageGenerator.XwevWkbH && /usr/bin/dvipng -bgTransparent -D120 -q -depth equation > dvipng.out 2> dvipng.err returned non-zero status 256: No such file or directory at /opt/webwork/pg/lib/WeBWorK/PG/ImageGenerator.pm line 362.


Not sure if this is something I need to worry about - it seems otherwise the problem looks fine, but it would be nice if it was possible to not have this message.

Thanks,
Helena
In reply to Helena Verrill

Re: pop up list example problem

by Michael Gage -
This looks like a permission problem having to do with creating images for equations -- nothing directly to do with the pop-up list.

Check that /opt/webwork/webwork2/tmp exists and that the webserver has write privileges in that directory.

Next make sure that the file preview.sty exists somewhere in your TeX macros hierarchy -- it's required by dvipng. You can run
pdflatex ....webwork2/bin/check_latex.tex to see if there are any errors or it can't find that file.


see also http://65.206.22.46/moodle/mod/forum/discuss.php?d=1276 for more details