WeBWorK Main Forum

Every problem throwing same error

by Tim Flowers -
Number of replies: 2
We have recently updated on a new local server and are running:

ww_version: 2.8 | pg_version: 2.7

I'm noticing that most (every?) problems are throwing the same error (in assignments, in library browser, etc). Here it is:

Failed to evaluate module Chromatic: Can't locate Chromatic.pm in @INC (@INC contains: /opt/webwork/pg/lib /opt/webwork/webwork2/lib /etc/perl /usr/local/lib/perl/5.14.2 /usr/local/share/perl/5.14.2 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.14 /usr/share/perl/5.14 /usr/local/lib/site_perl . /etc/apache2) at (eval 6854) line 1.

Re: Every problem throwing same error

by Paul Pearson -
Hi Tim,

The WeBWorK install script that Jason Aubrey wrote

https://github.com/aubreyja/ww_install

mentions that chromatic needs to be installed for the NAU graph theory problems to work.  My hunch is that if you install chromatic, your error messages will go away.  Here is the relevant excerpt from the README.md file:

#############

Other files

The extra/ subdirectory contains scripts which help with optional post install tasks. These are not currently hooked into the other scripts, so you'll need to run them separately. Currently contains

• install_chromatic.pl

Standalone script to compile pg/lib/chromatic/color.c so the NAU library graph theory problems work. This functionality has been incorporated into ww_install.pl, so it should not be necessary to run this script. However, if you find the NAU graph theory problems are complaining thatpg/lib/chromatic/color doesn't exist, then you can run this script to compile it for you.

######################

You may also need to restart the apache server or webwork (or both) after installing chromatic. (I'm not sure about this, but restarting couldn't hurt.)

Best regards,

Paul Pearson

Re: Every problem throwing same error

by Arnold Pizer -
Hi,

Paul is correct. Look at the last 3 posts in http://webwork.maa.org/moodle/mod/forum/discuss.php?d=3416

Arnie