RSBrux:

I use a Mac, not a Flatpak on Linux, but one detail of this thread caught my eye. You say, "for the one [file named AlphaVantage.pm]  in my Flatpak installation". On the Mac, Finance::Quote installs not one, but two files named AlphaVantage.pm . When I run the "find" command below, I get two results:

/Library/Perl/5.30/Finance/Quote/AlphaVantage.pm
/Library/Perl/5.30/Finance/Quote/CurrencyRates/AlphaVantage.pm

It is the second file, within the directory CurrencyRates/, which must be updated. Does Flatpack contain two such files? Did you update the correct one?

The first file was 12527 bytes, the second (inside CurrencyRates/) is 3938 bytes as updated.

Now the situation may be different on Flatpak, in which case this comment is of no use to you. My apologies.

Best regards,
    —Jim DeLaHunt

On 2022-09-27 13:02, rsbrux via gnucash-user wrote:
Unfortunately, this didn’t wotk for me.  After substituting the version of 
AlphaVantage.pm linked below for the one in my Flatpak installation, “Get 
Quotes” was completely disabled.  I suspect that I don’t have the correct file, 
because the new version is much smaller than the original AlphaVantage.pm fron 
F::Q 1.49.

Sent from my iPad

On 27 Sep 2022, at 03:28, Murugan Muruganandam <m.muruganan...@hotmail.com> 
wrote:


Geoff

thanks so much, it works perfectly for me in windows, i replaced the 
AlphaVantage.pm file with the FX_Daily code





Saludos Cordiales



Murugan

From: gnucash-user <gnucash-user-bounces+m.muruganandam=hotmail....@gnucash.org> on 
behalf of Geoff <cleanoutmys...@gmail.com>
Sent: Monday, September 26, 2022 9:48 PM
To: rsbrux <rsb...@yahoo.com>; gnucash-user@gnucash.org 
<gnucash-user@gnucash.org>
Subject: Re: [GNC] Finance::Quote in GC 4.11 Flatpak
CAVEAT:- I am not familiar with FlatPak.

1. See 3b.

2. I personally have no idea, but discussion on the pull request you
cited says YES.

3a.
https://raw.githubusercontent.com/shirayu/finance-quote/9aee4b6d06da8a0e689b751d0e926160fb99d71b/lib/Finance/Quote/CurrencyRates/AlphaVantage.pm

3b.  Follow these steps to locate and replace your current
AlphaVantage.pm file:-

3b.1  Save the file from 3a (plain text) as AlphaVantage.pm in a
temporary location.

3b.2  Find the current copy of AlphaVantage.pm on your machine - run
something like this command:
    sudo find / -name AlphaVantage.pm -print

3b.3  Rename the current copy of AlphaVantage.pm in that location to
something like AlphaVantage.pm.BACKUP

3b.4   Copy the AlphaVantage.pm file from 3b.1 to that location.

4.  If the above makes things worse, simply delete the new file and
rename the backup file.

Good luck!

Geoff
=====


On 27/09/2022 1:43 am, rsbrux via gnucash-user wrote:
I have installed my free AlphaVantage API key in /etc/environment, but when I try to "Get 
Quotes", I get the well-known message "Unable to retrieve quotes for these items:, 
CURRENCY:  ...".  I presume that this is due to the problem reported on the page 
https://wiki.gnucash.org/wiki/Online_Quotes#Source_Alphavantage.2C_US:

GnuCash stopped being able to retrieve currency exchange rates using a free 
AlphaVantage API key from about Aug 15 2022 because AlphaVantage made the 
method F::Q used to obtain exchange rates unavailable for free API keys.

F::Q has been modified to work with free API keys and the fix should be 
available in the next F::Q version (1.53).
<<

By running "gnc-fq-check" in a console running "flatpak run --command=sh org.gnucash.GnuCash" I found that the F::Q version in my 
Flatpak installation is 1.49.  Obviously, I would like to update F::Q to version 1.53.   I tried running "gnc-fq-update" from within 
"flatpak run --command=sh org.gnucash.GnuCash", but it fails from a normal account (presumably due to inadequate priveleges), and "sudo 
flatpak run --command=sh org.gnucash.GnuCash" doesn't work either, nor does running "flatpak run --command=sh org.gnucash.GnuCash" after 
having used "su <adminname>" to invoke it with higher privileges.

1. How can I update F::Q in my Flatpak installation?

2. Will this solve the problem? V1.53 isn't listed in either SourceForge or 
metacpan.

3. I looked at the workaround 
(https://github.com/finance-quote/finance-quote/pull/230), but it isn't clear 
to me:

a. How to obtain the updated AlphaVantage.pm from github pull #230?

b. How to apply it to the flatpak environment?

_______________________________________________
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.
_______________________________________________
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.

Reply via email to