[GNC] gnucash-cli says, "No quotes retrieved. Finance::Quote isn't installed properly" on macOS

Jim DeLaHunt list+gnucash at jdlh.com
Fri Jun 11 21:58:16 EDT 2021


Hello, folks:

I have been retrieving online quotes from GnuCash through AlphaVantage 
for a long time. I would now like to start using gnucash-cli to get 
online quotes via automation. So first I tried it from Terminal, 
interactively.

It failed, with the error message, "No quotes retrieved. Finance::Quote 
isn't installed properly."

However, I think Finance::Quote ought to be installed properly. a) 
Retrieving quotes from the Gnucash… Tools… Price Database… Get Quotes… 
works fine. b) gnc-fq-dump returns prices with no problem. c) 
gnc-fq-update runs with apparent success.

Here's the diagnostics I get from running gnucash-cli:

% /Applications/Gnucash.app/Contents/MacOS/gnucash-cli --debug --quotes get $PR/Bookkeeping/current\ ledger.gnucash
Application Path /Applications/Gnucash.app/Contents/MacOS/gnucash-cli

(process:10336): gnc.gui-WARNING **: 18:45:02.787: [mac_set_languages()] Language list: en:en_CA:C:en_US:C:de_CA:ja_CA:zh_CN:zh_TW:hr_CA
* 18:45:02  INFO <gnc.backend.dbi> [gnc_module_init_backend_dbi] 3 DBD drivers found
* 18:45:02  INFO <gnc.backend.dbi> [gnc_module_init_backend_dbi] Driver: pgsql
* 18:45:02  INFO <gnc.backend.dbi> [gnc_module_init_backend_dbi] Driver: sqlite3
* 18:45:02  INFO <gnc.backend.dbi> [gnc_module_init_backend_dbi] Driver: mysql
* 18:45:02  INFO <gnc.gui> [Gnucash::CoreApp::start] System locale returned (null)
* 18:45:02  INFO <gnc.gui> [Gnucash::CoreApp::start] Effective locale set to en_CA.UTF-8.
* 18:45:02  INFO <gnc.app-utils.gsettings> [gnc_gsettings_register_cb] schema: general, key: retain-days, settings_ptr: 0x7fc8ae00f830, handler_id: 1
* 18:45:02  INFO <gnc.app-utils.gsettings> [gnc_gsettings_register_cb] schema: general, key: retain-type-never, settings_ptr: 0x7fc8ae00f830, handler_id: 2
* 18:45:02  INFO <gnc.app-utils.gsettings> [gnc_gsettings_register_cb] schema: general, key: retain-type-days, settings_ptr: 0x7fc8ae00f830, handler_id: 3
* 18:45:02  INFO <gnc.app-utils.gsettings> [gnc_gsettings_register_cb] schema: general, key: retain-type-forever, settings_ptr: 0x7fc8ae00f830, handler_id: 4
* 18:45:02  INFO <gnc.app-utils.gsettings> [gnc_gsettings_register_cb] schema: general, key: file-compression, settings_ptr: 0x7fc8ae00f830, handler_id: 5
No quotes retrieved. Finance::Quote isn't installed properly.
* 18:45:02  INFO <gnc.engine> [gnc_hook_lookup] no hook lists

The Gnucash.trace file looks empty, despite the --debug option:

% ls -l $TMPDIR/gnucash.trace
-rw-------  1 myuser  staff  0 11 Jun 18:10 /var/folders/5p/zmlrjq6c8xj84s0059bnypz80000gp/T//gnucash.trace

This is my GnuCash version:

% /Applications/Gnucash.app/Contents/MacOS/gnucash-cli -v
Application Path /Applications/Gnucash.app/Contents/MacOS/gnucash-cli

(process:10400): gnc.gui-WARNING **: 18:49:02.239: [mac_set_languages()] Language list: en:en_CA:C:en_US:C:de_CA:ja_CA:zh_CN:zh_TW:hr_CA
GnuCash 4.5
Build ID: 4.5+(2021-03-27)

I am on macOS 10.13.6 High Sierra.

I don't use useful instructions in the wiki, or in a web search of the 
gnucash-user archives (though the web search returns so little of 
relevance, I think it must be missing some messages).

Any suggestions for diagnosing and fixing this problem?

My workaround is to continue running Get Quotes from with in the GUI 
until I can make the gnucash-cli succeed.

Thank you,
      —Jim DeLaHunt




More information about the gnucash-user mailing list