I am definitely having problem with PGchoicemacros.pl and the version of perl I am using.
([root@www2 root]# rpm -qa |grep perl
perl-Filter-1.29-3
perl-XML-Dumper-0.4-25
perl-DBI-1.32-5
perl-DateManip-5.40-30
perl-libwww-perl-5.65-6
perl-SGMLSpm-1.03ii-11
perl-DBD-MySQL-2.1021-3
perl-Parse-Yapp-1.05-30
perl-XML-Parser-2.31-15
perl-libxml-enno-1.02-29
perl-5.8.0-88.3
perl-CPAN-1.61-88.3
perl-suidperl-5.8.0-88.3
perl-HTML-Parser-3.26-17
perl-libxml-perl-0.07-28
perl-XML-Grove-0.46alpha-25
perl-DBD-Pg-1.21-2
perl-DB_File-1.804-88.3
perl-HTML-Tagset-3.03-28
perl-XML-Twig-3.09-3
perl-URI-1.21-7
perl-XML-Encoding-1.01-23
perl-CGI-2.81-88.3
[root@www2 root]#)
=======================================================================
This is screenHeaderFile0.pg file for set 0:
When I don't comment PGchoicemacros.pl, I am getting:
Software Error
WeBWorK has encountered a software error while attempting to process
this problem. It is likely that there is an error in the problem
itself. If you are a student, contact your professor to have the error
corrected. If you are a professor, please consut the error output below
for more informaiton.
Error messages
Error detected while loading
/home/webwork/webwork-modperl/pg/macros/PGchoicemacros.pl:
PG_restricted_eval detected error at line 309 of file
/home/webwork/webwork-modperl/pg/macros/PGchoicemacros.pl 'require'
trapped by operation mask at /usr/lib/perl5/5.8.0/strict.pm line 19,
chunk 1. Compilation failed in require at
/home/webwork/webwork-modperl/pg/lib/WeBWorK/PG/Translator.pm line 76,
chunk 1. BEGIN failed--compilation aborted at (eval 2655) line 3, chunk
1. The calling package is main
Error context
Problem0
ERROR caught by Translator while processing problem file:set0/screenHeaderFile0.pg
*
Error detected while loading /home/webwork/webwork-modperl/pg/macros/PGchoicemacros.pl:
PG_restricted_eval detected error at line 309 of file /home/webwork/webwork-modperl/pg/macros/PGchoicemacros.pl
'require' trapped by operation mask at /usr/lib/perl5/5.8.0/strict.pm line 19, chunk 1.
Compilation failed in require at /home/webwork/webwork-modperl/pg/lib/WeBWorK/PG/Translator.pm line 76, chunk 1.
BEGIN failed--compilation aborted at (eval 2655) line 3, chunk 1.
The calling package is main
*
------Input Read
1 ##Screen set header for set 0, Fall 1998
2
3 &DOCUMENT;
4
5 loadMacros(
6 PG.pl,
7 PGbasicmacros.pl,
8 PGchoicemacros.pl,
9 PGanswermacros.pl
10 );
11
12
13
14 BEGIN_TEXT;
15 WeBWorK assignment number $setNumber is due $formatedDueDate.
16
17 $PAR
18 This first problem set (set 0) is designed to acquaint you with using WeBWorK.
19 YOUR SCORE ON THIS SET WILL NOT BE COUNTED TOWARD YOUR FINAL GRADE.
20 In addition to doing the screen problems, practice getting a hard copy print out of the
21 problem set. You probably won't need it for this problem set, but you may in the future.
22 If you need software installed on your own computer look
23 { htmlLink("/index.html#software","here")}.
24 $PAR
25 The primary purpose of WeBWorK is to let you know if you are getting the right answer or to alert
26 you if you get the wrong answer. Usually you can attempt a problem as many times as you want before
27 the due date. However, if you are having trouble figuring out your error, you should
28 consult the book, or ask a fellow student, one of the TA's or
29 your professor for help. Don't spend a lot of time guessing -- it's not very efficient or effective.
30 $PAR
31
32 You can use the Feedback button on each problem
33 page to send e-mail to the professors.
34 $PAR
35 Give 4 or 5 significant digits for (floating point) numerical answers.
36 For most problems when entering numerical answers, you can if you wish
37 enter elementary expressions such as 2^3 instead of 8, sin(3pi/2) instead
38 of -1, e^(ln(2)) instead of 2,
39 (2+tan(3))*(4-sin(5))^6-7/8 instead of 27620.3413, etc.
40
41 Here's the
42 { htmlLink(qq!http://webwork.math.rochester.edu/webwork_system_html/docs/docs/pglanguage/availablefunctions.html!,"list of the functions") }
43 which WeBWorK understands.
44 END_TEXT
45
46 &ENDDOCUMENT;
--
When I comment PGchoicemacros.pl, output is:
WeBWorK assignment number 0 is due 01/01/05 at 02:00am.
This first problem set (set 0) is designed to acquaint you with using
WeBWorK. YOUR SCORE ON THIS SET WILL NOT BE COUNTED TOWARD YOUR FINAL
GRADE. In addition to doing the screen problems, practice getting a
hard copy print out of the problem set. You probably won't need it for
this problem set, but you may in the future. If you need software
installed on your own computer look here .
The primary purpose of WeBWorK is to let you know if you are getting
the right answer or to alert you if you get the wrong answer. Usually
you can attempt a problem as many times as you want before the due
date. However, if you are having trouble figuring out your error, you
should consult the book, or ask a fellow student, one of the TA's or
your professor for help. Don't spend a lot of time guessing -- it's not
very efficient or effective.
You can use the Feedback button on each problem page to send e-mail to the professors.
Give 4 or 5 significant digits for (floating point) numerical answers.
For most problems when entering numerical answers, you can if you wish
enter elementary expressions such as 2^3 instead of 8, sin(3pi/2)
instead of -1, e^(ln(2)) instead of 2, (2+tan(3))*(4-sin(5))^6-7/8
instead of 27620.3413, etc. Here's the list of the functions which
WeBWorK understands.
Any suggestions?
Zoran
<| Post or View Comments |>
|