Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 15174 - Finance::Quotes 1.07 doesn't work with or without GnuCash.
Summary: Finance::Quotes 1.07 doesn't work with or without GnuCash.
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High major (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-02-05 14:07 UTC by Decibels
Modified: 2003-02-06 17:26 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Decibels 2003-02-05 14:07:18 UTC
I just upgraded to GnuCash to 1.6.8. Earlier version stopped working for some
reason with F::Q . I tried all kinds of stuff earlier and decided to rebuild the
whole system. Hoping to fix it. 2 days later. Still doesn't work!

The only report you get is this in gnucash:
*************************
(handling-request ("yahoo" "PCOAX" "UTX" "MO" "MCEL" "MRK" "WFR" "HAL" "EK"))
*************************

I have tried both ways (ie. cpan and emerge don't notify each other). Ran
update-finance-quote and it installs the modules it needs. When that didn't work
then emerged Finance::Quote (the only dep it has it HTML-TableExtract, which is
installed). Also checked with CPAN and it says that HTML::TableExtract is
up-to-date).

I also executed the yahoo.t test file to test it out without gnucash. So it
eliminates Gnucash. The results:
**************************
perl yahoo.t

1..8
Can't locate HTML/Parser.pm in @INC (@INC contains:
/usr/lib/perl5/5.8.0/i686-linux /usr/lib/perl5/5.8.0
/usr/lib/perl5/site_perl/5.8.0/i686-linux /usr/lib/perl5/site_perl/5.8.0
/usr/lib/perl5/site_perl/5.6.1 /usr/lib/perl5/site_perl
/usr/lib/perl5/vendor_perl/5.8.0/i686-linux /usr/lib/perl5/vendor_perl/5.8.0
/usr/lib/perl5/vendor_perl .) at
/usr/lib/perl5/site_perl/5.8.0/HTML/TableExtract.pm line 16.
BEGIN failed--compilation aborted at
/usr/lib/perl5/site_perl/5.8.0/HTML/TableExtract.pm line 16.
Compilation failed in require at
/usr/lib/perl5/site_perl/5.8.0/Finance/Quote/Cdnfundlibrary.pm line 20.
BEGIN failed--compilation aborted at
/usr/lib/perl5/site_perl/5.8.0/Finance/Quote/Cdnfundlibrary.pm line 20.
Compilation failed in require at (eval 3) line 1.
BEGIN failed--compilation aborted at (eval 3) line 1.
 at yahoo.t line 10
Can't locate object method "methods" via package
"Finance::Quote::Cdnfundlibrary" at
/usr/lib/perl5/site_perl/5.8.0/Finance/Quote.pm line 109.
******************************

This is a new install and everything is working. But the same results. If anyone
has it working then maybe you could supply me with some info. Otherwise I fear
this issue, which fatally limits the use of Gnucash will just be marked
unsolvable. I am not finding any problems listed with F::Q at it's hq or
Gnucash. I did post there, but haven't heard anything. I feel this problem
breaks the packages use. Any pointers? 


Reproducible: Always
Steps to Reproduce:
1. Install Gnucash
2. Start Gnucash, go to Tools/Price Editor try to update stock quotes (must have
some entered).
3. Will be told to run update-finance-quote to get missing modules.
4. Run update-finance-quote, don't do manual config or you will have to answer a
bunch of questions (plus already tried that). Let it get the modules it needs.
5) Try to run Price Editor again. Will get a response windows that: 'Unable to
retrieve quotes for these items:
6) You can try to emerge Finance-Quote cause emerge doesn't realize it is
installed. That doesn't fix it either.
7) Check other installs and still get same responses.

Actual Results:  
From Gnucash: (handling-request ("yahoo" "PCOAX" "UTX" "MO" "MCEL" "MRK" "WFR"
"HAL" "EK"))

From running finance::quote itself, with yahoo.t:
perl yahoo.t
1..8
Can't locate HTML/Parser.pm in @INC (@INC contains:
/usr/lib/perl5/5.8.0/i686-linux /usr/lib/perl5/5.8.0
/usr/lib/perl5/site_perl/5.8.0/i686-linux /usr/lib/perl5/site_perl/5.8.0
/usr/lib/perl5/site_perl/5.6.1 /usr/lib/perl5/site_perl
/usr/lib/perl5/vendor_perl/5.8.0/i686-linux /usr/lib/perl5/vendor_perl/5.8.0
/usr/lib/perl5/vendor_perl .) at
/usr/lib/perl5/site_perl/5.8.0/HTML/TableExtract.pm line 16.
BEGIN failed--compilation aborted at
/usr/lib/perl5/site_perl/5.8.0/HTML/TableExtract.pm line 16.
Compilation failed in require at
/usr/lib/perl5/site_perl/5.8.0/Finance/Quote/Cdnfundlibrary.pm line 20.
BEGIN failed--compilation aborted at
/usr/lib/perl5/site_perl/5.8.0/Finance/Quote/Cdnfundlibrary.pm line 20.
Compilation failed in require at (eval 3) line 1.
BEGIN failed--compilation aborted at (eval 3) line 1.
 at yahoo.t line 10
