Re: [GNC] Finance::Quote PreRelease 1.61_03

2024-05-03 Thread Bruce Schuck

On 5/3/24 11:36 AM, Kalpesh Patel wrote:


I looked at Makefile.PL for 1.61 source at CPAN and it does NOT have CPAN
listed in PREREQ_PM or in %FallbackPrereqs. Might be worth adding to it...
Most GnuCash users can (and probably should...) likely ignore this post. 
Any further discussion should be taken offline of the GnuCash user list.


Kalpesh,

Makefile.PL gets created when Dist::Zilla (aka dzil) creates the tarball 
for uploading to CPAN.


Please understand what the prerequisites listed in the GitHub repo 
dist.ini file and package Makefile.PL and META files are. Those are 
modules that the module being installed requires to build, run, and 
test. Technically CPAN is *not* required for that. CPAN (and CPAN Minus) 
is a tool that simplifies the module install process for both novice and 
expert Perl users. One would not be able to execute "cpan 
Finance::Quote" or "perl -MCPAN -e shell" *unless* CPAN were already 
installed. Your suggestion to add it to the module prereqs is the same 
as suggesting that *every* single Perl module on CPAN should have it 
included as a prerequisite.


But that said, either the GnuCash and/or F::Q docs/wiki would probably 
benefit from an overview on how to check if CPAN is installed, and how 
to install CPAN if it is not already installed.


Bruce S.
___
gnucash-user mailing list
gnucash-user@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.


Re: [GNC] Finance::Quote PreRelease 1.61_03

2024-05-03 Thread Kalpesh Patel
My bad here ... since working with Perl 5.005 ... 

-- Original Message --
Received: Fri, 03 May 2024 02:37:19 PM EDT
From: "Kalpesh Patel" 
To: Bruce Schuck , GnuCash User
Cc: Kalpesh Patel , Fred
Tydeman 
Subject: Re: [GNC] Finance::Quote PreRelease 1.61_03

> Hi Bruce,
> 
> Indeed it is old school way to generate make file and install Perl modules.
I
> do recall doing so on many iterations since working with Perl 5.10 days
when
> CPAN was in its infancy for couple of Financial Houses I was employed at
that
> were big time into Perl. Especially trying to build SSLeay module with
> OpneSSL, z-lib (or was it libz) and other dependent libraries' headers on
SUN
> Ultra Sparc 2's back then. What a nightmare (or fun) that was...  
> 
> Anyways I was more interested in making sure that Fred had generated
correctly
> and not adopted from somewhere else that might be somewhat bastardized one.
I
> also got thrown off a bit in that when I cloned the repo for 1.61_03, it
> didn't have Makefile.PL so it was more to make sure it was installed from
> correct source.
> 
> I looked at Makefile.PL for 1.61 source at CPAN and it does NOT have CPAN
> listed in PREREQ_PM or in %FallbackPrereqs. Might be worth adding to it...
> 
> 
> -- Original Message --
> Received: Fri, 03 May 2024 11:30:22 AM EDT
> From: Bruce Schuck 
> To: GnuCash User Cc: Kalpesh Patel
> , Fred Tydeman 
> Subject: Re: [GNC] Finance::Quote PreRelease 1.61_03
> 
> > On May 2, 2024 at 23:44:53 EDT Kalpesh wrote:
> > 
> > > That is possible that there is no depend target in the make file. 
> > > Just curious how you built/get the make file for it?
> > 
> > Kalpesh,
> > 
> > The old school method of installing Perl modules.
> > 
> > The makefile is created by running "perl Makefile.PL". Then one would 
> > execute "make", "make test", and "make install". When I first started 
> > using Perl, there was no "cpan" or "cpanm" that automated much of the 
> > process. Fetching prerequisites and installing them is one of the major 
> > reasons for using cpan/cpanm. It's been such a long time since I had 
> > used the OG module install method that I forgot that it does not have a 
> > mechanism for fetching and installing dependencies. Back in the day the 
> > dependencies were typically noted in the module's README file and one 
> > had to manually retrieve and install them.
> > 
> > This method is definitely not for Perl novices. These days it's more for 
> > those who display masochistic tendencies...
> > 
> > Bruce S.
> 
> 


___
gnucash-user mailing list
gnucash-user@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.


Re: [GNC] Finance::Quote PreRelease 1.61_03

2024-05-03 Thread Kalpesh Patel
Hi Bruce,

Indeed it is old school way to generate make file and install Perl modules. I
do recall doing so on many iterations since working with Perl 5.10 days when
CPAN was in its infancy for couple of Financial Houses I was employed at that
were big time into Perl. Especially trying to build SSLeay module with
OpneSSL, z-lib (or was it libz) and other dependent libraries' headers on SUN
Ultra Sparc 2's back then. What a nightmare (or fun) that was...  

Anyways I was more interested in making sure that Fred had generated correctly
and not adopted from somewhere else that might be somewhat bastardized one. I
also got thrown off a bit in that when I cloned the repo for 1.61_03, it
didn't have Makefile.PL so it was more to make sure it was installed from
correct source.

