[GNC] Finance::Quote failed to initialize
Kalpesh Patel
kalpesh.patel at usa.net
Tue Oct 8 10:01:43 EDT 2024
Just as a side note in case it did not bubble up: for currencies the source cannot be changed from within GNC. There are documented workarounds by setting env vars. In most cases it is not necessary to deploy the workaround.
-----Original Message-----
From: Kalpesh Patel <kalpesh.patel at usa.net>
Sent: Monday, October 07, 2024 2:24 PM
To: 'Boniforti Flavio' <boniforti.f at gmail.com>
Cc: 'John Ralls' <jralls at ceridwen.us>; 'GnuCash users group' <gnucash-user at gnucash.org>
Subject: Re: [GNC] Finance::Quote failed to initialize
That is correct for both types.
Just be careful with how many you download in one shot from sites where you are not defraying their cost via their subscription if it is commercial provider. Mass download are controlled, therefore you want to be selective which currencies is enabled for exchange rate update. Else you will end up getting throttled out or timed out for download (different sources implement differently so your mileage will very) which could last rest of the day. Alphavantage for example allows 25 API request per day for free and for some single exchange rate retrieval require multiple API calls so you might get blocked after getting exchange rate few times in a day.
Folks seem to have better luck with yahoo_jason source for stocks, bonds, and mutual funds…
From: Boniforti Flavio <boniforti.f at gmail.com>
Sent: Monday, October 07, 2024 1:29 PM
To: Kalpesh Patel <kalpesh.patel at usa.net>
Cc: John Ralls <jralls at ceridwen.us>; GnuCash users group <gnucash-user at gnucash.org>
Subject: Re: [GNC] Finance::Quote failed to initialize
Hi Patel.
Thanks for your reply.
I am not really using F::Q outside GNC, I was just testing its behaviour after having successfully installed it :-)
So, within GNC are the currencies always updated? I see this:
And then, if I'd like to add VT, am I right setting it up like this?
Thanks,
F.
https://www.instagram.com/boniforti_music
https://soundcloud.com/boniforti_music
https://bonny-j.bandcamp.com
Am Mo., 7. Okt. 2024 um 19:01 Uhr schrieb Kalpesh Patel <kalpesh.patel at usa.net <mailto:kalpesh.patel at usa.net> >:
It really depends upon which source you will be using to get the pricing for your commodities. F::Q is collection of difference sources contributed by member which GNC relies to retrieve pricing information. Out of those some require API key and some don't. You specify the source to use in the security setup page (Tools --> Security Editor; "double click" any security; at the bottom of the displayed page) will display how your security is setup to retrieve "last" pricing. By default "Get Online Quotes" is not checked in that "Edit Security" box, meaning don't get them from online.
For currency conversion, F::Q defaults to Alphavantage as the source which DOES require an API key. Not sure if F::Q dev have changed it to default to some other as Alphavantage has gotten to the point where it is not so useful for free as they limit number of requests and throttles them.
For securities, if you use Yahoo for price, if it is available from them, then you don't need anything, and you can safely ignore the warning message for Alphavantage. For most, other than Alphavanatage you define a specific env variable for API key, if it is required, which gets read by F::Q when it is run to retrieve prices (Tools --> Price Database). For Alphavantage you can either define via an env variable or you can set it in GNC (Edit --> Preferences --> Online Quotes). Devs, correct me if this usage has changed in anyway.
Since you are using F::Q outside of GNC (calling F::Q on command line is outside of GNC 😊), it is better to define an env variable for it. The perldoc for F::Q lists what variable name should be for a specific module, thus the source that you will select in the security editor window. You can defined this way for as many sources you want to use and they all will happily live with each other without complaining or stepping on each other.
-----Original Message-----
From: Boniforti Flavio <boniforti.f at gmail.com <mailto:boniforti.f at gmail.com> >
Sent: Monday, October 07, 2024 11:03 AM
To: John Ralls <jralls at ceridwen.us <mailto:jralls at ceridwen.us> >
Cc: GnuCash users group <gnucash-user at gnucash.org <mailto:gnucash-user at gnucash.org> >
Subject: Re: [GNC] Finance::Quote failed to initialize
Hi John.
Now I was able to install Finance::Quote -->
me at MacBook-Pro ~ % /Applications/Gnucash.app/Contents/MacOS/gnucash-cli -Q info
Application Path /Applications/Gnucash.app/Contents/MacOS/gnucash-cli
* 16:58:23 WARN <gnc.price-quotes> [GncFQQuoteSource::set_api_key()] No Alpha Vantage API key set, currency quotes and other AlphaVantage based quotes won't work.
Found Finance::Quote version 1.63.
Finance::Quote sources:
aex alphavantage amfiindia asegr asx
aufunds australia bamosz bats bet bloomberg
borsa_italiana bourso bse bseindia bvb
canada comdirect consorsbank cse deka dutch
dwsfunds europe fetch_live_currencies financeapi
finanzpartner fondsweb fool france ftfunds
goldmoney googleweb greece hu hufund hungary
hustock iexcloud india indiamutual known_currencies
marketwatch morningstarau morningstarch
morningstarjp morningstaruk mstaruk nasdaq
nseindia nyse nzx onvista oslobors poland
romania seb_funds sinvestor six stockdata stooq
tesouro_direto tiaacref tmx tradegate tradeville
treasurydirect troweprice troweprice_direct tsp
tsx twelvedata ukfunds unionfunds usa xetra
yahoo_json yahoojson yahooweb za
Do you still recommend to install "Find.pm"?
And now, to get the quotes, do I need to somehow "subscribe" to a service and get/use an API key? I'm asking because of this:
me at MacBook-Pro ~ % /Applications/Gnucash.app/Contents/MacOS/gnucash-cli -Q dump currency USD CHF EUR
Application Path /Applications/Gnucash.app/Contents/MacOS/gnucash-cli
* 16:58:56 WARN <gnc.price-quotes> [GncFQQuoteSource::set_api_key()] No Alpha Vantage API key set, currency quotes and other AlphaVantage based quotes won't work.
CHF Finance::Quote returned no data and set no error.
EUR Finance::Quote returned no data and set no error.
Thanks,
F.
https://www.instagram.com/boniforti_music
https://soundcloud.com/boniforti_music
https://bonny-j.bandcamp.com
Am Mo., 7. Okt. 2024 um 16:36 Uhr schrieb John Ralls <jralls at ceridwen.us <mailto:jralls at ceridwen.us> >:
> Yay. Proceed to install Finance::Quote and JSON::Parse.You can use
> cpan directly or gnc-fq-update, which is just a shell that runs cpan,
> as you prefer.
>
> One more thing to check: Does /System/Library/Perl/5.34/Pod/Find.pm exist?
> I expect it doesn’t, as it doesn’t on either of my Sequoia Macs. That
> will cause a single test in Finance::Quote to fail. You can use cpan
> -f Finance::Quote to force it to install anyway. Do that after
> everything else is installed, you don’t want to force all of the dependencies.
>
> Regards,
> John Ralls
>
> On Oct 7, 2024, at 00:29, Boniforti Flavio <boniforti.f at gmail.com <mailto:boniforti.f at gmail.com> > wrote:
>
> Hello John.
>
> Yes, the file exists:
>
> me at MacBook-Pro ~ % ls -la /Library/Perl/5.34/Test total 336
> drwxr-xr-x 10 root wheel 320 Oct 6 20:43 .
> drwxr-xr-x 8 root wheel 256 Oct 6 20:44 ..
> drwxr-xr-x 8 root wheel 256 Oct 6 20:43 Builder
> -r--r--r-- 1 root wheel 64973 Sep 14 19:32 Builder.pm
> -r--r--r-- 1 root wheel 54359 Sep 14 19:32 More.pm
> -r--r--r-- 1 root wheel 6479 Sep 14 19:32 Simple.pm
> drwxr-xr-x 5 root wheel 160 Oct 6 20:43 Tester
> -r--r--r-- 1 root wheel 18323 Sep 14 19:32 Tester.pm
> -r--r--r-- 1 root wheel 19346 Sep 14 19:32 Tutorial.pod
> drwxr-xr-x 3 root wheel 96 Oct 6 20:43 use
>
> F.
> https://www.instagram.com/boniforti_music
> https://soundcloud.com/boniforti_music
> https://bonny-j.bandcamp.com
>
>
> Am Mo., 7. Okt. 2024 um 00:07 Uhr schrieb John Ralls <jralls at ceridwen.us <mailto:jralls at ceridwen.us> >:
>
>> Flavio,
>>
>> OK, good. Does /Library/Perl/5.34/Test/Simple.pm exist?
>>
>> Regards,
>> John Ralls
>>
>>
>> On Oct 6, 2024, at 11:45, Boniforti Flavio <boniforti.f at gmail.com <mailto:boniforti.f at gmail.com> > wrote:
>>
>> Hi John.
>>
>> The output of "sudo cpan Test::Simple" is very long, the last part being:
>>
>> Appending installation info to
>> /Library/Perl/Updates/5.34.1/darwin-thread-multi-2level/perllocal.pod
>> EXODIST/Test-Simple-1.302204.tar.gz
>> /usr/bin/make install -- OK
>>
>> Do you need more output?
>> F.
>>
>> https://www.instagram.com/boniforti_music
>> https://soundcloud.com/boniforti_music
>> https://bonny-j.bandcamp.com
>>
>>
>> Am So., 6. Okt. 2024 um 18:37 Uhr schrieb John Ralls
>> <jralls at ceridwen.us <mailto:jralls at ceridwen.us>
>> >:
>>
>>> Flavio,
>>>
>>> No, you don’t need to install perl from Homebrew. You’d also have to
>>> edit GnuCash’s environment file to make it work and there’s no
>>> benefit. We were chasing the Homebrew perl possibility trying to
>>> figure out if Finance::Quote’s dependencies had gotten installed.
>>>
>>> Your list shows that everything got at least downloaded, so at least
>>> that much worked. IIRC Test::Simple has no dependencies,, so try
>>> sudo cpan Test::Simple
>>> If you followed Bruce’s instruction to chown ~/.cpan leave off sudo.
>>>
>>> What’s the output?
>>>
>>> Regards,
>>> John Ralls
>>>
>>>
>>> On Oct 6, 2024, at 03:39, Boniforti Flavio <boniforti.f at gmail.com
>>> <mailto:boniforti.f at gmail.com> >
>>> wrote:
>>>
>>> Hi John.
>>>
>>> Yes, indeed I used gnc-fq-update.
>>>
>>> Do you suggest that I get Perl from Homebrew? If so, do I need to
>>> uninstall the existing Perl installation (which apparently came with MacOS)?
>>>
>>> Here's the output of the ls command:
>>>
>>> bonny at Flavios-MacBook-Pro ~ % ls ~/.cpan/build
>>> Archive-Any-Lite-0.11-0 HTTP-Daemon-6.16-0 Sereal-Decoder-5.004-0
>>> Archive-Any-Lite-0.11-0.yml HTTP-Daemon-6.16-0.yml
>>> Sereal-Decoder-5.004-0.yml
>>> Array-Diff-0.09-0 JSON-Parse-0.62-0 Sereal-Encoder-5.004-0
>>> Array-Diff-0.09-0.yml JSON-Parse-0.62-0.yml
>>> Sereal-Encoder-5.004-0.yml
>>> B-Keywords-1.27-0 Lingua-EN-Inflect-1.905-0
>>> Software-License-0.104006-0 B-Keywords-1.27-0.yml
>>> Lingua-EN-Inflect-1.905-0.yml Software-License-0.104006-0.yml
>>> Config-Tiny-2.30-0 List-SomeUtils-0.59-0
>>> Spreadsheet-ParseExcel-0.66-0 Config-Tiny-2.30-0.yml
>>> List-SomeUtils-0.59-0.yml Spreadsheet-ParseExcel-0.66-0.yml
>>> Crypt-RC4-2.02-0 List-SomeUtils-XS-0.58-0 Spreadsheet-XLSX-0.18-0
>>> Crypt-RC4-2.02-0.yml List-SomeUtils-XS-0.58-0.yml
>>> Spreadsheet-XLSX-0.18-0.yml
>>> Data-Binary-0.01-0 MCE-1.900-0 String-Format-1.18-0
>>> Data-Binary-0.01-0.yml MCE-1.900-0.yml String-Format-1.18-0.yml
>>> Data-Section-0.200008-0 Mock-Config-0.03-0 String-Util-1.35-0
>>> Data-Section-0.200008-0.yml Mock-Config-0.03-0.yml
>>> String-Util-1.35-0.yml
>>> Date-Manip-6.95-0 Module-CPANTS-Analyse-1.02-0
>>> Test-FailWarnings-0.008-0 Date-Manip-6.95-0.yml
>>> Module-CPANTS-Analyse-1.02-0.yml Test-FailWarnings-0.008-0.yml
>>> Date-Range-1.41-0 Module-CPANfile-1.1004-0 Test-File-1.993-0
>>> Date-Range-1.41-0.yml Module-CPANfile-1.1004-0.yml
>>> Test-File-1.993-0.yml
>>> Date-Simple-3.03-0 Mozilla-CA-20240924-0 Test-Inter-1.11-0
>>> Date-Simple-3.03-0.yml Mozilla-CA-20240924-0.yml
>>> Test-Inter-1.11-0.yml
>>> DateTime-Format-Builder-0.83-0 Mozilla-PublicSuffix-v1.0.7-0
>>> Test-Kwalitee-1.28-0
>>> DateTime-Format-Builder-0.83-0.yml Mozilla-PublicSuffix-v1.0.7-0.yml
>>> Test-Kwalitee-1.28-0.yml
>>> DateTime-Format-ISO8601-0.16-0 OLE-Storage_Lite-0.22-0
>>> Test-LeakTrace-0.17-0
>>> DateTime-Format-ISO8601-0.16-0.yml OLE-Storage_Lite-0.22-0.yml
>>> Test-LeakTrace-0.17-0.yml
>>> DateTime-Format-Strptime-1.79-0 PPI-1.279-0 Test-LongString-0.17-0
>>> DateTime-Format-Strptime-1.79-0.yml PPI-1.279-0.yml
>>> Test-LongString-0.17-0.yml
>>> DateTime-Locale-1.43-0 PPIx-QuoteLike-0.023-0 Test-More-UTF8-0.05-0
>>> DateTime-Locale-1.43-0.yml PPIx-QuoteLike-0.023-0.yml
>>> Test-More-UTF8-0.05-0.yml
>>> Devel-CheckLib-1.16-0 PPIx-Regexp-0.088-0 Test-NoWarnings-1.06-0
>>> Devel-CheckLib-1.16-0.yml PPIx-Regexp-0.088-0.yml
>>> Test-NoWarnings-1.06-0.yml
>>> Devel-Symdump-2.18-0 PPIx-Utils-0.003-0 Test-Perl-Critic-1.04-0
>>> Devel-Symdump-2.18-0.yml PPIx-Utils-0.003-0.yml
>>> Test-Perl-Critic-1.04-0.yml
>>> Digest-Perl-MD5-1.9-0 Parse-Distname-0.05-0 Test-Pod-Coverage-1.10-0
>>> Digest-Perl-MD5-1.9-0.yml Parse-Distname-0.05-0.yml
>>> Test-Pod-Coverage-1.10-0.yml
>>> ExtUtils-MakeMaker-CPANfile-0.09-0 Perl-Critic-1.152-0
>>> Test-Simple-1.302204-0
>>> ExtUtils-MakeMaker-CPANfile-0.09-0.yml Perl-Critic-1.152-0.yml
>>> Test-Simple-1.302204-0.yml
>>> File-Find-Object-0.3.8-0 Perl-PrereqScanner-NotQuiteLite-0.9917-0
>>> Test-UseAllModules-0.17-0
>>> File-Find-Object-0.3.8-0.yml
>>> Perl-PrereqScanner-NotQuiteLite-0.9917-0.yml
>>> Test-UseAllModules-0.17-0.yml
>>> File-TreeCreate-0.0.1-0 Perl-Tidy-20240903-0 Text-Template-1.61-0
>>> File-TreeCreate-0.0.1-0.yml Perl-Tidy-20240903-0.yml
>>> Text-Template-1.61-0.yml
>>> Finance-Quote-1.63-0 Pod-Coverage-0.23-0 Web-Scraper-0.38-0
>>> Finance-Quote-1.63-0.yml Pod-Coverage-0.23-0.yml
>>> Web-Scraper-0.38-0.yml
>>> HTML-Selector-XPath-0.28-0 Pod-Parser-1.67-0 XML-XPathEngine-0.14-0
>>> HTML-Selector-XPath-0.28-0.yml Pod-Parser-1.67-0.yml
>>> XML-XPathEngine-0.14-0.yml
>>> HTML-TableExtract-2.15-0 Pod-Spell-1.26-0 libwww-perl-6.77-0
>>> HTML-TableExtract-2.15-0.yml Pod-Spell-1.26-0.yml
>>> libwww-perl-6.77-0.yml
>>> HTML-TreeBuilder-XPath-0.14-0 Readonly-2.05-0 local-lib-2.000029-0
>>> HTML-TreeBuilder-XPath-0.14-0.yml Readonly-2.05-0.yml
>>> local-lib-2.000029-0.yml
>>> HTTP-CookieJar-0.014-0 Regexp-Trie-0.02-0 HTTP-CookieJar-0.014-0.yml
>>> Regexp-Trie-0.02-0.yml
>>>
>>> Thanks,
>>> F.
>>>
>>> https://www.instagram.com/boniforti_music
>>> https://soundcloud.com/boniforti_music
>>> https://bonny-j.bandcamp.com
>>>
>>>
>>> Am So., 6. Okt. 2024 um 00:55 Uhr schrieb John Ralls
>>> <jralls at ceridwen.us <mailto:jralls at ceridwen.us>
>>> >:
>>>
>>>> Flavio,
>>>>
>>>> Ah, you followed the instructions on
>>>> https://www.gnucash.org/docs/v5/C/gnucash-manual/fq-install.html,
>>>> so you used gnc-fq-update.
>>>>
>>>> Perl does come with macOS, but it’s not the latest release and some
>>>> people use Homebrew to get it.
>>>>
>>>> The Quote.pms you’ve got aren’t Finance::Quote, so the attempt to
>>>> install it with gnc-fq-update failed. You ran sudo gnc-fq-update
>>>> and that created a ~/.cpan owned by root, which is why attempting
>>>> to run cpan Finance::Quote bailed with the permission error.
>>>>
>>>> What;s does
>>>> ls ~/.cpan/build
>>>> report?
>>>>
>>>> Regards,
>>>> John Ralls
>>>>
>>>>
>>>>
>>>> On Oct 5, 2024, at 14:32, Boniforti Flavio <boniforti.f at gmail.com
>>>> <mailto:boniforti.f at gmail.com> >
>>>> wrote:
>>>>
>>>> Hi John.
>>>> In fact I followed the instructions on that page, but nothing tells
>>>> me how to install JSON::Parse.
>>>> I verified that I had Perl installed and then I proceeded to
>>>> install Finance::Quote as explained there in the Mac paragraph.
>>>>
>>>> I ran the find command you suggested, except for the fact that I
>>>> had to remove "-x" as it wouldn't work with MacOS Sonoma. Anyway,
>>>> these are the places where Quote.pm has been found:
>>>>
>>>> /System/Library/Perl/Extras/5.30/Sub/Quote.pm
>>>> /System/Library/Perl/Extras/5.30/PPI/Token/Quote.pm
>>>> /System/Library/Perl/Extras/5.34/Sub/Quote.pm
>>>> /System/Library/Perl/Extras/5.34/PPI/Token/Quote.pm
>>>>
>>>> The output of "which perl" reads "/usr/bin/perl", thus I think that
>>>> I never installed Perl from Homebrew (I think Perl comes with the OS already).
>>>>
>>>> F.
>>>>
>>>> https://www.instagram.com/boniforti_music
>>>> https://soundcloud.com/boniforti_music
>>>> https://bonny-j.bandcamp.com
>>>>
>>>>
>>>> Am Sa., 5. Okt. 2024 um 19:18 Uhr schrieb John Ralls <
>>>> jralls at ceridwen.us <mailto:jralls at ceridwen.us> >:
>>>>
>>>>> Flavio,
>>>>>
>>>>> That page says the you need perl, JSON::Parse, and Finance::Quote,
>>>>> but it doesn’t say anything about how to get them. What did you do?
>>>>>
>>>>> At this point I think it’s worthwhile to see if you installed
>>>>> Finance::Quote at all. Run
>>>>> find / -x -name Quote.pm
>>>>> It will take a while, it’s going to search all of your SSD.
>>>>>
>>>>> If you’d used Homebrew to install perl you’ll find it in
>>>>> /opt/homebrew/bin. If you’ve run the Homebrew installer it will
>>>>> have modified your shell startup to place that first in $PATH so that
>>>>> which perl
>>>>> would return /opt/homebrew/bin/perl` instead of /usr/bin/perl.
>>>>>
>>>>> Regards,
>>>>> John Ralls
>>>>>
>>>>>
>>>>> On Oct 5, 2024, at 01:27, Boniforti Flavio <boniforti.f at gmail.com
>>>>> <mailto:boniforti.f at gmail.com> >
>>>>> wrote:
>>>>>
>>>>> Hi John.
>>>>> I followed the instructions at:
>>>>> https://www.gnucash.org/docs/v5/C/gnucash-manual/finance-quote.htm
>>>>> l
>>>>>
>>>>> I also found this:
>>>>>
>>>>> me at FMacBook-Pro ~ % ls -la /Library/Perl total 0
>>>>> drwxr-xr-x 4 root wheel 128 Aug 4 12:31 .
>>>>> drwxr-xr-x 69 root wheel 2208 Aug 18 16:38 ..
>>>>> drwxr-xr-x 3 root wheel 96 Aug 4 12:31 5.30
>>>>> drwxr-xr-x 3 root wheel 96 Aug 4 12:31 5.34
>>>>>
>>>>> But both 5.30 and 5.34 directories are almost empty (at least
>>>>> there's no Finance folder in both of them).
>>>>> F.
>>>>>
>>>>> https://www.instagram.com/boniforti_music
>>>>> https://soundcloud.com/boniforti_music
>>>>> https://bonny-j.bandcamp.com
>>>>>
>>>>>
>>>>> Am Fr., 4. Okt. 2024 um 22:17 Uhr schrieb John Ralls <
>>>>> jralls at ceridwen.us <mailto:jralls at ceridwen.us> >:
>>>>>
>>>>>> Flavio,
>>>>>>
>>>>>> The almost empty /Library/Perl/5.34/ means that you didn't
>>>>>> install Finance::Quote there. Please link the instructions that you used.
>>>>>>
>>>>>> Regards,
>>>>>> John Ralls
>>>>>>
>>>>>>
>>>>>> > On Oct 4, 2024, at 11:18 AM, Boniforti Flavio <
>>>>>> boniforti.f at gmail.com <mailto:boniforti.f at gmail.com> > wrote:
>>>>>> >
>>>>>> > Hi John.
>>>>>> > This is the output of the "file" command:
>>>>>> > /Applications/Gnucash.app/Contents/MacOS/Gnucash: Mach-O 64-bit
>>>>>> executable arm64
>>>>>> >
>>>>>> > And these the contents of the Perl library path - I think
>>>>>> > there's
>>>>>> something missing:
>>>>>> >
>>>>>> > me at MacBook-Pro ~ % ls -la /Library/Perl/5.34 total 0
>>>>>> > drwxr-xr-x 3 root wheel 96 Aug 4 12:31 .
>>>>>> > drwxr-xr-x 4 root wheel 128 Aug 4 12:31 ..
>>>>>> > -rw-r--r-- 1 root wheel 33 Aug 4 12:31 AppendToPath
>>>>>> >
>>>>>> > What do you suggest next?
>>>>>> > Thanks,
>>>>>> > F.
>>>>>> >
>>>>>> > https://www.instagram.com/boniforti_music
>>>>>> > https://soundcloud.com/boniforti_music
>>>>>> > https://bonny-j.bandcamp.com
>>>>>> >
>>>>>> >
>>>>>> > Am Do., 3. Okt. 2024 um 21:22 Uhr schrieb John Ralls <
>>>>>> jralls at ceridwen.us <mailto:jralls at ceridwen.us> >:
>>>>>> > Flavio,
>>>>>> >
>>>>>> > I bet HomeBrew didn’t pick up the Apple Silicon build, but to
>>>>>> > make
>>>>>> sure you can run
>>>>>> > file /Applications/Gnucash.app/Contents/MacOS/Gnucash
>>>>>> > Which will return something like
>>>>>> > /Applications/Gnucash.app/Contents/MacOS/Gnucash: Mach-O
>>>>>> > 64-bit
>>>>>> executable x86_64
>>>>>> > For an Intel build; the end will be arm64e for an Apple Silicon
>>>>>> one. If it’s an Intel build the simpler option is to get the
>>>>>> Apple Silicon build from https;//www.gnucash.org
>>>>>> <http://www.gnucash.org> , but if you’d rather not you’ll have to
>>>>>> reinstall Finance::Quote, see
>>>>>> https://wiki.gnucash.org/wiki/Online_Quotes#Installing_Finance::Q
>>>>>> uote_on_macOS_from_a_Terminal_prompt
>>>>>> .
>>>>>> >
>>>>>> > That doesn’t explain why perldoc can’t find Finance::Quote though.
>>>>>> Does /Library/Perl/5.34/Finance/Quote.pm exist?
>>>>>> >
>>>>>> > Regards,
>>>>>> > John Ralls
>>>>>> >
>>>>>> >
>>>>>> >> On Oct 2, 2024, at 21:45, Boniforti Flavio
>>>>>> >> <boniforti.f at gmail.com <mailto:boniforti.f at gmail.com> >
>>>>>> wrote:
>>>>>> >>
>>>>>> >> Hi John.
>>>>>> >> I installed GnuCash with HomeBrew. I did not manually install
>>>>>> >> Perl
>>>>>> - it was already there:
>>>>>> >>
>>>>>> >> me at MacBook-Pro ~ % perl -v
>>>>>> >>
>>>>>> >> This is perl 5, version 34, subversion 1 (v5.34.1) built for
>>>>>> darwin-thread-multi-2level
>>>>>> >> (with 2 registered patches, see perl -V for more detail)
>>>>>> >>
>>>>>> >> Copyright 1987-2022, Larry Wall
>>>>>> >>
>>>>>> >> Perl may be copied only under the terms of either the Artistic
>>>>>> License or the
>>>>>> >> GNU General Public License, which may be found in the Perl 5
>>>>>> source kit.
>>>>>> >>
>>>>>> >> Complete documentation for Perl, including FAQ lists, should
>>>>>> >> be
>>>>>> found on
>>>>>> >> this system using "man perl" or "perldoc perl". If you have
>>>>>> access to the
>>>>>> >> Internet, point your browser at http://www.perl.org/, the Perl
>>>>>> Home Page.
>>>>>> >>
>>>>>> >> My MBP is an M1.
>>>>>> >>
>>>>>> >> Thanks for helping,
>>>>>> >> F.
>>>>>> >>
>>>>>> >> https://www.instagram.com/boniforti_music
>>>>>> >> https://soundcloud.com/boniforti_music
>>>>>> >> https://bonny-j.bandcamp.com
>>>>>> >>
>>>>>> >>
>>>>>> >> Am Do., 3. Okt. 2024 um 01:13 Uhr schrieb John Ralls <
>>>>>> jralls at ceridwen.us <mailto:jralls at ceridwen.us> >:
>>>>>> >> Flavio,
>>>>>> >>
>>>>>> >> What did you actually do? Do you by any chance have a perl
>>>>>> installed that isn’t from Apple, perhaps HomeBrew or MacPorts? Is
>>>>>> your MBP an Intel or Apple Silicon one and did you install the
>>>>>> GnuCash that matches the architecture?
>>>>>> >>
>>>>>> >> Regards,
>>>>>> >> John Ralls
>>>>>> >>
>>>>>> >>
>>>>>> >> > On Oct 2, 2024, at 12:03, Boniforti Flavio <
>>>>>> boniforti.f at gmail.com <mailto:boniforti.f at gmail.com> > wrote:
>>>>>> >> >
>>>>>> >> > Hi all.
>>>>>> >> >
>>>>>> >> > On MacOS Sonoma 14.6.1 I've just followed the instructions
>>>>>> >> > from
>>>>>> the GnuCash
>>>>>> >> > documentation to install the Finance::Quote module.
>>>>>> >> > After finishing without errors, I tried to use it but it
>>>>>> >> > won't
>>>>>> initialize -
>>>>>> >> > see here:
>>>>>> >> >
>>>>>> >> > me at MacBook-Pro ~ %
>>>>>> >> >
>>>>>> /System/Volumes/Data/Applications/Gnucash.app/Contents/MacOS/gnuc
>>>>>> ash-cli -Q
>>>>>> >> > info
>>>>>> >> >
>>>>>> >> > Application Path
>>>>>> >> >
>>>>>> /System/Volumes/Data/Applications/Gnucash.app/Contents/MacOS/gnuc
>>>>>> ash-cli
>>>>>> >> >
>>>>>> >> > Failed to initialize Finance::Quote: missing_modules
>>>>>> Finance::Quote
>>>>>> >> > JSON::Parse
>>>>>> >> >
>>>>>> >> >
>>>>>> >> > Even Perl doesn't know about its existence:
>>>>>> >> >
>>>>>> >> > me at MacBook-Pro ~ % perldoc Finance::Quote
>>>>>> >> >
>>>>>> >> > No documentation found for "Finance::Quote".
>>>>>> >> >
>>>>>> >> > Is anybody able to help me understand what's gone wrong and
>>>>>> >> > how
>>>>>> to fix it?
>>>>>> >> >
>>>>>> >> > Thanks,
>>>>>> >> > F.
>>>>>> >> >
>>>>>> >> > https://www.instagram.com/boniforti_music
>>>>>> >> > https://soundcloud.com/boniforti_music
>>>>>> >> > https://bonny-j.bandcamp.com
>>>>>> >> > _______________________________________________
>>>>>> >> > gnucash-user mailing list
>>>>>> >> > gnucash-user at gnucash.org <mailto:gnucash-user at gnucash.org>
>>>>>> >> > To update your subscription preferences or to unsubscribe:
>>>>>> >> > https://lists.gnucash.org/mailman/listinfo/gnucash-user
>>>>>> >> > -----
>>>>>> >> > 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