[GNC] Finance Quote problem MacOS High Sierra.

Bruce Schuck bschuck at asgard-systems.com
Sun Mar 26 00:23:00 EDT 2023


John,

I hate to say this, but on the High Sierra VM I just built 
Finance::Quote is getting valid currency exchanges. At first I was 
having the same issue, but after installing/updating Module::Load the 
issue was corrected.

Bruces-Virtual-High-Sierra:~ bschuck$ sw_vers
ProductName:	Mac OS X
ProductVersion:	10.13.6
BuildVersion:	17G66

Bruces-Virtual-High-Sierra:~ bschuck$ perl -v

This is perl 5, version 18, subversion 2 (v5.18.2) built for 
darwin-thread-multi-2level

#!/usr/bin/perl
use strict;
use warnings;
use ExtUtils::Installed; # By default this module will be available in Perl

my $instmod = ExtUtils::Installed->new();
foreach my $module ($instmod->modules()) {
  my $version = $instmod->version($module) || "Version Not Found.";
  print "$module version=$version \n";
}
################################

Archive::Any::Lite version=0.11
Array::Diff version=0.09
AutoLoader version=5.74
B::COW version=0.007
B::Keywords version=1.24
Bundle::NetSNMP version=Version Not Found.
CPAN::DistnameInfo version=0.12
CPAN::Meta version=2.150010
CPAN::Meta::Check version=0.017
CPAN::Meta::Requirements version=2.140
CPAN::Meta::YAML version=0.018
Clone version=0.46
Compress::Raw::Zlib version=2.204
Config::Tiny version=2.28
Crypt::RC4 version=2.02
Cwd version=3.75
Data::Binary version=0.01
Data::Dumper::Perltidy version=0.03
Data::Section version=0.200008
Date::Manip version=6.91
Date::Range version=1.41
Date::Simple version=3.03
DateTime version=1.59
DateTime::Format::Builder version=0.83
DateTime::Format::ISO8601 version=0.16
DateTime::Format::Strptime version=1.79
DateTime::Locale version=1.37
DateTime::TimeZone version=2.59
Devel::StackTrace version=2.04
Devel::Symdump version=2.18
Devel::Trace version=0.12
Digest::Perl::MD5 version=1.9
Encode version=3.19
Exception::Class version=1.45
ExtUtils::MakeMaker version=7.68
ExtUtils::MakeMaker::CPANfile version=0.09
File::Copy::Recursive version=0.45
File::Find::Object version=0.3.7
File::ShareDir version=1.118
File::ShareDir::Install version=0.14
File::TreeCreate version=0.0.1
File::pushd version=1.016
Finance::Quote version=1.54
HTML-TableExtract version=Version Not Found.
HTML::Selector::XPath version=0.26
HTML::TokeParser::Simple version=3.16
HTML::TreeBuilder::XPath version=0.14
HTTP::Daemon version=6.16
HTTP::Message version=6.44
IO::Socket::IP version=0.41
IPC::System::Simple version=1.30
Importer version=0.026
JSON version=4.10
JSON::PP version=4.16
LWP version=6.68
Lingua::EN::Inflect version=1.905
List::SomeUtils version=0.59
List::SomeUtils::XS version=0.58
List::Util version=1.63
MCE version=1.884
Module::Build version=0.4232
Module::Build::Tiny version=0.039
Module::CPANTS::Analyse version=1.01
Module::CPANfile version=1.1004
Module::CoreList version=5.20230320
Module::Load version=0.36
Module::Metadata version=1.000037
Module::Pluggable version=5.2
Mozilla::CA version=20221114
OLE::Storage_Lite version=0.22
PPI version=1.276
PPIx::QuoteLike version=0.023
PPIx::Regexp version=0.088
PPIx::Utils version=0.003
Params::ValidationCompiler version=0.31
Parse::Distname version=0.05
Path::Tiny version=0.144
Perl version=5.18.2
Perl::Critic version=1.150
Perl::PrereqScanner::NotQuiteLite version=0.9916
Perl::Tidy version=20230309
Pod::Coverage version=0.23
Pod::Spell version=1.26
Readonly version=2.05
Regexp::Trie version=0.02
Role::Tiny version=2.002004
SelfLoader version=1.24
Smart::Comments version=1.06
Software::License version=0.104002
Specio version=0.48
Spiffy version=0.46
Spreadsheet::ParseExcel version=0.65
Spreadsheet::XLSX version=0.17
String::Format version=1.18
String::Util version=1.34
Sub::Identify version=0.14
Sub::Info version=0.002
Sub::Override version=0.09
Term::ReadLine version=1.14
Term::Table version=0.016
Test2::Plugin::NoWarnings version=0.09
Test2::Suite version=0.000150
Test::Base version=0.89
Test::FailWarnings version=0.008
Test::File version=1.993
Test::File::ShareDir version=1.001002
Test::Harness version=3.44
Test::Inter version=1.10
Test::Kwalitee version=1.28
Test::LeakTrace version=0.17
Test::More::UTF8 version=0.05
Test::Needs version=0.002010
Test::NoWarnings version=1.06
Test::Perl::Critic version=1.04
Test::Pod version=1.52
Test::Pod::Coverage version=1.10
Test::RequiresInternet version=0.05
Test::Simple version=1.302194
Test::UseAllModules version=0.17
Test::Warnings version=0.031
Test::Without::Module version=0.21
Test::YAML version=1.07
Text::Template version=1.61
Web::Scraper version=0.38
XML::XPathEngine version=0.14
XString version=0.005
YAML version=1.30
YAML::LibYAML version=0.86
mod_perl2 version=2.000009
namespace::autoclean version=0.29

