Sorry for the late reply, I didn't see this because of the subject change.

The bug in F9nance::Quote has been fixed. I don't know if the fix is in a version that has been released, but if not it will be in the next one.

Mike

On 9 Mar 2024, at 10:06, john wrote:

Good that you've gotten it working. Maybe open an issue at https://github.com/finance-quote/finance-quote/issues about YahooWeb.pm not setting the right error code when it fails to get a quote.

And please, in the future, start a new thread or at least change the subject when you digress like that. This one was supposed to be about a hard crash of GnuCash itself.

Regards,
John Ralls


On Mar 8, 2024, at 23:30, Tom Teixeira <tjteixe...@earthlink.net> wrote:

I did end up making time to investigate today, and the problem ended up being just one fund that no longer works with YahooWeb. This particular fund is a "stable value" fund so checking the value is somewhat superfluous. As it turns out, it does with with AlphaVantage.

Again, thanks to David Reiser for the information to explicitly specify x86_64 architecture when running on Apple silicon.

On 3/8/24 3:25 PM, Tom Teixeira wrote:
Thanks for the suggestion. I won't have time today to investigate, but will do some targeted debugging, either by removing stocks from my list to update, or by creating a new Gnucash file with only one stock.


On 3/8/24 2:51 PM, David Reiser wrote:
We are now into my mental weeds as far as real knowledge goes, but I have had some success at thrashing around to fix self-induced perl challenges.

Since the error happens on both architectures, that suggests something is missing. I think YahooWeb is relatively recent in the F::Q realm. And F::Q hasn’t managed dependency declarations as well as I’d like.

The error complains about a ‘row method’. YahooWeb uses HTML::TableExtract which might be the source of the row information. Try installing the appropriate arch version of HTML::TableExtract on each machine and see if that works.
--
Dave Reiser
dbrei...@icloud.com





On Mar 8, 2024, at 1:03 PM, Tom Teixeira <tjteixe...@earthlink.net> wrote:

I spoke too soon: while getting an individual quote with gnucash-cli works:

/Applications/Gnucash-5.5.app/Contents/MacOS/gnucash-cli --quotes dump yahooweb MSFT

Application Path /Applications/Gnucash-5.5.app/Contents/MacOS/gnucash-cli
Finance::Quote fields GnuCash uses:
    symbol: MSFT            <=== required
      date: 03/08/2024      <=== recommended
  currency: USD             <=== required
      last: 407.16          <=\
       nav:                 <=== one of these
     price:                 <=/

trying to "Get Quotes" in my "Price Database" does not. I get a dialog box with

Price retrieval failed: Unrecognized Finance::Quote Error: Can't call method "rows" on an undefined value at /Library/Perl/5.34/Finance/Quote/YahooWeb.pm line 101.

I have another, Intel-based Mac. After upgrading this to Sonoma 14.4 release version, and re-installing Finance::Quote, it gets the same error.

_______________________________________________
gnucash-user mailing list
gnucash-user@gnucash.org
To update your subscription preferences or to unsubscribe:
https://lists.gnucash.org/mailman/listinfo/gnucash-user
-----
Please remember to CC this list on all your replies.
You can do this by using Reply-To-List or Reply-All.


_______________________________________________
gnucash-user mailing list
gnucash-user@gnucash.org
To update your subscription preferences or to unsubscribe:
https://lists.gnucash.org/mailman/listinfo/gnucash-user
-----
Please remember to CC this list on all your replies.
You can do this by using Reply-To-List or Reply-All.

_______________________________________________
gnucash-user mailing list
gnucash-user@gnucash.org
To update your subscription preferences or to unsubscribe:
https://lists.gnucash.org/mailman/listinfo/gnucash-user
-----
Please remember to CC this list on all your replies.
You can do this by using Reply-To-List or Reply-All.
_______________________________________________
gnucash-user mailing list
gnucash-user@gnucash.org
To update your subscription preferences or to unsubscribe:
https://lists.gnucash.org/mailman/listinfo/gnucash-user
-----
Please remember to CC this list on all your replies.
You can do this by using Reply-To-List or Reply-All.

Reply via email to