[GNC] Finance quote not working

Paras Desai desaiparas at outlook.com
Tue Aug 8 03:12:50 EDT 2023


Thanks Jon,

My reply to your questions, Hope this will throw some light to my issue,


1. while i try to get quote, blank screen splashes (perhaps command 
prompt) second splash screen stays for a while and goes off. No error 
message is displayed.

2. As suggested by you, I located the Trace file and checked. It says : 
Price retrieval failed: Failed to parse result returned by Finance::Quote.

* 12:25:02  WARN <gnc.price-quotes> 
[GncFQQuoteSource::GncFQQuoteSource()] No Alpha Vantage API key set, 
currency quotes and other AlphaVantage based quotes won't work.
* 12:25:04 ERROR <gnc.html> [webkit_resource_load_error()] WebKit load 
of resource 
f:/gnucash/share/guile/site/2.2/gnucash/reports/stylesheets/balsheet-eg.css, 
type (NULL), failed due to URL cannot be shown
* 12:25:16  WARN <gnc.price-quotes> 
[GncFQQuoteSource::GncFQQuoteSource()] No Alpha Vantage API key set, 
currency quotes and other AlphaVantage based quotes won't work.
* 12:25:25 ERROR <gnc.gui> [gnc_prices_dialog_get_quotes_clicked()] 
Price retrieval failed: Failed to parse result returned by Finance::Quote.
Error message:
<unspecified file>(1): expected value
* 12:25:25  WARN <GLib-GObject> invalid cast from '(NULL)' to 'GtkWindow'
* 12:25:25 ERROR <Gtk> gtk_message_dialog_new: assertion 'parent == NULL 
|| GTK_IS_WINDOW (parent)' failed
* 12:25:25 ERROR <Gtk> gtk_dialog_run: assertion 'GTK_IS_DIALOG 
(dialog)' failed
* 12:25:25 ERROR <Gtk> gtk_widget_destroy: assertion 'GTK_IS_WIDGET 
(widget)' failed
* 12:27:33  WARN <gnc.price-quotes> 
[GncFQQuoteSource::GncFQQuoteSource()] No Alpha Vantage API key set, 
currency quotes and other AlphaVantage based quotes won't work.
* 12:27:42 ERROR <gnc.gui> [gnc_prices_dialog_get_quotes_clicked()] 
Price retrieval failed: Failed to parse result returned by Finance::Quote.
Error message:
hare/locale/en_IN/LC_MESSAGES/gnucash.mo
* 12:27:42  WARN <GLib-GObject> invalid cast from '(NULL)' to 'GtkWindow'
* 12:27:42 ERROR <Gtk> gtk_message_dialog_new: assertion 'parent == NULL 
|| GTK_IS_WINDOW (parent)' failed
* 12:27:42 ERROR <Gtk> gtk_dialog_run: assertion 'GTK_IS_DIALOG 
(dialog)' failed
* 12:27:42 ERROR <Gtk> gtk_widget_destroy: assertion 'GTK_IS_WIDGET 
(widget)' failed

On 08-08-2023 02:01, John Ralls wrote:
>
>> On Aug 7, 2023, at 7:01 AM, Paras Desai<desaiparas at outlook.com>  wrote:
>>
>> Hello Jin and all friends
>>
>> Thanks for your kind help and suggestion in running command prompt. GnuCash was installed in F drive and I forgot that, so the error message was coming,
>>
>> I ran the command prompt, and it threw the result for RELIANCE, FOR EXAMPLE, as below. So the Finance quote works, but integrated Finance quote in GnuCash does not. What could be the next step?
>>
>> Thank you.
>>
>> Paras
>>
>>
>>   close => 2523.85
>>        symbol => RELIANCE
>>     prevclose => 2509.55
>>          open => 2521
>>           low => 2505
>>          last => 2523.5
>>       isodate => 2023-08-07
>>        method => nseindia
>>      exchange => NSE
>>          high => 2528.4
>>       success => 1
>>      currency => INR
>>          date => 08/07/2023
>>
> Paras,
>
> GnuCash and gnucash-cli use the same code for Finance::Quote integration, so it's not that. You reported that updating your book worked until 26 July, so something must have changed around that day. Do you remember changing anything, like updating GnuCash or Finance::Quote, that might offer a clue?
>
> There may be an error in your tracefile (seehttps://wiki.gnucash.org/wiki/Tracefile) that explains why the prices aren't being updated.
>
> When trying to retrieve quotes in the GUI are you getting the message box saying that it couldn't retrieve quotes for some stocks followed by a list of stocks that fail?
>
> Regards,
> John Ralls
>
>


More information about the gnucash-user mailing list