F_Q is still broken [Was: Exchange rate dowload failing]
David Hampton
hampton-gnucash at rainbolthampton.net
Thu Nov 17 10:13:47 EST 2005
On Wed, 2005-11-16 at 08:05 -0600, Stewart V. Wright wrote:
> [Apologies for going OT here.]
>
> G'day David,
>
> * David Hampton <hampton-gnucash at rainbolthampton.net> [051115 21:30]:
> > Yahoo changed the web page for currency quotes. You should grab the
> > latest (cvs) Finance::Quote sources from sourceforge.net.
>
> You've been saying this for a while but it doesn't seem to work for
> me... (Yeah, I know I should file a bug report, but SF.net was
> playing up last time I tried.)
>
> All of the tests fail.
All? I don't see that. Did you let the tests run to completion?
> For the latest CVS (checked out this morning):
>
> $ ln -s test t
> $ perl Makefile.PL prefix=${HOME}/src/finance_quote/xxx
> $ make && make test
> ...
> [SNIP]
Yes, there are some problems with the tests in current F::Q CVS. There
are almost always problems as companies are continually tweaking their
web sites. (IIRC, there were no failures when F::Q 1.10 shipped.) I
get the following summary from 'make test' on an install from cvs:
Failed Test Stat Wstat Total Fail Failed List of Failed
-------------------------------------------------------------------------------
t/aex.t 11 23 209.09% 2-7 9-10 12-26
t/asx.t 255 65280 11 2 18.18% 11
t/cdnfundlibrary.t 2 512 8 16 200.00% 1-8
t/indiamutual.t 44 42 95.45% 2-43
t/trustnet.t 12 10 83.33% 2-11
t/yahoo.t 11 2 18.18% 8-9
t/yahoo_brasil.t 9 1 11.11% 2
The currency tests are not listed here as failing. Testing F::Q cvs, I
get the following results:
$ ./currency-lookup.pl AUD USD
AUD->USD = 0.7328
$ echo '(currency "USD" "AUD")' | finance-quote-helper
(("USD" (symbol . "USD") (last . 1.3679) (currency . "AUD")))
So I am getting currency quotes back. Have you installed F::Q cvs or
just downloaded it and run 'make test'?
I don't see currency quotes appearing in Gnucash when I click "Get
Quotes", but I'm not sure if that's GnuCash or just my data file. I
need to investigate more.
David
P.S. I started working through the F::Q test results last night. So far
they're the result of several mutual funds in test scripts that no
longer exist on the exchanges, a slightly redesigned web site that has
extra blank table rows, and some change to perl or a perl module that
prints warnings where it didn't before.
More information about the gnucash-user
mailing list