POV-Ray : Newsgroups : povray.unix : Passing ini file on command line Server Time
23 Dec 2024 07:33:50 EST (-0500)
  Passing ini file on command line (Message 1 to 4 of 4)  
From: Eldritch Cheese
Subject: Passing ini file on command line
Date: 5 Nov 2013 18:35:00
Message: <web.52797f98d0ec72a5af7447680@news.povray.org>
I am using Ubuntu 12.04.3.  I can compile PoV-Ray 3.7.0.RC7 successfully, and
can render scenes.  However, I have been having trouble with using INI
configuration files.

If I use the command "povray scene.pov", the scene compiles.  However, if I use
the command "povray scene.ini", where scene.ini contains the single line
"Input_File_Name=scene.pov", I receive the following error message.

Problem with option setting
povray astroid.ini
Failed to parse command-line option

As far as I can tell from the documentation, this is the correct way to pass in
an INI file, but this and any variation on it fail.  What should I do to use INI
files for configuration?


Post a reply to this message

From: Doctor John
Subject: Re: Passing ini file on command line
Date: 6 Nov 2013 06:49:13
Message: <527a2cb9@news.povray.org>
On 05/11/13 23:30, Eldritch Cheese wrote:
> I am using Ubuntu 12.04.3.  I can compile PoV-Ray 3.7.0.RC7 successfully, and
> can render scenes.  However, I have been having trouble with using INI
> configuration files.
> 
> If I use the command "povray scene.pov", the scene compiles.  However, if I use
> the command "povray scene.ini", where scene.ini contains the single line
> "Input_File_Name=scene.pov", I receive the following error message.
> 
> Problem with option setting
> povray astroid.ini
> Failed to parse command-line option

Strange. I have just tried this in my set-up and it works just fine
(note: I am using Suse 12.3).
Have you got a '~/.povray/3.7/povray.ini'? Or, failing this a
'/usr/local/etc/povray/3.7/povray.ini'? Though without one of these
'povray scene.pov' will fail.
One possibility occurs to me: Is there an extra blank space in your file
name?

John
-- 
Protect the Earth
It was not given to you by your parents
You hold it in trust for your children


Post a reply to this message

From: Eldritch Cheese
Subject: Re: Passing ini file on command line
Date: 6 Nov 2013 08:15:01
Message: <web.527a4070c5400d4af7447680@news.povray.org>
Doctor John <j.g### [at] gmailcom> wrote:
> On 05/11/13 23:30, Eldritch Cheese wrote:
> > I am using Ubuntu 12.04.3.  I can compile PoV-Ray 3.7.0.RC7 successfully, and
> > can render scenes.  However, I have been having trouble with using INI
> > configuration files.
> >
> > If I use the command "povray scene.pov", the scene compiles.  However, if I use
> > the command "povray scene.ini", where scene.ini contains the single line
> > "Input_File_Name=scene.pov", I receive the following error message.
> >
> > Problem with option setting
> > povray astroid.ini
> > Failed to parse command-line option
>
> Strange. I have just tried this in my set-up and it works just fine
> (note: I am using Suse 12.3).
> Have you got a '~/.povray/3.7/povray.ini'? Or, failing this a
> '/usr/local/etc/povray/3.7/povray.ini'? Though without one of these
> 'povray scene.pov' will fail.
> One possibility occurs to me: Is there an extra blank space in your file
> name?
>
> John
> --
> Protect the Earth
> It was not given to you by your parents
> You hold it in trust for your children

Yup, the '~/.povray/3.7/povray.ini' does exist, and there were no spaces in the
file name.

I ended up finding the problem.  The scene.ini file had a typo in it, which
caused a parameter to be unrecognized.  This caused the parsing to fail, though
why it chose that particular error message is beyond me.


Post a reply to this message

From: djconnel
Subject: Re: Passing ini file on command line
Date: 26 Feb 2015 09:35:01
Message: <web.54ef2e9fc5400d458654bb00@news.povray.org>
I had the same issue.  It was an old ini file which for some reason used to
work.  I was using a +PNG to specify PNG and it should have been +LN.  I fixed
that and it worked.

The obvious explanation is that the ini processor is external, the lines in the
ini file serving as command line options to core POV.  However, the problem is
the error message should include WHAT The command line option which failed is.
POV is open, so it should be easy enough to make this change if I want.


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.