I looked at Makefile.PL for 1.61 source at CPAN and it does NOT have CPAN
listed in PREREQ_PM or in %FallbackPrereqs. Might be worth adding to it...


-- Original Message --
Received: Fri, 03 May 2024 11:30:22 AM EDT
From: Bruce Schuck 
To: GnuCash User Cc: Kalpesh Patel
, Fred Tydeman 
Subject: Re: [GNC] Finance::Quote PreRelease 1.61_03

> On May 2, 2024 at 23:44:53 EDT Kalpesh wrote:
> 
> > That is possible that there is no depend target in the make file. 
> > Just curious how you built/get the make file for it?
> 
> Kalpesh,
> 
> The old school method of installing Perl modules.
> 
> The makefile is created by running "perl Makefile.PL". Then one would 
> execute "make", "make test", and "make install". When I first started 
> using Perl, there was no "cpan" or "cpanm" that automated much of the 
> process. Fetching prerequisites and installing them is one of the major 
> reasons for using cpan/cpanm. It's been such a long time since I had 
> used the OG module install method that I forgot that it does not have a 
> mechanism for fetching and installing dependencies. Back in the day the 
> dependencies were typically noted in the module's README file and one 
> had to manually retrieve and install them.
> 
> This method is definitely not for Perl novices. These days it's more for 
> those who display masochistic tendencies...
> 
> Bruce S.


___
gnucash-user mailing list
gnucash-user@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.


Re: [GNC] Finance::Quote PreRelease 1.61_03

2024-05-03 Thread John Ralls