I would love to see the output of the above Perl script from the system 
having the issue.

Bruces-Virtual-High-Sierra:finance-quote bschuck$ pwd
/Users/bschuck/tmp/finance-quote
Bruces-Virtual-High-Sierra:finance-quote bschuck$ 
./Examples/currency-lookup.pl EUR USD
EUR->USD = 1.0763104

Thanks.

- Bruce S.


On 3/25/23 4:11 PM, Bruce Schuck wrote:
> Thanks John.
> 
> Coincidentally I just managed to install a High Sierra VM under 
> VirtualBox on my MacBook w/Catalina.
> 
> I'll be taking a look at this soon.
> 
> - Bruce S.
> 
> On 3/25/23 3:47 PM, John Ralls wrote:
>> Bruce,
>>
>> Versions:
>> Module::Load 0.36
>> Module::Load::Conditional 0.74
>> SelfLoader 1.24
>> AutoLoader 5.74
>>
>> and for good measure
>> Perl 5.18.2
>>
>> I ran perl -d:Trace 
>> .cpan/build/Finance-Quote-blah-blah/Examples/currency-lookup.pl EUR 
>> USD and attached the zipped result below. You might see a couple of 
>> unfamiliar strings, those are from print statements I'd inserted to 
>> try to see what was going on.
>>
>> Regards,
>> John Ralls
>>
>>
>>
>>
>>> On Mar 23, 2023, at 7:33 PM, Bruce Schuck 
>>> <bschuck at asgard-systems.com> wrote:
>>>
>>> On 03/23/23 9:21 PM, Bruce Schuck wrote:
>>>
>>> What versions of those modules are on the 10.13 OS you have access to?
>>>
>>> Can you update Module::Load and test again?
>>>
>>> Perl does have two modules, Devel::Trace and Devel::DumpTrace.
>>>
>>> I think the output of Devel::Trace may be more useful.
>>>
>>> "perl -d:Trace 
>>> /Applications/Gnucash.app/Contents/Resources/bin/gnc-fq-dump -v 
>>> currency EUR USD 2>/tmp/foobar"
>>>
>>> It creates a fairly large file, over 300k lines on my Catalina system 
>>> where it is working. Starting on line 246638 I see the call to 
>>> autoload and subsequent perl lines executed.
>>>
>>> Just starting it as "perl -d /Applications/..." runs the script in a 
>>> sort of gdb like environment. But I've always debugged using prints 
>>> to stdout or Smart::Comments.
>>>
>>> So if you or whoever is having issues on a High Sierra OS can install 
>>> install Devel::Trace and provide me the output (I checked mine, my 
>>> ALPHAVANTAGE API key is not exposed, but double check your output), I 
>>> can maybe compare.
>>>
>>> Thanks again.
>>>
>>> - Bruce S.
>>
> 



More information about the gnucash-user mailing list