Patrick Jackson wrote: > Hello all I need your help. I currently have a website that calls a python > script that uses rpy to create graphs. When I run the script from the > console it works great but when I run the script via the website it is only > creating a zero byte png file.
> r.png(fileName, width = 480, height = 640) What version of R? In all but the most recent R, the png() function requires an X Window Server. When you run it interactively it uses the one in front of you, when run from Apache, it doesn't have one. Upgrade R to 2.7 and try again. Barry ------------------------------------------------------------------------- Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://sourceforge.net/services/buy/index.php _______________________________________________ rpy-list mailing list rpy-list@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/rpy-list