> On May 3, 2024, at 10:35 AM, Bruce Schuck  wrote:
> 
> On 5/3/24 9:58 AM, John Ralls wrote:
> 
>> It’s normal for Linux distros to package perl modules. Fedora’s is 
>> https://packages.fedoraproject.org/pkgs/perl-Finance-Quote/perl-Finance-Quote/
>> .
>> Note that there are back ports of 1.61 for Fedoras 38, 39, and 40.
> 
> John,
> 
> I am well aware of that. In this message yesterday 
> (https://lists.gnucash.org/pipermail/gnucash-user/2024-May/111771.html) I 
> suggested that Fred install perl-CPAN and also maybe perl-App-cpanminus.
> 
> What threw me is one of Fred's earlier comments where he stated
> something like "I am now able to get quotes *again*". "Again" being the
> operative word, as it sounded like he would have already had F::Q
> installed, which typically means CPAN and/or CPAN Minus is already
> installed. Or maybe I got mixed up with another response from someone else.
> 
>> Debian/Ubuntu also package F::Q 
>> https://packages.ubuntu.com/search?keywords=libfinance-quote-perl 
>> 
>> but are nowhere near as conscientious about keeping up with your
>> releases so patience won’t work for their users. Keeping out of the
>> way of the package manager is still a good practice so I think their
>> users should also point cpan at a user-space directory.
> 
> Again, not new to me. My primary desktop at home has been an Ubuntu LTS 
> release since 12.04LTS. I've been alternating between in place upgrades and 
> doing a fresh install and restoring what I need from backups. And the fresh 
> install path means I first have to install the Canonical CPAN and CPAN Minus 
> before I install the modules I use regularly. At home I go back and forth WRT 
> installing using sudo or using local::lib to install modules outside of the 
> normal @INC path. On my work macbook, I install all extra modules in 
> directories under $HOME.
> 
> I've been around Perl a *long* time. Hell, if you grab the Perl source code 
> from Git, I'm in the list of authors…

Bruce,

I didn’t mean to impugn your experience, I’m just trying to keep things clear 
for the less experienced users who read this.

Regards,
John Ralls

___
gnucash-user mailing list
gnucash-user@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.


Re: [GNC] Finance::Quote PreRelease 1.61_03

2024-05-03 Thread Bruce Schuck

On 5/3/24 9:58 AM, John Ralls wrote:

It’s normal for Linux distros to package perl modules. Fedora’s is 
https://packages.fedoraproject.org/pkgs/perl-Finance-Quote/perl-Finance-Quote/

.
Note that there are back ports of 1.61 for Fedoras 38, 39, and 40.


John,

I am well aware of that. In this message yesterday 
(https://lists.gnucash.org/pipermail/gnucash-user/2024-May/111771.html) 
I suggested that Fred install perl-CPAN and also maybe perl-App-cpanminus.


What threw me is one of Fred's earlier comments where he stated
something like "I am now able to get quotes *again*". "Again" being the
operative word, as it sounded like he would have already had F::Q
installed, which typically means CPAN and/or CPAN Minus is already
installed. Or maybe I got mixed up with another response from someone else.

Debian/Ubuntu also package F::Q 
https://packages.ubuntu.com/search?keywords=libfinance-quote-perl 


but are nowhere near as conscientious about keeping up with your
releases so patience won’t work for their users. Keeping out of the
way of the package manager is still a good practice so I think their
users should also point cpan at a user-space directory.


Again, not new to me. My primary desktop at home has been an Ubuntu LTS 
release since 12.04LTS. I've been alternating between in place upgrades 
and doing a fresh install and restoring what I need from backups. And 
the fresh install path means I first have to install the Canonical CPAN 
and CPAN Minus before I install the modules I use regularly. At home I 
go back and forth WRT installing using sudo or using local::lib to 
install modules outside of the normal @INC path. On my work macbook, I 
install all extra modules in directories under $HOME.


I've been around Perl a *long* time. Hell, if you grab the Perl source 
code from Git, I'm in the list of authors...


You're across the bay, one of these days we should meet up for a beer.

Regards,

Bruce S.
___
gnucash-user mailing list
gnucash-user@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.


Re: [GNC] Finance::Quote PreRelease 1.61_03

2024-05-03 Thread John Ralls


> On May 2, 2024, at 09:01, Bruce Schuck  wrote:
> 
>> This is Fedora Linux 40 (the most recent)
> 
> I find it odd that your system *ever* had Finance::Quote installed,

Bruce,

It’s normal for Linux distros to package perl modules. Fedora’s is 
https://packages.fedoraproject.org/pkgs/perl-Finance-Quote/perl-Finance-Quote/. 
Note that there are back ports of 1.61 for Fedoras 38, 39, and 40. 

They also package cpan as https://packages.fedoraproject.org/pkgs/perl-CPAN/.

I suggest that he best course for Fedora users who want to get ahead of their 
distro for selected perl packages is to set up cpan to install to a directory 
in $HOME and use $PERL5LIB to put it at the top of @INC. That avoids contention 
with their package manager and for the most part leaves the dependencies to the 
distro to maintain. For most users a few days of patience will get them 

Debian/Ubuntu also package F::Q 
https://packages.ubuntu.com/search?keywords=libfinance-quote-perl but are 
nowhere near as conscientious about keeping up with your releases so patience 
won’t work for their users. Keeping out of the way of the package manager is 
still a good practice so I think their users should also point cpan at a 
user-space directory.

Regards,
John Ralls
___
gnucash-user mailing list
gnucash-user@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.


Re: [GNC] Finance::Quote PreRelease 1.61_03

2024-05-03 Thread Bruce Schuck

On May 2, 2024 at 23:44:53 EDT Kalpesh wrote:

That is possible that there is no depend target in the make file. 
Just curious how you built/get the make file for it?


Kalpesh,

The old school method of installing Perl modules.

The makefile is created by running "perl Makefile.PL". Then one would 
execute "make", "make test", and "make install". When I first started 
using Perl, there was no "cpan" or "cpanm" that automated much of the 
process. Fetching prerequisites and installing them is one of the major 
reasons for using cpan/cpanm. It's been such a long time since I had 
used the OG module install method that I forgot that it does not have a 
mechanism for fetching and installing dependencies. Back in the day the 
dependencies were typically noted in the module's README file and one 
had to manually retrieve and install them.


This method is definitely not for Perl novices. These days it's more for 
those who display masochistic tendencies...


Bruce S.
___
gnucash-user mailing list
gnucash-user@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.


Re: [GNC] Finance::Quote PreRelease 1.61_03

2024-05-02 Thread Kalpesh Patel
That is possible that there is no depend target in the make file. Just curious 
how you built/get the make file for it?

 

Nonetheless as Bruce mentioned, something is amiss with your Perl install. At 
minimum, install perl-CPAN module using dnf package manager (which I believe is 
the OS package manager for Fedora). Further see 
https://www.cyberciti.biz/faq/install-perl-in-fedora-linux-using-dnf-command/ 
to understand how-to install Perl correctly and then 
https://packages.fedoraproject.org/pkgs/perl-CPAN/perl-CPAN/ to review the 
perl-CPAN installation information.

 

Hope this helps.

 

From: Fred Tydeman  
Sent: Thursday, May 02, 2024 11:40 AM
To: Kalpesh Patel 
Cc: Bruce Schuck ; GnuCash User 

Subject: Re: [GNC] Finance::Quote PreRelease 1.61_03

 

make depend

fails (as there is no 'depend' target in the makefile).

 

On Thu, May 2, 2024 at 6:16 AM Kalpesh Patel mailto:kalpesh.pa...@usa.net> > wrote:

If you are installing it into the system installed perl, which most likely you 
are doing so with a su switch user utility, then correct way to do so would be 
to:

# sudo su -
# cd 
# make depend
# make
# make test
# make install
# make clean

___
gnucash-user mailing list
gnucash-user@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.


Re: [GNC] Finance::Quote PreRelease 1.61_03

2024-05-02 Thread Bruce Schuck

On Apr 30, 2024 at 22:59:34 EDT I wrote:

A new module for US traded stocks, StockData.pm, with default method 
"stockdata". This requires an API token from 
https://www.stockdata.org/. If passed in as an environment variable,
set "STOCKDATA_API_KEY" to your token. Once installed "perldoc 
Finance::Quote::StockData" will display more information.
Well that sucks. I originally tested this module this past Sunday. And 
since the US markets are closed weekends, getting data as of COB Friday 
was okay. Testing this week, I've come to find out that their data is at 
least one day old! If you query their API anytime during market business 
hours tomorrow, the data will be as of COB Wednesday 5/1. This is what 
is returns now (19:30PDT 5/2). Sometime after the markets close the data 
from StockData.org will then reflect COB today... 


Their title page does say, "Free Real-time, Intraday, Historical Stock 
Data API". I have attempted to send email and fill out their online 
contact form. No response in 2 days so far.


I'm thinking no one wants a data source that while seemingly dependable, 
is not current data.


Short version, if you've tried the 'stockdata' method and found the data 
to be wrong, please don't bother opening an issue. It's not F::Q or 
GnuCash, it's the source data.


Bruce S.
___
gnucash-user mailing list
gnucash-user@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.


Re: [GNC] Finance::Quote PreRelease 1.61_03

2024-05-02 Thread Bruce Schuck

On 5/2/24 8:38 AM, Fred Tydeman wrote:


perl -MCPAN -e shell
gets
Can't locate CPAN.pm



This is Fedora Linux 40 (the most recent)


I find it odd that your system *ever* had Finance::Quote installed, as 
the GnuCash utility to install the F::Q module depends on CPAN. Which 
also explains why the module ExtUtils::MakeMaker didn't exist since I 
believe it is a dependency of CPAN.


You should probably install perl-CPAN (this should give you the "cpan" 
executable) and perl-App-cpanminus (this should supply the "cpanm" 
excutable). I haven't used a Fedora system in ages, so I'm not sure if 
those are available from the standard Fedora repos, or if you need to 
add the EPEL repository.


Bruce S.
___
gnucash-user mailing list
gnucash-user@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.


Re: [GNC] Finance::Quote PreRelease 1.61_03

2024-05-02 Thread Fred Tydeman
make depend
fails (as there is no 'depend' target in the makefile).

On Thu, May 2, 2024 at 6:16 AM Kalpesh Patel  wrote:

> If you are installing it into the system installed perl, which most likely
> you are doing so with a su switch user utility, then correct way to do so
> would be to:
>
> # sudo su -
> # cd 
> # make depend
> # make
> # make test
> # make install
> # make clean
>
>
___
gnucash-user mailing list
gnucash-user@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.


Re: [GNC] Finance::Quote PreRelease 1.61_03

2024-05-02 Thread Fred Tydeman
perl -MCPAN -e shell
gets
Can't locate CPAN.pm

This is Fedora Linux 40 (the most recent)

perl -v
gets 5.38.2

dnf list perl*CPAN*
gets lots of hits (so it is available).


On Thu, May 2, 2024 at 6:04 AM Kalpesh Patel  wrote:

> "Gets nothing on my linux." sounds like those modules have not been
> initialized as your system is NOT running in an "island" configuration
> since sudo make install works. This might possibly be an outbound firewall
> issue although if wget and/or curl works then not.
>
> Run following:
> perl -MCPAN -e shell
>
> to see if you get 'cpan>' prompt. If not then most likely CPAN module is
> not installed on your system which would be unusual as it comes with modern
> perl. Not sure which type of Linux you are running but generally if a Perl
> library is named Foo::Bar on CPAN (CPAN is named CPAN), the Debian/Ubuntu
> package will be named libfoo-bar-perl and for Fedora/Redhat it will be
> named perl-Foo-Bar.
>
> If you have cpan modules installed then it is a good idea to initialize it
> by executing 'o conf commit' at CPAN shell prompt of 'cpan>'.
>
> -Original Message-
> From: Fred Tydeman 
> Sent: Wednesday, May 01, 2024 11:50 PM
> To: Bruce Schuck 
> Cc: GnuCash User 
> Subject: Re: [GNC] Finance::Quote PreRelease 1.61_03
>
> Running: sudo make install
> worked.  I was able to get stock quotes again.  So thank you.
>
> Trying:
>   cpan
>   cpanm
>   locate cpan
> Gets nothing on my linux.
>
>   dnf list cpan*
> gets: cpanspec.noarch
>
>
> On Wed, May 1, 2024 at 8:07 PM Bruce Schuck 
> wrote:
>
> > On 5/1/24 7:39 PM, Fred Tydeman wrote:
> >
> > > On my Linux systems, after some searching, I found that I needed:
> > > dnf install perl-ExtUtils-MakeMake* to get me started. Running perl
> > > Makefile.PL got me several warnings of other missing perl files.
> > > After doing a bunch of dnf install perl-... for them, 'make' and
> > > 'make test' ran But, 'make install' failed due to permission issues.
> > > Does it need 'su' to do the install?
> >
> > People not familiar with the "manual" method of installing should use
> > cpan or cpanm. To install an interim release
> >
> > "cpanm BPSCHUCK/Finance-Quote-1.61_03.tar.gz" or "cpan
> > BPSCHUCK/Finance-Quote-1.61_03.tar.gz".
> >
> > Depending how cpan(m) is configured, super user permissions may or may
> > not be required. Typically when running cpan or cpanm, the install
> > process will ask for the user's sudo password to install modules.
> >
> > When I would install using the "perl Makefile.PL; make; make test;
> > make install" steps, I would become root or use sudo to execute "make
> > install". But again, most people should utilize cpan or cpanm. The
> > install tool provided by GnuCash utilizes CPAN.
> >
> > There is a brief overview of installing modules at
> > https://www.cpan.org/modules/INSTALL.html which doesn't mention the
> > legacy "perl Makefile.PL" method. As I mentioned in my post though,
> > "For those who are comfortable with the interim releases". Comfortable
> > being the operative word.
> >
> > Bruce S
> >
>
>
___
gnucash-user mailing list
gnucash-user@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.


Re: [GNC] Finance::Quote PreRelease 1.61_03

2024-05-02 Thread Kalpesh Patel
If you are installing it into the system installed perl, which most likely you 
are doing so with a su switch user utility, then correct way to do so would be 
to:

# sudo su -
# cd 
# make depend
# make
# make test
# make install
# make clean

(space and then followed by a dash is important on the first command).

-Original Message-
From: Fred Tydeman  
Sent: Wednesday, May 01, 2024 10:39 PM
To: Bruce Schuck 
Cc: GnuCash User 
Subject: Re: [GNC] Finance::Quote PreRelease 1.61_03

On my Linux systems, after some searching, I found that I needed:
  dnf install perl-ExtUtils-MakeMake*
to get me started.
Running perl Makefile.PL
got me several warnings of other missing perl files.
After doing a bunch of dnf install perl-... for them, 'make' and 'make test' 
ran But, 'make install' failed due to permission issues.
Does it need 'su' to do the install?



On Wed, May 1, 2024 at 7:09 PM Fred Tydeman  wrote:

> I am running Fedora Linux 26
> I downloaded the Finance::Quote.
> When I run:  perl Maklefile.pl
> I get:  Can't locate ExtUtils/MakeMaker.pm So, can you point me to 
> more complete documentation?
>
> On Tue, Apr 30, 2024 at 8:00 PM Bruce Schuck 
> 
> wrote:
>
>> A few more fixes and additions to Finance::Quote. For those who are 
>> comfortable with the interim releases, 1.61_03 has been uploaded to CPAN.
>>
>>
>> https://www.cpan.org/modules/by-authors/id/B/BP/BPSCHUCK/Finance-Quot
>> e-1.61_03.tar.gz
>>
>> Or just "BPSCHUCK/Finance-Quote-1.61_03.tar.gz" when installing via 
>> "cpan" or "cpanm".
>>
>> The Fool.pm module has been fixed (but like Yahoo, who knows for how 
>> long?), method "fool". For the time being, only returns data for 
>> securities on NYSE, Nasdaq, and OTC exchanges.
>>
>> A new module for US traded stocks, StockData.pm, with default method 
>> "stockdata". This requires an API token from https://www.stockdata.org/.
>> If passed in as an environment variable, set "STOCKDATA_API_KEY" to 
>> your token. Once installed "perldoc Finance::Quote::StockData" will 
>> display more information.
>>
>> I also discovered that the TwelveData module was not working because 
>> the method "twelvedata" was not returning a value for price or last. 
>> This is another module that requires an API, this one from 
>> https://twelvedata.com/. Set environment variable "TWELVEDATA_API_KEY"
>> to your token. Once installed "perldoc Finance::Quote::TwelveData" 
>> will display more information.
>>
>> Regards,
>>
>> Bruce S.
>> ___
>> gnucash-user mailing list
>> gnucash-user@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.
>>
>


___
gnucash-user mailing list
gnucash-user@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.


Re: [GNC] Finance::Quote PreRelease 1.61_03

2024-05-02 Thread Kalpesh Patel
"Gets nothing on my linux." sounds like those modules have not been initialized 
as your system is NOT running in an "island" configuration since sudo make 
install works. This might possibly be an outbound firewall issue although if 
wget and/or curl works then not.

Run following:
perl -MCPAN -e shell

to see if you get 'cpan>' prompt. If not then most likely CPAN module is not 
installed on your system which would be unusual as it comes with modern perl. 
Not sure which type of Linux you are running but generally if a Perl library is 
named Foo::Bar on CPAN (CPAN is named CPAN), the Debian/Ubuntu package will be 
named libfoo-bar-perl and for Fedora/Redhat it will be named perl-Foo-Bar.

If you have cpan modules installed then it is a good idea to initialize it by 
executing 'o conf commit' at CPAN shell prompt of 'cpan>'.

-Original Message-
From: Fred Tydeman  
Sent: Wednesday, May 01, 2024 11:50 PM
To: Bruce Schuck 
Cc: GnuCash User 
Subject: Re: [GNC] Finance::Quote PreRelease 1.61_03

Running: sudo make install
worked.  I was able to get stock quotes again.  So thank you.

Trying:
  cpan
  cpanm
  locate cpan
Gets nothing on my linux.

  dnf list cpan*
gets: cpanspec.noarch


On Wed, May 1, 2024 at 8:07 PM Bruce Schuck 
wrote:

> On 5/1/24 7:39 PM, Fred Tydeman wrote:
>
> > On my Linux systems, after some searching, I found that I needed: 
> > dnf install perl-ExtUtils-MakeMake* to get me started. Running perl 
> > Makefile.PL got me several warnings of other missing perl files.
> > After doing a bunch of dnf install perl-... for them, 'make' and 
> > 'make test' ran But, 'make install' failed due to permission issues.
> > Does it need 'su' to do the install?
>
> People not familiar with the "manual" method of installing should use 
> cpan or cpanm. To install an interim release
>
> "cpanm BPSCHUCK/Finance-Quote-1.61_03.tar.gz" or "cpan 
> BPSCHUCK/Finance-Quote-1.61_03.tar.gz".
>
> Depending how cpan(m) is configured, super user permissions may or may 
> not be required. Typically when running cpan or cpanm, the install 
> process will ask for the user's sudo password to install modules.
>
> When I would install using the "perl Makefile.PL; make; make test; 
> make install" steps, I would become root or use sudo to execute "make 
> install". But again, most people should utilize cpan or cpanm. The 
> install tool provided by GnuCash utilizes CPAN.
>
> There is a brief overview of installing modules at 
> https://www.cpan.org/modules/INSTALL.html which doesn't mention the 
> legacy "perl Makefile.PL" method. As I mentioned in my post though, 
> "For those who are comfortable with the interim releases". Comfortable 
> being the operative word.
>
> Bruce S
>

___
gnucash-user mailing list
gnucash-user@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.


Re: [GNC] Finance::Quote PreRelease 1.61_03

2024-05-01 Thread Fred Tydeman
Running: sudo make install
worked.  I was able to get stock quotes again.  So thank you.

Trying:
  cpan
  cpanm
  locate cpan
Gets nothing on my linux.

  dnf list cpan*
gets: cpanspec.noarch


On Wed, May 1, 2024 at 8:07 PM Bruce Schuck 
wrote:

> On 5/1/24 7:39 PM, Fred Tydeman wrote:
>
> > On my Linux systems, after some searching, I found that I needed: dnf
> > install perl-ExtUtils-MakeMake* to get me started. Running perl
> > Makefile.PL got me several warnings of other missing perl files.
> > After doing a bunch of dnf install perl-... for them, 'make' and
> > 'make test' ran But, 'make install' failed due to permission issues.
> > Does it need 'su' to do the install?
>
> People not familiar with the "manual" method of installing should use
> cpan or cpanm. To install an interim release
>
> "cpanm BPSCHUCK/Finance-Quote-1.61_03.tar.gz" or "cpan
> BPSCHUCK/Finance-Quote-1.61_03.tar.gz".
>
> Depending how cpan(m) is configured, super user permissions may or may
> not be required. Typically when running cpan or cpanm, the install
> process will ask for the user's sudo password to install modules.
>
> When I would install using the "perl Makefile.PL; make; make test; make
> install" steps, I would become root or use sudo to execute "make
> install". But again, most people should utilize cpan or cpanm. The
> install tool provided by GnuCash utilizes CPAN.
>
> There is a brief overview of installing modules at
> https://www.cpan.org/modules/INSTALL.html which doesn't mention the
> legacy "perl Makefile.PL" method. As I mentioned in my post though, "For
> those who are comfortable with the interim releases". Comfortable being
> the operative word.
>
> Bruce S
>
___
gnucash-user mailing list
gnucash-user@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.


Re: [GNC] Finance::Quote PreRelease 1.61_03

2024-05-01 Thread Bruce Schuck

On 5/1/24 7:39 PM, Fred Tydeman wrote:


On my Linux systems, after some searching, I found that I needed: dnf
install perl-ExtUtils-MakeMake* to get me started. Running perl 
Makefile.PL got me several warnings of other missing perl files. 
After doing a bunch of dnf install perl-... for them, 'make' and 
'make test' ran But, 'make install' failed due to permission issues. 
Does it need 'su' to do the install?


People not familiar with the "manual" method of installing should use
cpan or cpanm. To install an interim release

"cpanm BPSCHUCK/Finance-Quote-1.61_03.tar.gz" or "cpan
BPSCHUCK/Finance-Quote-1.61_03.tar.gz".

Depending how cpan(m) is configured, super user permissions may or may
not be required. Typically when running cpan or cpanm, the install
process will ask for the user's sudo password to install modules.

When I would install using the "perl Makefile.PL; make; make test; make
install" steps, I would become root or use sudo to execute "make
install". But again, most people should utilize cpan or cpanm. The
install tool provided by GnuCash utilizes CPAN.

There is a brief overview of installing modules at
https://www.cpan.org/modules/INSTALL.html which doesn't mention the
legacy "perl Makefile.PL" method. As I mentioned in my post though, "For 
those who are comfortable with the interim releases". Comfortable being 
the operative word.


Bruce S
___
gnucash-user mailing list
gnucash-user@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.


Re: [GNC] Finance::Quote PreRelease 1.61_03

2024-05-01 Thread Fred Tydeman
On my Linux systems, after some searching, I found that I needed:
  dnf install perl-ExtUtils-MakeMake*
to get me started.
Running perl Makefile.PL
got me several warnings of other missing perl files.
After doing a bunch of dnf install perl-... for them,
'make' and
'make test' ran
But, 'make install' failed due to permission issues.
Does it need 'su' to do the install?



On Wed, May 1, 2024 at 7:09 PM Fred Tydeman  wrote:

> I am running Fedora Linux 26
> I downloaded the Finance::Quote.
> When I run:  perl Maklefile.pl
> I get:  Can't locate ExtUtils/MakeMaker.pm
> So, can you point me to more complete documentation?
>
> On Tue, Apr 30, 2024 at 8:00 PM Bruce Schuck 
> wrote:
>
>> A few more fixes and additions to Finance::Quote. For those who are
>> comfortable with the interim releases, 1.61_03 has been uploaded to CPAN.
>>
>>
>> https://www.cpan.org/modules/by-authors/id/B/BP/BPSCHUCK/Finance-Quote-1.61_03.tar.gz
>>
>> Or just "BPSCHUCK/Finance-Quote-1.61_03.tar.gz" when installing via
>> "cpan" or "cpanm".
>>
>> The Fool.pm module has been fixed (but like Yahoo, who knows for how
>> long?), method "fool". For the time being, only returns data for
>> securities on NYSE, Nasdaq, and OTC exchanges.
>>
>> A new module for US traded stocks, StockData.pm, with default method
>> "stockdata". This requires an API token from https://www.stockdata.org/.
>> If passed in as an environment variable, set "STOCKDATA_API_KEY" to your
>> token. Once installed "perldoc Finance::Quote::StockData" will display
>> more information.
>>
>> I also discovered that the TwelveData module was not working because the
>> method "twelvedata" was not returning a value for price or last. This is
>> another module that requires an API, this one from
>> https://twelvedata.com/. Set environment variable "TWELVEDATA_API_KEY"
>> to your token. Once installed "perldoc Finance::Quote::TwelveData" will
>> display more information.
>>
>> Regards,
>>
>> Bruce S.
>> ___
>> gnucash-user mailing list
>> gnucash-user@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.
>>
>
___
gnucash-user mailing list
gnucash-user@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.


Re: [GNC] Finance::Quote PreRelease 1.61_03

2024-05-01 Thread Fred Tydeman
I am running Fedora Linux 26
I downloaded the Finance::Quote.
When I run:  perl Maklefile.pl
I get:  Can't locate ExtUtils/MakeMaker.pm
So, can you point me to more complete documentation?

On Tue, Apr 30, 2024 at 8:00 PM Bruce Schuck 
wrote:

> A few more fixes and additions to Finance::Quote. For those who are
> comfortable with the interim releases, 1.61_03 has been uploaded to CPAN.
>
>
> https://www.cpan.org/modules/by-authors/id/B/BP/BPSCHUCK/Finance-Quote-1.61_03.tar.gz
>
> Or just "BPSCHUCK/Finance-Quote-1.61_03.tar.gz" when installing via
> "cpan" or "cpanm".
>
> The Fool.pm module has been fixed (but like Yahoo, who knows for how
> long?), method "fool". For the time being, only returns data for
> securities on NYSE, Nasdaq, and OTC exchanges.
>
> A new module for US traded stocks, StockData.pm, with default method
> "stockdata". This requires an API token from https://www.stockdata.org/.
> If passed in as an environment variable, set "STOCKDATA_API_KEY" to your
> token. Once installed "perldoc Finance::Quote::StockData" will display
> more information.
>
> I also discovered that the TwelveData module was not working because the
> method "twelvedata" was not returning a value for price or last. This is
> another module that requires an API, this one from
> https://twelvedata.com/. Set environment variable "TWELVEDATA_API_KEY"
> to your token. Once installed "perldoc Finance::Quote::TwelveData" will
> display more information.
>
> Regards,
>
> Bruce S.
> ___
> gnucash-user mailing list
> gnucash-user@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.
>
___
gnucash-user mailing list
gnucash-user@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.


Re: [GNC] Finance::Quote PreRelease 1.61_03

2024-05-01 Thread Bruce Schuck

On 5/1/24 7:25 AM PDT, Fred Tydeman wrote:


Can I apply this update to my older 4.14 Gnucash system on Linux?


Yes, recent and current releases of Finance::Quote are backwards 
compatible WRT to GnuCash. As a matter of fact I run GnuCash 4.8 on my 
primary Linux desktop at home and 4.8 on my OSX Catalina Macbook.


On 5/1/24 6:32 AM PDT, Fross, Michael wrote:

> Thanks Bruce.  I love the fact that you release updates as you and the
> team make fixes, and not wait for a larger rollup.  Much appreciated.

On 5/1/24 7:17 AM PDT, James Williams wrote:

> Thank-you for all your hard work on this, Bruce!

Much appreciated. I hope to get F::Q v1.62 done and uploaded to CPAN by 
the end of next week (May 11 or 12 give or take a couple days).


Bruce S.
___
gnucash-user mailing list
gnucash-user@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.


Re: [GNC] Finance::Quote PreRelease 1.61_03

2024-05-01 Thread Fred Tydeman
Can I apply this update to my older 4.14 Gnucash system on Linux?

On Tue, Apr 30, 2024 at 8:00 PM Bruce Schuck 
wrote:

> A few more fixes and additions to Finance::Quote. For those who are
> comfortable with the interim releases, 1.61_03 has been uploaded to CPAN.
>
>
> https://www.cpan.org/modules/by-authors/id/B/BP/BPSCHUCK/Finance-Quote-1.61_03.tar.gz
>
> Or just "BPSCHUCK/Finance-Quote-1.61_03.tar.gz" when installing via
> "cpan" or "cpanm".
>
> The Fool.pm module has been fixed (but like Yahoo, who knows for how
> long?), method "fool". For the time being, only returns data for
> securities on NYSE, Nasdaq, and OTC exchanges.
>
> A new module for US traded stocks, StockData.pm, with default method
> "stockdata". This requires an API token from https://www.stockdata.org/.
> If passed in as an environment variable, set "STOCKDATA_API_KEY" to your
> token. Once installed "perldoc Finance::Quote::StockData" will display
> more information.
>
> I also discovered that the TwelveData module was not working because the
> method "twelvedata" was not returning a value for price or last. This is
> another module that requires an API, this one from
> https://twelvedata.com/. Set environment variable "TWELVEDATA_API_KEY"
> to your token. Once installed "perldoc Finance::Quote::TwelveData" will
> display more information.
>
> Regards,
>
> Bruce S.
> ___
> gnucash-user mailing list
> gnucash-user@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.
>
___
gnucash-user mailing list
gnucash-user@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.


Re: [GNC] Finance::Quote PreRelease 1.61_03

2024-05-01 Thread James Williams
 Thank-you for all your hard work on this, Bruce!

On Apr 30, 2024 at 7:59:34 PM, Bruce Schuck 
wrote:

> A few more fixes and additions to Finance::Quote. For those who are
> comfortable with the interim releases, 1.61_03 has been uploaded to CPAN.
>
___
gnucash-user mailing list
gnucash-user@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.


Re: [GNC] Finance::Quote PreRelease 1.61_03

2024-05-01 Thread Fross, Michael via gnucash-user
Thanks Bruce.  I love the fact that you release updates as you and the team
make fixes, and not wait for a larger rollup.  Much appreciated.

On Tue, Apr 30, 2024 at 10:00 PM Bruce Schuck 
wrote:

> A few more fixes and additions to Finance::Quote. For those who are
> comfortable with the interim releases, 1.61_03 has been uploaded to CPAN.
>
>
> https://www.cpan.org/modules/by-authors/id/B/BP/BPSCHUCK/Finance-Quote-1.61_03.tar.gz
>
> Or just "BPSCHUCK/Finance-Quote-1.61_03.tar.gz" when installing via
> "cpan" or "cpanm".
>
> The Fool.pm module has been fixed (but like Yahoo, who knows for how
> long?), method "fool". For the time being, only returns data for
> securities on NYSE, Nasdaq, and OTC exchanges.
>
> A new module for US traded stocks, StockData.pm, with default method
> "stockdata". This requires an API token from https://www.stockdata.org/.
> If passed in as an environment variable, set "STOCKDATA_API_KEY" to your
> token. Once installed "perldoc Finance::Quote::StockData" will display
> more information.
>
> I also discovered that the TwelveData module was not working because the
> method "twelvedata" was not returning a value for price or last. This is
> another module that requires an API, this one from
> https://twelvedata.com/. Set environment variable "TWELVEDATA_API_KEY"
> to your token. Once installed "perldoc Finance::Quote::TwelveData" will
> display more information.
>
> Regards,
>
> Bruce S.
> ___
> gnucash-user mailing list
> gnucash-user@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.
>
___
gnucash-user mailing list
gnucash-user@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.


[GNC] Finance::Quote PreRelease 1.61_03

2024-04-30 Thread Bruce Schuck
A few more fixes and additions to Finance::Quote. For those who are 
comfortable with the interim releases, 1.61_03 has been uploaded to CPAN.


https://www.cpan.org/modules/by-authors/id/B/BP/BPSCHUCK/Finance-Quote-1.61_03.tar.gz

Or just "BPSCHUCK/Finance-Quote-1.61_03.tar.gz" when installing via 
"cpan" or "cpanm".


The Fool.pm module has been fixed (but like Yahoo, who knows for how 
long?), method "fool". For the time being, only returns data for 
securities on NYSE, Nasdaq, and OTC exchanges.


A new module for US traded stocks, StockData.pm, with default method 
"stockdata". This requires an API token from https://www.stockdata.org/. 
If passed in as an environment variable, set "STOCKDATA_API_KEY" to your 
token. Once installed "perldoc Finance::Quote::StockData" will display 
more information.


I also discovered that the TwelveData module was not working because the 
method "twelvedata" was not returning a value for price or last. This is 
another module that requires an API, this one from 
https://twelvedata.com/. Set environment variable "TWELVEDATA_API_KEY" 
to your token. Once installed "perldoc Finance::Quote::TwelveData" will 
display more information.


Regards,

Bruce S.
___
gnucash-user mailing list
gnucash-user@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.