From: "Esteban Manchado Velázquez" Date: 2004-11-09T08:12:00+09:00 Subject: Re: Color Parser --YD3LsXFS42OYHhNZ Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Nov 09, 2004 at 08:01:05AM +0900, Mary Dixon wrote: > Okay, people, >=20 > I know almost nothing about Ruby, unfortunately. But I do know that I want > my color parser to work for me. This is what I've been doing in the > terminal: >=20 > sawtooth:~ marydixon$ ruby /Users/marydixon/Documents/business\ > docs/htmlcolors.rb=20 >=20 > HTML Color Table Generator > version 0.0.1 > by W. Kent Starr (C)2002 SpiderwomanWebDesign.com > ------------------------------------------------- >=20 > File or directory to process: /Users/marydixon/Desktop/style.css > Name of output file [colortable.html]: > Title of color table [Color Table for /Users/marydixon/Desktop/style.css = ]: > Page background color [white]: > Page foreground color [navy]: >=20 > Press [ENTER] to begin > /Users/marydixon/Documents/business docs/htmlcolors.rb:213:in `initialize= ': > No such file or directory - "/Users/marydixon/Desktop/style.css " ^^^ It seems you have a space after the filename. That's probably the probl= em. If it doesn't work after fixing that and you get stuck, please send (if possible) the source code (or, at least, the relevant parts), so we can examine and run it. > (Errno::ENOENT) > from /Users/marydixon/Documents/business docs/htmlcolors.rb:213:in > `new' > from /Users/marydixon/Documents/business docs/htmlcolors.rb:213:in > `scanFile' > from /Users/marydixon/Documents/business docs/htmlcolors.rb:294:in > `process' > from /Users/marydixon/Documents/business docs/htmlcolors.rb:376 > sawtooth:~ marydixon$ > As you can see, I get a short list of errors although it seems other thin= gs > about it work just fine. Look carefully: it's just one error, but in the form of "stack trace". This way, you get both the error (first line) and the calling chain. Good luck. Regards, --=20 Esteban Manchado Vel=E1zquez - http://www.foton.es EuropeSwPatentFree - http://EuropeSwPatentFree.hispalinux.es --YD3LsXFS42OYHhNZ Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.5 (GNU/Linux) iD8DBQFBj/0xhYgK5b1UDsERAmxzAJ4jOfKfHVYaQIjvHHbxBNaPTqx8YwCfbLfv nnxeIOiBpJ4aUAA1cAbA+PU= =ocXE -----END PGP SIGNATURE----- --YD3LsXFS42OYHhNZ--