[GNC] Finance::Quote failed to initialize
Boniforti Flavio
boniforti.f at gmail.com
Sat Oct 5 17:32:59 EDT 2024
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>:
> 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> wrote:
>
> Hi John.
> I followed the instructions at:
> https://www.gnucash.org/docs/v5/C/gnucash-manual/finance-quote.html
>
> 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>:
>
>> 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>
>> 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>:
>> > 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, but if you’d rather not you’ll have to
>> reinstall Finance::Quote, see
>> https://wiki.gnucash.org/wiki/Online_Quotes#Installing_Finance::Quote_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>
>> 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>:
>> >> 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>
>> 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/gnucash-cli -Q
>> >> > info
>> >> >
>> >> > Application Path
>> >> >
>> /System/Volumes/Data/Applications/Gnucash.app/Contents/MacOS/gnucash-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
>> >> > 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