[GNC] Finance Quote problem MacOS High Sierra.
Bruce Schuck
bschuck at asgard-systems.com
Sat May 6 18:32:59 EDT 2023
On 5/6/23 15:01, John Ralls wrote:
> On my mid-2010 MBP running Mac OS X 10.13.6 I get the following from
> your script:
> `.cpan/build/Finance::Quote-blah/Examples/stockdump.pl
> alphavantage AAPL` works fine. `Examples/currency-lookup.pl EUR GBP`
> returns "Urgh. Nothing back" while on my 2013 MacPro running macOS 12
> it returns "EUR->GBP = 0.87222" as expected.
> Weird, eh?
Not really. Perl's ability to easily change where modules are loaded
from, great for developers; sometimes creates a mess when modules were
sometimes installed as root (or using sudo), and in custom or local user
based paths other times.
The key to testing the examples is to always test from the immediate
parent directory of ./Examples. Since they all have this line to modify
the search path for modules.
use lib '../lib';
But as I said, my High Sierra VM was a virgin fresh install. I installed
F::Q using sudo in MyConfig.pm, then updated Module::Load also with the
sudo based MyConfig. Fetching data did not work until I updated
Module::Load. I think the version that came installed on High Sierra was
.24 or something else quite lower than .36.
- Bruce S.
More information about the gnucash-user
mailing list