Can't quote.

Laurent FRANCOIS lfrancois-ophta at worldonline.fr
Sat Nov 18 22:09:12 EST 2006


> $ gnucash --loglevel=6 --debug
> gnucash: [D] "starting up (1)."
> gnucash: [D] "handling command line arguments"("gnucash")
> gnucash: [D] "files to open: "()
> gnucash: [D] (results ("1.11" "tsp" "vwd" "financecanada" "yahoo_nz" 
> "australia" "usa"
 > (...)
>"vanguard" "europe" "platinum" "maninv"))
> gnucash: [M] "Found Finance::Quote version ""1.11"
> gnucash: [D] (handling-request ("yahoo" "IBM" "EDF"))
> gnucash: [D] (results #<eof>)
> gnucash: [D] (handling-request ("yahoo" "IBM"))
> gnucash: [D] (results #<eof>)
> 
> 
> That's too bad . So it wasn't a TZ problem......
> 

I was suggested to uupdate to finance::quote 1.12
So :

#gnc-fq-update

Running make install
Installing /usr/local/share/perl/5.8.8/Finance/Quote.pm
Installing /usr/local/share/perl/5.8.8/Finance/Quote/Tdefunds.pm
Installing /usr/local/share/perl/5.8.8/Finance/Quote/FTPortfolios.pm
[...]
Installing /usr/local/share/perl/5.8.8/Finance/Quote/Bourso.pm
[...]
Installing /usr/local/share/perl/5.8.8/Finance/Quote/LeRevenu.pm
Installing /usr/local/share/perl/5.8.8/Finance/Quote/HEX.pm
Installing /usr/local/share/perl/5.8.8/Finance/Quote/Troweprice.pm
[...]
Writing /usr/local/lib/perl/5.8.8/auto/Finance/Quote/.packlist
Appending installation info to /usr/local/lib/perl/5.8.8/perllocal.pod
   /usr/bin/make install  -- OK

----######--------
#mv /usr/share/perl5/Finance /usr/share/perl5/Finance.old

#cp -rv /usr/local/share/perl/5.8.8/Finance/ /usr/share/perl5/
----#######--------

I update Quote.pm, Yahoo/Base.pm from cvs to

-----#######------
$ gnc-fq-dump yahoo IBM
Finance::Quote fields Gnucash uses:
     symbol: IBM                  <=== required
       date: 11/17/2006           <=== required
   currency: USD                  <=== required
       last: 93.81                <=\
        nav:                      <=== one of these
      price: 93.81                <=/
   timezone:                      <=== optional


$ echo '(yahoo "IBM")'|gnc-fq-helper
ERROR: Date::Manip unable to determine TimeZone.
  at /usr/share/perl5/Date/Manip.pm line 3637
         Date::Manip::Date_TimeZone called at 
/usr/share/perl5/Date/Manip.pm line 678
         Date::Manip::Date_Init() called at 
/usr/share/perl5/Date/Manip.pm line 801
         Date::Manip::ParseDateString('11/17/2006 4:01pm') called at 
/usr/bin/gnc-fq-helper line 217
         main::get_quote_time('IBM', 'HASH(0x84ec028)') called at 
/usr/bin/gnc-fq-helper line 247
         main::schemify_quote('IBM', 'HASH(0x84ec028)', 2) called at 
/usr/bin/gnc-fq-helper line 280
         main::schemify_quotes('ARRAY(0x81c6ed8)', 'HASH(0x84ec028)') 
called at /usr/bin/gnc-fq-helper line 369

----#####-----
$ export TZ=GMT+11
lof at latitude:~$ echo $TZ
GMT+11

$ echo '(yahoo "IBM")' | gnc-fq-helper
(("IBM" (symbol . "IBM") (gnc:time-no-zone . "2006-11-17 16:01:00") 
(last . 93.81) (currency . "USD")))

It's better


$ gnucash --loglevel=6 --debug
gnucash: [D] "starting up (1)."
gnucash: [D] "handling command line arguments"("gnucash")
gnucash: [D] "files to open: "()
gnucash: [D] (results ("1.12" "tsp" "vwd" "financecanada" "yahoo_nz" 
"australia" "usa" [...] "bourso" "europe" "platinum" "maninv"))
gnucash: [M] "Found Finance::Quote version ""1.12"
gnucash: [D] (handling-request ("yahoo" "IBM" "EDF"))
gnucash: [D] (results #<eof>)
gnucash: [D] (handling-request ("yahoo" "US4592001014"))
gnucash: [D] (results (#f))


I tried different code, source (bourso, lerevenu, yahoo...)

It should be a gnucash problem.

Thanks


More information about the gnucash-user mailing list