[GNC] Getting Gnucash to recognize Finance::Quote is installed correctly on Mac OS 11.4
jralls at ceridwen.us
Fri May 28 15:14:08 EDT 2021
Hmm. Your original question was about how GnuCash determines whether F::Q is installed. The answer is that it calls gnc-fq-check. So if works from the command line and fails when GnuCash calls it then something is different between the two perl environments. Running GnuCash from Finder won't read your shell environment, but running it from Terminal does. The gnc-fq-foo programs are all perl so you can edit them. It's helpful that running GnuCash from Terminal doesn't work because there's a place for the output to go. Try adding
print STDERR join "\n", @INC;
to gnc-fq-check right after the line
Run `gnc-fq-check` and `gnucash-cli --logto=stderr --log gnc.scm=debug --quotes get <filename>` from Terminal and compare the output.
> On May 28, 2021, at 10:57 AM, James Mauro <jmauro at gmail.com> wrote:
> Not that I remember. It's a clean MacOS install when I got this computer in November and it worked fine until the MacOS update last month which is why the behavior is confounding.
> The system perl in /usr/bin/perl is the only one on the system that I could see with a quick sweep with the terminal find for any others and nothing popped out as a different one I can see.
> Also the "/Applications/Gnucash.app/Contents/MacOS/Gnucash-cli --quotes get" throws "No quotes retrieved. Finance::Quote isn't installed properly." even though I confirmed with the 'which' command that it's pointing to the /usr/bin/perl like the gnc-fq commands do.
> James Mauro <jmauro at gmail.com> Phone: 785-979-1041
> "Had I foreseen this, I would have gone into botany" -- Wolfgang Pauli
>> On May 28, 2021, at 5:51 AM, John Ralls <jralls at ceridwen.us> wrote:
>>> On May 27, 2021, at 11:18 AM, James Mauro <jmauro at gmail.com> wrote:
>>> How does Gnucash verify that Finance::Quote is installed correctly on MacOS
>>> 11? I followed the instructions in the list archives archives to fix Test2
>>> in CPAN, rebuild Quote::Finance via gnc-fq-update and now both gnc-fq-check
>>> and gnc-fq-dump work as expected, but Gnucash still grays out the "Get
>>> Quotes" on the Price Database screen and editing a security indicates that
>>> Finance::Quote isn't properly installed. I've been using Gnucash for a
>>> while and normally once gnc-fq-check and gnc-fq-dump start working there it
>>> magically works, but this time no such luck.
>>> Any thoughts?
>> Might you have installed another instance of perl, perhaps with Homebrew or MacPorts?
>> John Ralls
More information about the gnucash-user