[GNC] gnucash-cli says, "No quotes retrieved. Finance::Quote isn't installed properly" on macOS
John Ralls
jralls at ceridwen.us
Fri Jun 11 22:39:07 EDT 2021
Jim,
Start with
perl /Applications/Gnucash.app/Contents/Resources/bin/gnc-fq-check
from Terminal to make sure that perl can find F::Q and
which perl
from Terminal to see what is the default perl.
If gnc-fq-check fails then
perl -e 'print join("\n", @INC), "\n";'
will show you where perl-from-terminal is looking for modules.
Regards,
John Ralls
> On Jun 11, 2021, at 6:58 PM, Jim DeLaHunt <list+gnucash at jdlh.com> wrote:
>
> 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
>
>
> _______________________________________________
> gnucash-user mailing list
> gnucash-user at gnucash.org
> To update your subscription preferences or to unsubscribe:
> https://lists.gnucash.org/mailman/listinfo/gnucash-user
> If you are using Nabble or Gmane, please see https://wiki.gnucash.org/wiki/Mailing_Lists for more information.
> -----
> Please remember to CC this list on all your replies.
> You can do this by using Reply-To-List or Reply-All.
More information about the gnucash-user
mailing list