Trouble setting up Finance::Quote

David T. sunfish62 at yahoo.com
Mon Jan 22 01:46:41 EST 2007


Roy--

I followed your and Maf's suggestions, and created ~/.bashrc with the following
in it:

PATH=/sw/bin:/sw/sbin:/opt/local/bin:/opt/local/sbin:$PATH
export PATH

Interestingly, if I use Apple's Script Editor to:

do shell script "open-x11 /sw/bin/gnucash"

I get the same crash--even though the path is set correctly.

Similarly, if I set up X11 with a menu option for GnuCash, and select that, I
get the crash.

However, if I open an X11 terminal window, and THEN enter "gnucash", I note a
few things:

1) The command line issues a gnucash: [M] "Found Finance::Quote version ""1.13"

2) The command line issues a slew of those GLIB errors, and 

3) Get Quotes works

So, somehow, when the trigger for gnucash is from a command line, gnucash works
differently than when one tries to use gnucash with a script or from an X11
menu option...

I guess I'll have to remember to run gnucash from a typed command!

David

--- Roy Nicholl <RNicholl at NBNet.nb.ca> wrote:

> Cory,
> 
> Either start your xterm as a login shell (-ls option) or put the  
> variables / commands you want executed for every shell in your $ 
> {HOME}/.bashrc file.
> 
> 
> On 21-Jan-2007, at 15:07, Cory Helfrich wrote:
> 
> > Hello David,
> >
> > I think you are correct. My xterm $SHELL is /bin/bash, just like
> > terminal. However, when I start xterm, the commands in my .profile
> > are not executed, while these commands are executed when I start
> > terminal (commands to modify the path and prompt, etc.). However, I
> > do not know where to put these commands so they will be executed when
> > X11 starts. Do you know?
> >
> > Thanks,
> > Cory
> > Cory Helfrich
> > coryhelfrich at yahoo.ca
> >
> >
> >
> > On 20-Jan-07, at 11:15 PM, David T. wrote:
> >
> >> Oh man, I think I'm starting to understand where some of my own
> >> problems on
> >> this front are coming from (I am running GC2.0.4 on an IntelMac)--
> >> and I think I
> >> might have an idea on how Cory's problem might be solved.
> >>
> >> I believe the problem has to do with the fact that the Mac ends up
> >> with two
> >> separate environments--one for the base Terminal.app, and the
> >> second for X11.
> >> Fink runs under Terminal. Issuing the command gnc-fq-check at the
> >> Terminal
> >> command line yields the proper results; issuing the same command in
> >> X11 yields
> >> a File not found error.
> >>
> >> When I examine the PATH variables in each, I see:
> >>
> >> 1) Terminal:
> >> PATH=/sw/bin:/sw/sbin:/opt/local/bin:/opt/local/sbin:/bin:/sbin:/
> >> usr/bin:/usr/sbin:/usr/X11R6/bin
> >> 2) X11: PATH=/usr/bin:/bin:/usr/sbin:/sbin:/usr/X11R6/bin:/usr/
> >> X11R6/bin
> >>
> >> When I add the opt and sw directories in X11, gnc-fq-check begins
> >> to work, and
> >> F::Q works within GC once I restart GC. I tried editing my .profile
> >> to add the
> >> sw directories, but that did not take under X11 (I believe I need
> >> to change
> >> something else than .profile). Under these circumstances, however,
> >> when I run
> >> gnucash, now receive a slew of errors at the command line that all
> >> begin:
> >>
> >> (gnucash:791): GLib-CRITICAL **: Invalid key name: {varname}
> >>
> >> Gnucash seems to run, but what are these? Never saw 'em before...
> >>
> >> And, what needs to change so that X11 gets the right PATH entries
> >> to enable
> >> this?
> >>
> >> Cheers,
> >> David
> >>
> >> --- David Hampton <hampton-gnucash at rainbolthampton.net> wrote:
> >>
> >>> On Fri, 2007-01-19 at 21:32 +0300, Cory Helfrich wrote:
> >>>
> >>>> To me, this looks like F::Q is installed correctly.
> >>>
> >>> Agreed.  Based on the output of gnc-fq-check gnucash should say that
> >>> F::Q is installed properly.  In fact, the output indicates that
> >>> gnucash
> >>> is seeing F::Q because it prints the installed version.
> >>>
> >>>> However, when I
> >>>> opened gnucash after this, the Security Editor still indicated that
> >>>> Finance::Quote was not installed properly. Do you have any other
> >>>> suggestions?
> >>>
> >>> Maybe check your paths?  Is something installed in /usr that
> >>> should be
> >>> installed in /sw, or vice versa.  I don't run gnucash on a mac so
> >>> I'm at
> >>> the limit of what I can do to help.  I don't see any requirement in
> >>> gnucash for indicating that F::Q is installed that isn't  
> >>> satisfied by
> >>> the same code that prints the F::Q version to the console.
> >>>
> >>> David
> >>>
> >>>
> >>> _______________________________________________
> >>> gnucash-user mailing list
> >>> gnucash-user at gnucash.org
> >>> https://lists.gnucash.org/mailman/listinfo/gnucash-user
> >>> -----
> >>> Please remember to CC this list on all your replies.
> >>> You can do this by using Reply-To-List or Reply-All.
> >>>
> >>
> >>
> >>
> >>
> >> _____________________________________________________________________ 
> >> _
> >> ______________
> >> Looking for earth-friendly autos?
> >> Browse Top Cars by "Green Rating" at Yahoo! Autos' Green Center.
> >> http://autos.yahoo.com/green_center/
> >
> > _______________________________________________
> > gnucash-user mailing list
> > gnucash-user at gnucash.org
> > https://lists.gnucash.org/mailman/listinfo/gnucash-user
> > -----
> > Please remember to CC this list on all your replies.
> > You can do this by using Reply-To-List or Reply-All.
> 
> 



 
____________________________________________________________________________________
Get your own web address.  
Have a HUGE year through Yahoo! Small Business.
http://smallbusiness.yahoo.com/domains/?p=BESTDEAL


More information about the gnucash-user mailing list