[LeachCJ@az1.bp.com: RE: getting stock quotes - update-finance-quote error]

Linas Vepstas linas@linas.org
Tue, 19 Jun 2001 12:10:20 -0500


Patches

----- Forwarded message from "Leach, Chris J (Oakton)" <LeachCJ@az1.bp.com> -----

From: "Leach, Chris J (Oakton)" <LeachCJ@az1.bp.com>
To: gnucash-user@lists.gnumatic.com
Cc: "'linas@linas.org'" <linas@linas.org>,
	Andrew Wallace <andyw@scroom.com>
Subject: RE: getting stock quotes - update-finance-quote error
Return-Receipt-To: "Leach, Chris J (Oakton)" <LeachCJ@az1.bp.com>

ASX is the Australian Stock eXchange and they have changed the URL
needed to get prices so F::Q::ASX is broken change the "nd50" to
"scripts" in $ASX_URL.
I additionally had to modify finance-quote-helper to handle quotes
around the exchange name and that the returned quotes from ASX did
not include the symbol name.
diff below:
226c226,230
<   $data = schemify_string($$quotehash{$itemname, $field});
---
>   if (exists($$quotehash{$itemname, $field})) {
>       $data = schemify_string($$quotehash{$itemname, $field});
>   } else {
>       $data = schemify_string($itemname);
>   }
282c286
<   if($input !~ s/^\s*\(\s*([a-z_]+)\s+//o) { return 0; }
---
>   if($input !~ s/^\s*\(\s*$dq?([a-z_]+)$dq?\s+//o) { return 0; }


-----Original Message-----
From: linas@linas.org [mailto:linas@linas.org]
Sent: Tuesday, 19 June 2001 11:49 AM
To: Andrew Wallace
Cc: gnucash-user@lists.gnumatic.com
Subject: Re: getting stock quotes - update-finance-quote error


On Mon, Jun 18, 2001 at 06:31:19PM -0700, Andrew Wallace was heard to
remark:
> Hey all -
> I tried getting quotes through the Price Editor, but got an error
> that I needed to have some Perl scripts installed, that I should
> run update-finance-quote. Well, I ran it, but it failed - this seems
> to be an issue with the tests in the CPAN packages, so I'm not sure
> who to turn to. Has anyone else run into this? The error messages
> are below.

try to force the install.

asx is the 'american stock exchange backend'. vwd is some canadian thing?
Notsure about trustnet.  Unless you have obscure stocks, you can get all
quotes from yahoo, and it looked like yahoo worked fine.

--linas


> 
> thanks,
> andy
> 
> 
> Running make test
> PERL_DL_NONLAZY=1 /usr/bin/perl -Iblib/arch -Iblib/lib
-I/usr/lib/perl5/5.6.0/i386-linux -I/usr/lib/perl5/5.6.0 -e 'use
Test::Harness qw(&runtests $verbose); $verbose=0; runtests @ARGV;' t/*.t
> t/asx...............Use of uninitialized value in numeric gt (>) at
t/asx.t line 19.
> Use of uninitialized value in numeric gt (>) at t/asx.t line 21.
> t/asx...............NOK 5Use of uninitialized value in numeric gt (>) at
t/asx.t line
> 27.
> Use of uninitialized value in string eq at t/asx.t line 31.
> t/asx...............ok 11/11FAILED tests 2-5, 7-9
>         Failed 7/11 tests, 36.36% okay
> t/currency..........ok
> t/dws...............ok
> t/fidelity..........ok
> t/tiaacref..........ok
> t/troweprice........ok
> t/trustnet..........ok 8/8FAILED tests 2-7
>         Failed 6/8 tests, 25.00% okay
> t/Use...............ok
> t/vanguard..........ok
> t/vwd...............NOK 2Use of uninitialized value in numeric gt (>) at
t/vwd.t line
> 17.
> t/vwd...............NOK 3Use of uninitialized value in length at t/vwd.t
line 18.
> t/vwd...............NOK 4Use of uninitialized value in string eq at
t/vwd.t line 19.
> t/vwd...............ok 7/7FAILED tests 2-5
>         Failed 4/7 tests, 42.86% okay
> t/yahoo_europe......ok
> t/yahoo.............ok
> Failed Test  Status Wstat Total Fail  Failed  List of failed
>
----------------------------------------------------------------------------
---
> t/asx.t                      11    7  63.64%  2-5, 7-9
> t/trustnet.t                  8    6  75.00%  2-7
> t/vwd.t                       7    4  57.14%  2-5
> Failed 3/12 test scripts, 75.00% okay. 17/117 subtests failed, 85.47%
okay.
> make: *** [test_dynamic] Error 29
>   /usr/bin/make test -- NOT OK
> Running make install
>   make test had returned bad status, won't install without force
> [root@discipline andyw]#
> 
> 
> --
>    Give a man a fish and you feed him for a day; teach him to
>          use the Net and he won't bother you for weeks.
> 
> Read the SCROOMtimes!  http://www.scroom.com
> _______________________________________________
> gnucash-user mailing list
> gnucash-user@lists.gnumatic.com
> http://www.gnumatic.com/cgi-bin/mailman/listinfo/gnucash-user

-- 
Linas Vepstas -- linas@gnumatic.com -- http://www.gnumatic.com/
_______________________________________________
gnucash-user mailing list
gnucash-user@lists.gnumatic.com
http://www.gnumatic.com/cgi-bin/mailman/listinfo/gnucash-user

----- End forwarded message -----

-- 
Linas Vepstas -- linas@gnumatic.com -- http://www.gnumatic.com/