Forum archive 2000-2006

Kevin Leonard - Error with graphics in problems

Kevin Leonard - Error with graphics in problems

by Arnold Pizer -
Number of replies: 0
inactiveTopicError with graphics in problems topic started 6/3/2004; 9:51:26 AM
last post 6/3/2004; 10:40:33 AM
userKevin Leonard - Error with graphics in problems  blueArrow
6/3/2004; 9:51:26 AM (reads: 685, responses: 1)
I keep getting error messages when I produce a hardcopy of certain problems with graphics.  This error was from problem #8 in set Algebra16FunctionGraphs:

image(insertGraph(WWPlet=HASH(0x8cbc1ec)),width=?200,height=?200)

Then get the following warning:
WARNINGS:
*ERROR in old_safe_ev, PGbasicmacros.pl: PRE##There is an error occurring inside evaluation brackets {...code...} ## somewhere in an EV2 or EV3 or BEGIN_TEXT block.  ##Code evaluated:
##image(insertGraph(graph),  width= 200, height = 200)  ##Unable to create eps file: /usr/local/webwork/system/courses/wwdev - kleonar6/html/tmp/eps//professor-57432- professor - 57432 - setAlgebra16FunctionGraphsprob8image1.png.eps | fromfile | /usr/local/webwork/system/courses/wwdev-kleonar6/html/tmp/gif/professor - 57432 - setAlgebra16FunctionGraphsprob8image1.png|in problem8 using the system dependent script | /usr/local/webwork/system/scripts/png2eps | ## /PRE
at(eval131) line 1352.
    ##More details:
    -----main::old_safe_ev called at (eval 131) line 1340
    ---main::safe_ev called at (eval 131) line 1325
    ---main::ev_substring called at (eval 131) line 1471
    ---main::EV3 called at (eval 53) line 34
    ---main::_ANON_called at /usr/lib/perl5/5.8.0/i386-linux-thread-multi/Safe.pm line 223
    ---PGtranslator::translate called at /usr/local/webwork/system/cgi-scripts/welcomeAction.pl line 695
    ---main::createTexSource called at /usr/local/webwork/system/cgi-scripts/welcomeAction.pl line 457
      ---main::downloadAllSets called at /usr/local/webwork/system/cgi-scripts/welcomeAction.pl line 174


Some graphics display correctly, but others come up with the above error messages. 

<| Post or View Comments |>


userMichael Gage - Re: Error with graphics in problems  blueArrow
6/3/2004; 10:40:33 AM (reads: 887, responses: 0)
The relevant part of the error is: Unable to create eps file: /usr/local/webwork/system/courses/wwdev - kleonar6/html/tmp/eps//professor-57432- professor - 57432 - setAlgebra16FunctionGraphsprob8image1.png.eps

| fromfile | /usr/local/webwork/system/courses/wwdev-kleonar6/html/tmp/gif/professor - 57432 - setAlgebra16FunctionGraphsprob8image1.png|

in problem8 using the system dependent script | /usr/local/webwork/system/scripts/png2eps |

the first step is to see if the file exists at /usr/local/webwork/system/courses/wwdev-kleonar6/html/tmp/gif/professor - 57432 - setAlgebra16FunctionGraphsprob8image1.png

The next is to make sure the directory exists at /usr/local/webwork/system/courses/wwdev - kleonar6/html/tmp/eps/ and has the correct privileges as far as the webserver is concerned.

there is an anomoly in the address (namely there are two slashes in a row) but this doesn't usually cause trouble with a unix system. It means that somewhere there is a variable describing a directory that has a slash at the end, that should not have that slash at the end.

The final thing is to check that the file below exists and has execution privileges for the webserver /usr/local/webwork/system/scripts/png2eps |

Can you execute this file directly to convert the png file to the eps file from the command line?

Trouble shooting mismatched addresses and bad permissions can be a bit tedious. Try to get something to work from the command line first, then go back to trouble shooting the addresses issued by the server.

Hope this helps.

<| Post or View Comments |>