I just saved an open Library problem to a local Drive in my webwork course.
I got an error statement without making any changes except for the filename.
The new name I gave to this file was:
Payer/M105_HW_10/Overlayed_fprimes.pg
But in the error statement the reply stated that I named the file:
But I did not! What would cause this error?
Thanks, tim
Problem6 ERROR caught by Translator while processing problem file:Payer/M105_HW_10/Overlayed_fprimes.pg **************** ERRORS from evaluating PG file:
/usr/sbin/apache2: read_whole_file subroutine:
Can't read file [TMPL]/Payer/M105_HW_10/derivative-text.pg at [PG]/lib/WeBWorK/PG/IO.pm line 120 Died within WeBWorK::PG::IO::read_whole_file called at line 114 of [PG]/lib/WeBWorK/PG/IO.pm from within WeBWorK::PG::IO::read_whole_problem_file called at line 27 of [TMPL]/Library/macros/Union/unionInclude.pl from within main::includePGfile called at line 78 of (eval 5364)
****************
------Input Read 1 ## DESCRIPTION 2 ## Calculus 3 ## ENDDESCRIPTION 4 5 ## Tagged by tda2d 6 7 ## DBsubject(Calculus - single variable) 8 ## DBchapter(Applications of differentiation) 9 ## DBsection(Summary of curve sketching) 10 ## Date(9/29/08) 11 ## Institution(Union College) 12 ## MLT(SCS_graphs_match) 13 ## MLTleader(1) 14 ## Level(3) 15 ## KEYWORDS('derivatives' 'graph') 16 ## Library/Union/setDervGraphs/nsc2s10p3 17 18 DOCUMENT(); # This should be the first executable line in the problem. 19 20 loadMacros( 21 "PGstandard.pl", 22 "PGunion.pl", # Union College utilities 23 "MathObjects.pl", 24 "unionInclude.pl", # The text for this question is called with includePGfile("derivative-text.pg" 25 "PGchoicemacros.pl", 26 "PGgraphmacros.pl", 27 "PGcourse.pl", # Customization file for the course 28 ); 29 30 TEXT(beginproblem()); 31 32 ################################### 33 # Setup 34 35 $a=random(0, 6.3, .1); 36 $b=random(.7, .9, .1); 37 38 $dom = 4; 39 @slice = NchooseK(3,3); 40 41 @colors = ("blue", "red", "green"); 42 @sc = @colors[@slice]; #scrambled colors 43 @sa = ('A','B','C')[@slice]; 44 45 # define the functions and their derivatives. 46 # FEQ (Format EQuations) cleans up the writing of the functions (see FEQ in PGbasicmacros) 47 # Otherwise we would need to worry about the signs of $a, $b and so forth. 48 49 $f = FEQ("sin($a+$b*cos(x)) for x in <-$dom,$dom> using color:$sc[0] and weight:2"); 50 $fp = FEQ("cos($a+$b*cos(x))*(-$b)*sin(x) for x in <-$dom,$dom> using color=$sc[1] and weight:2"); 51 $fpp = FEQ("-sin($a+$b*cos(x))*$b*$b*sin(x)*sin(x)+ cos($a+$b*cos(x))*(-$b)*cos(x) for x in <-$dom,$dom> using color=$sc[2] and weight=2"); 52 53 $graph = init_graph(-4,-4,4,4,'axes'=>[0,0],'grid'=>[8,8],'size'=>[300,300]); 54 55 ($fRef,$fpRef,$fppRef) = plot_functions( $graph, 56 $f,$fp,$fpp 57 ); 58 59 # create labels 60 61 $label_point=-1; 62 $label_f = new Label ( $label_point,&{$fRef->rule}($label_point),$sa[0],"$sc[0]",'left') ; 63 # NOTE: $fRef->rule is a reference to the subroutine which calculates the 64 # function. It was defined in the output of plot_functions. It is used here 65 # to calculate the y value of the label corresponding to the function, 66 # and below to find the y values for the labels corresponding to the 67 # first and second derivatives. 68 69 $label_fp = new Label ( $label_point+.5,&{$fpRef->rule}($label_point+.5),$sa[1],"$sc[1]",'left') ; 70 $label_fpp = new Label ( $label_point+1,&{$fppRef->rule}($label_point+1),$sa[2],"$sc[2]",'left'); 71 72 # insert the labels into the graph 73 $graph->lb($label_f,$label_fp,$label_fpp); 74 75 ################################### 76 # Main text 77 78 includePGfile("derivative-text.pg"); 79 80 ################################### 81 # Answers 82 83 $showPartialCorrectAnswers = 0; 84 ANS(str_cmp( [ @sa ] ) ); 85 86 ################################### 87 88 89 ; 90 ENDDOCUMENT(); -----