[Image-SIG] R/Rpy, and nothing to do with Python imaging.

A.J. Rossini rossini@u.washington.edu
Mon, 26 May 2003 21:34:44 -0700


image-sig-request@python.org writes:

> Daryl Shanley wrote:
>
>> I've recently been exploring using the RPy interface to R
>> for producing some graphs using a series of commands such
>> as;
>
>> This works fine when the python file is run from a command
>> line, but when I incorporate these same commands into a cgi
>> file I get an 'internal server error'. I'm using an Apache web
>> server and the error log reads
>>  unable to open connection to X11 display`'
>> Premature end of script headers: /usr/lib/cgi-bin/test/test.py
>>  Execution halted
>
>> Does anybody have any ideas?
>
> I don't know anything about RPy/R, but the error message indicates
> that the software requires a working X window server.

This is generally true with R, and holds with Rpy/R.

> for more reliable operation, you should check if you can run RPy
> without an X server.

The answer is: not if you want graphics.   I believe the suggested
approach in this case is to use a framebuffer device.

best,
-tony

-- 
A.J. Rossini rossini@u.washington.edu http://software.biostat.washington.edu/ 
Biostatistics, U Washington and Fred Hutchinson Cancer Research Center

FHCRC:Tu: 206-667-7025 (fax=4812)|Voicemail is pretty sketchy/use Email 
UW  : Th: 206-543-1044 (fax=3286)|Change last 4 digits of phone to FAX 

CONFIDENTIALITY NOTICE: This e-mail message and any attachments may be
confidential and privileged. If you received this message in error,
please destroy it and notify the sender. Thank you.