Can't locate object method "methods" via package
"Finance::Quote::Cdnfundlibrary" at
/usr/lib/perl5/site_perl/5.8.0/Finance/Quote.pm line 109.



Expected Results:  
It should retrieve the listed quotes from various websites as directed from the
perl scripts. It doesn't retrieve anything.
Comment 1 Decibels 2003-02-05 14:19:09 UTC
Got a little further:
Emerge says that HTML_Parser-3.27 is installed. CPAN says it isn't: Let CPAN install it also. Now both see it as installed. 
Results from running perl yahoo.t:

perl yahoo.t
1..8
ok 1
ok 2
ok 3
ok 4
ok 5
ok 6
ok 7
ok 8

Still not working with Gnucash. But this is much further than have gotten before. Seems like there is a big problem with Perl modules and who/which/how it is installed. Emerge sees one thing and CPAN doesn't. Maybe a reboot will work for Gnucash.
Comment 2 Seemant Kulleen (RETIRED) gentoo-dev 2003-02-05 14:19:45 UTC
is HTML-Parser emerged?
Comment 3 SpanKY gentoo-dev 2003-02-05 14:22:19 UTC
maybe your @INC is messed up ?
do you have a /usr/lib/site_perl ?
if so do this:
emerge `qpkg -f -nc /usr/lib/site_perl`
Comment 4 Decibels 2003-02-05 14:47:36 UTC
1) is HTML-Parser emerged?  
Emerge said 3.26-r2 was installed. Cpan said no: got it via span. Both say have it now. That is what fixed when run F::Q by itself without gnucash.

2)maybe your @INC is messed up ?
do you have a /usr/lib/site_perl ?
if so do this:
emerge `qpkg -f -nc /usr/lib/site_perl`

No, I don't have a /usr/lib/site_perl    have a /usr/lib/perl5/site_perl.
It was /usr/lib/perl5/site_perl on the previous install, that way on this install and just checked on the other computer and it is that way on there. In site_perl is 5.61 and 5.80 folders. 
I still tried your command and gentoolkit is installed: 
emerge `qpkg -f -nc /usr/lib/site_perl`
emerge: please tell me what to do.
.....

Perl seems to be working with everything else. Plus I can get the yahoo.t to work now that I got HTML-Parser with CPAN. It didn't work when just emerge said it was installed.
I also found that Date-Calc and DateManip was not installed according to emerge and only DateManip was installed by CPAN. Emerge and CPAN those, still not fixing it with Gnucash.

Perl -V response:

.......
Characteristics of this binary (from libperl):
  Compile-time options: USE_LARGE_FILES
  Built under linux
  Compiled at Feb  3 2003 16:16:41
  @INC:
    /usr/lib/perl5/5.8.0/i686-linux
    /usr/lib/perl5/5.8.0
    /usr/lib/perl5/site_perl/5.8.0/i686-linux
    /usr/lib/perl5/site_perl/5.8.0
    /usr/lib/perl5/site_perl/5.6.1
    /usr/lib/perl5/site_perl
    /usr/lib/perl5/vendor_perl/5.8.0/i686-linux
    /usr/lib/perl5/vendor_perl/5.8.0
    /usr/lib/perl5/vendor_perl
    .

Oh, Thanks for responding so quickly.
Comment 5 Decibels 2003-02-05 16:10:46 UTC
Okay, finally fixed it. No thanks to GnuCash responses. I decided to look in the
finance-quote-helper module. I ran a command line from it as a test.

echo '(yahoo "IBM")' | ./finance-quote-helper > /home/decibels/gnucashmoretest.txt

At first the response was: 
ERROR: Date::Manip unable to determine TimeZone.
        Date::Manip::Date_TimeZone called at /usr/lib/perl5/site_perl/5.8.0/Date/Manip.pm line 629
        Date::Manip::Date_Init() called at /usr/lib/perl5/site_perl/5.8.0/Date/Manip.pm line 747
        Date::Manip::ParseDateString('2/5/2003 3:37pm') called at ./finance-quote-helper line 205
        main::get_quote_time('IBM','HASH(0x823c214)') called at ./finance-quote-helper line 230
        main::schemify_quote('IBM','HASH(0x823c214)',2) called at ./finance-quote-helper line 263
        main::schemify_quotes('ARRAY(0x81b6084)','HASH(0x823c214)') called at ./finance-quote-helper line 391

So, that gave me something to look into. So I did some reading and redid the symlink to 'ln -sf /usr/share/zoneinfo/US/Central /etc/localtime'

Then the response was nothing.

Opened GnuCash and it WORKED!!!!

So looks like part of the problem was mine. Not sure about the HTML-Parser though. Seems like that error should not have came up. Like I said, emerge saw it installed and CPAN said NO. Not sure if would have gotten the same responses. 
For the original bug though. Want me to Close this?
Comment 6 Seemant Kulleen (RETIRED) gentoo-dev 2003-02-06 17:26:11 UTC
closing..