Still one problem (perhaps better handled on the F::Q mailing list):
My main reason for wanting to update F::Q is that I saw that SIX.pm had been updated.

However, in GC (flatpak) 5.3+ with the updates to the PM scripts mentioned below, the Securities Editor still shows the obsolete SIXfunds and SIXshares as sources and no SIX. Furthermore. both SIXfunds and SIXshares are greyed out.

According to GitHub (https://github.com/finance-quote/finance-quote/commit/19962d29985549bfefef89891670dafb93e87f27) SIXfunds.pm and SIXshares.pm were merged into SIX.pm as of 19 Nov., 2020.

What do I need to do to get rid of the obsolete entries and get access to SIX as a source of securities pricing?

On 18.08.23 18:16, rsbrux wrote:
Spot on! Deleted the two lines, now working as expected.
Many thanks!

-----Original Message-----
From: John Ralls <jra...@ceridwen.us>
Sent: Thursday, August 17, 2023 11:23 PM
To: rsbrux <rsb...@yahoo.com>
Subject: Re: [GNC] Update F::Q in flatpak GC?

I meant go back to the 1.56 version of IndiaMutual.pm, leaving everything
else in place.

You don't need to delete it, just remove the two lines in Quote.pm that
refer to it.

Regards,
John Ralls



On Aug 17, 2023, at 12:21 PM, rsbrux <rsb...@yahoo.com> wrote:

I don’t need IndiaMutual.pm, but I don’t want to go back to 1.56 because I
would like to try out the updated version of six.pm.  Can I just delete
IndaiMutual.pm?

Sent from my iPad

On 17 Aug 2023, at 19:30, john <jra...@ceridwen.us> wrote:

IndiaMutual.pm has a new perl dependency IO::String
(https://metacpan.org/pod/IO::String) as of F::Q 1.57. That dependency is
in the nightlies but not the release flatpak. It's pure perl and has no
dependencies so you have a couple of ways forward:

* Get the source code (there are links in the sidebar on the left on
the IO::String page) and install it in the flatpak's perl directory
as IO/String.pm
* Install a recent nightly build and apply the F::Q update to that
* If you don't need the IndiaMutual module you can restore the 1.56
version that doesn't need IO::String.

Regards,
John Ralls


On Aug 17, 2023, at 01:59, rsbrux <rsb...@yahoo.com> wrote:

Thanks for the further tips.  I was unable to find gnucash.trace in
either /tmp or /var/tmp (or their subdirectories.  Before trying to pipe
the logs to the console as described in
https://wiki.gnucash.org/wiki/Flatpak#Getting_Console_Output, I tried
running the quote retrieval from the command line, as you suggested.
This resulted in the following error message:

Price retrieval failed: Finance::Quote check returned error Can't
locate IO/String.pm in @INC (you may need to install the IO::String
module) (@INC contains: /app/lib/perl5/site_perl/5.32.0/x86_64-linux
/ap
p/lib/perl5/site_perl/5.32.0 /app/lib/perl5/5.32.0/x86_64-linux
/app/lib/perl5/5.32.0) at /app/lib/perl
5/site_perl/5.32.0/Finance/Quote/IndiaMutual.pm line 33.
BEGIN failed--compilation aborted at
/app/lib/perl5/site_perl/5.32.0/Finance/Quote/IndiaMutual.pm line 33.
Compilation failed in require at
/app/lib/perl5/site_perl/5.32.0/Module/Load.pm line 78.
Can't locate Finance/Quote/IndiaMutual in @INC (@INC contains:
/app/lib/perl5/site_perl/5.32.0/x86_64-l
inux /app/lib/perl5/site_perl/5.32.0
/app/lib/perl5/5.32.0/x86_64-linux /app/lib/perl5/5.32.0) at /app/
lib/perl5/site_perl/5.32.0/Module/Load.pm line 78.
at /app/bin/finance-quote-wrapper line 113.
Attempt to reload Finance/Quote/IndiaMutual.pm aborted.
Compilation failed in require at
/app/lib/perl5/site_perl/5.32.0/Module/Load.pm line 78.
Can't locate Finance/Quote/IndiaMutual in @INC (@INC contains:
/app/lib/perl5/site_perl/5.32.0/x86_64-l
inux /app/lib/perl5/site_perl/5.32.0
/app/lib/perl5/5.32.0/x86_64-linux /app/lib/perl5/5.32.0) at /app/
lib/perl5/site_perl/5.32.0/Module/Load.pm line 78.
at /app/bin/finance-quote-wrapper line 114.

<<

This suggests to me that the changes in the pm scripts depend on changes
in the actual program code.

Can I just copy the entire tarball extract into
/var/lib/flatpak/app/org.gnucash.GnuCash/current/active/, or do I need
to limit what I copy or keep any residual files in that directory tree?

Thanks for your support!

On 15.08.23 19:19, john wrote:
Look in the tracefile (https://wiki.gnucash.org/wiki/Tracefile) or run
`gnucash-cli -Q info` (see
https://wiki.gnucash.org/wiki/Flatpak#Using_Command_Line_Tools for how
to run that from a flatpak) to see what the errors are.

Regards,
John Ralls


On Aug 15, 2023, at 08:26, rsbrux <rsb...@yahoo.com> wrote:

Now that I copied over the Quote directory and the Quote.pm script in
/var/lib/flatpak/app/org.gnucash.GnuCash/current/active/files/lib/perl5/site_perl/5.32.0/Finance/
with the files from the 1.58 release package, the "Get Quotes" button
in the Price Database tool is disabled. I already gave universal
execute privileges to  all of the newly copied files (and directory).
What else might be the cause?

On 15.08.23 14:51, rsbrux wrote:
Sorry, dumb question.  I found the tarball here:
https://sourceforge.net/projects/finance-quote/

On 15.08.23 14:48, rsbrux wrote:
Thanks for the tip, but I'm not sure I'm getting the right source.

https://github.com/finance-quote/finance-quote offers a zip download
of the code from master.  Is this the 1.58 release code or the
current development version?  If the latter, where should I be
looking for the release?

On 14.08.23 18:58, john wrote:
On Aug 14, 2023, at 04:33, rsbrux via gnucash-user
<gnucash-user@gnucash.org> wrote:

I am running GC 5.3+ as a flatpak under Ubuntu  Studio 22.04 LTS.

The included F::Q version is 1..56, which I have modified with the
Yahoo as JSON patch already published to this mailing list.

However, it looks as though the current F::Q release, 1.58,
includes quite a few fixes for various sources.

The last I heard,  it wasn't possible to update F::Q within a
flatpak installation of GC.  Is that still the case?

If so, when can a flatpak update of GC containing F::Q 1.58 be
expected?

If not, how can I update F::Q within my flatpak installation?
The update will be available when someone (probably I) have time to
update the F::Q module in gnucash-on-flatpak. That update will be
immediately available in nightly builds; it won't be available on
Flathub until the regular release at the end of September.

It's not possible to use CPAN, and consequently gnc-fq-update, in
the flatpak, but you can do it manually similarly to the way you
applied the yahoo_json patch: Download and untar the release
tarball or clone the repo then copy Quote.pm and the contents of
Quote/ into the right places in your flatpak.

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.

Reply via email to