From C9651239@hud.ac.uk Mon Jan 20 17:19:05 2025 From: "D.J. Scholey C9651239" To: ciao-users@cliplab.org Subject: Pillow Problems Date: Fri, 03 Mar 2000 15:45:30 +0000 Message-ID: <9137E22D7DFFD111BC2B00A0C9B292A80410F706@frodo.hud.ac.uk> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============4785191527243236736==" --===============4785191527243236736== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Hello I am a final year student and interested in using PiLLoW in my project. I have been trying a few of your example programs but with little success. I am using Sicstus 3.7 and have tried some of the suggestions made already such as changing the html.pl (Alexander Serebrenik 06/13/99) and used a shell script to control my programs. I have run the make file as instructed in the README. When I try to access the cgi script via a browser I get an Internal Server Error. When I run the files in a shell tool I get the following hades{c9651239}6: html_forms.cgi SICStus 3.7: Tue Sep 08 19:55:50 MET DST 1998 Licensed to hud.ac.uk {SICStus state restored from /stud/yrf/bsccsd4/c9651239/pillow/pillow/examples/html_forms.cgi} Content-type: text/html html.pl Error Report

html_pl Error Report


The following error was encountered: existence_error(main,0,procedure,:(user,/(main,0)),0)
I have checked everything I can think so I wondered if anyone had any ideas. Thanks Dan --===============4785191527243236736==-- From genaim@CS.BGU.AC.IL Mon Jan 20 17:19:05 2025 From: Samir Genaim To: ciao-users@cliplab.org Subject: Re: Pillow Problems Date: Fri, 03 Mar 2000 18:48:40 +0200 Message-ID: <14527.60648.515370.612853@gargle.gargle.HOWL> In-Reply-To: <9137E22D7DFFD111BC2B00A0C9B292A80410F706@frodo.hud.ac.uk> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============5925687007528448908==" --===============5925687007528448908== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit > When I try to access the cgi script via a browser I get an Internal Server > Error. > When I run the files in a shell tool I get the following It seem that you have two problems: (1) The "Internal server error" arise when you script does not print the Content-Type line as a first line. In order to solve this problem you should redirect the stderr to /dev/null when you run html_forms.cgi, so sicstus loading messages ignored and your browser see "Content-Type text/html" first. (2) The existence of main/0 you already got an answer from daniel for this. > hades{c9651239}6: html_forms.cgi > SICStus 3.7: Tue Sep 08 19:55:50 MET DST 1998 > Licensed to hud.ac.uk > {SICStus state restored from > /stud/yrf/bsccsd4/c9651239/pillow/pillow/examples/html_forms.cgi} > Content-type: text/html > > html.pl Error Report >
> src="http://www.clip.dia.fi.upm.es/images/warning_large.gif">

html_pl > Error Report

>
> The following error was encountered: > existence_error(main,0,procedure,:(user,/(main,0)),0) >
> > > > I have checked everything I can think so I wondered if anyone had any ideas. > > Thanks > Dan -- Samir --===============5925687007528448908==-- From bardo Tue May 5 13:53:15 2026 From: Daniel Cabeza Gras To: ciao-users@cliplab.org Subject: Re: Pillow Problems Date: Fri, 03 Mar 2000 17:27:15 +0100 Message-ID: <200003031627.RAA24122@clip.dia.fi.upm.es> In-Reply-To: <9137E22D7DFFD111BC2B00A0C9B292A80410F706@frodo.hud.ac.uk> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============2888925272974685524==" --===============2888925272974685524== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit } The following error was encountered: } existence_error(main,0,procedure,:(user,/(main,0)),0) It seems that SICStus does no find the main/0 predicate (in module user). You either has misspelled the name or you have compiled the file as a module instead of a user file. .......................................................................... : : Facultad de Informatica : : Daniel Cabeza Gras : Universidad Politecnica de Madrid : : CLIP Group : 28660-Boadilla del Monte, MADRID : : dcabeza(a)dia.fi.upm.es : SPAIN : .......................................................................... --===============2888925272974685524==--