Finance:Quote fails to correctly fetch data for Gnucash

Bug #272777 reported by Zach
14
This bug affects 1 person
Affects Status Importance Assigned to Milestone
libfinance-quote-perl (Ubuntu)
Fix Released
Undecided
Unassigned
Nominated for Intrepid by Zach

Bug Description

Binary package hint: libfinance-quote-perl

In upgrading to Intrepid, Gnucash was no longer able to fetch stock quotes. Using the Gnucash utility gnc-fq-dump, I got the following output:
--------------
zach@titan:~$ gnc-fq-dump -v yahoo AMD
Finance::Quote fields Gnucash uses:
    symbol: AMD <=== required
      date: 00/00/2000 <=== required
  currency: USD <=== required
      last: 5.42 <=\
       nav: <=== one of these
     price: 5.42 <=/
  timezone: <=== optional

All fields returned by Finance::Quote for stock AMD
---------------

As you can see the date returned was erroneous. After some internet searching and comparison to my other Debian system, I found that /usr/share/perl5/Finance/Quote/Yahoo/Base.pm had an error in it. In the @FIELDS definition, "time" was before "date", but in the @FIELD_ENCODING definition "d1" was before "t1". Swapping the position of either of those (so they properly corresponded to each other) fixed the problem.

Revision history for this message
Zach (v-launchpad-zach-sadecki-net) wrote :

Debian 1.13-4 fixed this problem...

Revision history for this message
tsultana (tsultana) wrote :

Will the 1.13-4 update be included in the final Intrepid release?

Revision history for this message
gloonie (gloonie) wrote :

This is really critical for us. Will this be fixed in Intrepid final?

Revision history for this message
gloonie (gloonie) wrote :

I tried changing /usr/share/perl5/Finance/Quote/Yahoo/Base.pm, and that got things working on the command line. But Gnucash still fails. Perhaps something further is required.

Revision history for this message
Cris (cristiano.p) wrote :

I had the same problem: Zack's fix seems to make GnuCash retrieve quotes correctly for me.

Revision history for this message
gloonie (gloonie) wrote :

Zack's fix seems to have worked for me, too. I had to reboot, and then is seemed fine. So it looks like if that one little change is made to /usr/share/perl5/Finance/Quote/Yahoo/Base.pm we should be in good shape!

Revision history for this message
tsultana (tsultana) wrote :

That change worked for me as well.

Richard Laager (rlaager)
Changed in libfinance-quote-perl:
status: New → Confirmed
Revision history for this message
Adam Plumb (adamplumb) wrote :

I had the same issue when I tried retrieving prices in Intrepid with the standard gnucash package. Manually updating finance quote fixed the problem for me. I ran the command: sudo gnc-fq-update.

Revision history for this message
garrison (jim-garrison) wrote :

Intrepid is no longer supported, so I believe this bug should be closed as WONTFIX

Revision history for this message
Richard Laager (rlaager) wrote :

All supported versions of Ubuntu have > 1.13-4.

Changed in libfinance-quote-perl (Ubuntu):
status: Confirmed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.