[GNC] --add-price-quotes prints nothing and always fails with no info

John Ralls jralls at ceridwen.us
Fri Jun 5 11:44:43 EDT 2020



> On Jun 4, 2020, at 2:06 PM, Hong Xu <hong at topbug.net> wrote:
> 
> Hi!
> 
> I tried to play with automatic stock price retrieval, but it always failed (although gnc-fq-dump works well).
> 
> When I run "gnucash --debug --add-price-quotes /path/to/my/gnucash/file", I got the following output:
> 
>     Found Finance::Quote version 1.49.
> 
> Then "echo $?" prints "1".
> 
> gnc-fq-dump works well:
> 
> $ gnc-fq-dump yahoo_json AMZN
> Finance::Quote fields Gnucash uses:
>     symbol: AMZN                 <=== required
>       date: 06/04/2020           <=== recommended
>   currency: USD                  <=== required
>       last: 2460.6               <=\      
>        nav:                      <=== one of these
>      price:                      <=/       
>   timezone:                      <=== optional
> 
> Is there any way to get more debug information? My system is Debian 10, and "gnucash -v" outputs:

By default GnuCash logs to a file: https://wiki.gnucash.org/wiki/Tracefile.

If you want the output to go to the terminal add `--logto=stderr` to the command line.

Regards,
John Ralls



More information about the gnucash-user mailing list