Hi Richard

If you trawl through the mailing lists you might find some flatpak related solutions.

For example "gnucash finance quote not installed properly":-

https://lists.gnucash.org/pipermail/gnucash-user/2021-March/095643.html

Good luck!

Geoff
=====

On 30/06/2022 7:56 pm, Richard Spinney wrote:
Apologies for the spam - just trying to make the necessary info visible.

So I have found a separate perl executable bundled with the Flatpak installation. The issue now appears to be that I can't run the update script with it as these executables are designed to be run independently of Flatpak.

I.e. in this bundled folder is "perl", "gnucash", "gnucash-cli", "gnc-fq-dump" etc.

But I can't "run" any of them - I get a runtime linking error. I was able to run the gnc-fq-* scripts as I was invoking my system version of perl to do so. I open the gnucash GUI itself with the entry to the flatpak, "org.gnucash.GnuCash".

I.e. there appear to be a few issues with distributing Gnucash as a flatpak here:

These quite important scripts (gnc-fq-*, gnucash-cli) are:
1. Hidden away in some horrible hidden file structure e.g. "~/.local/share/flatpak/app/org.gnucash.GnuCash/x86_64/stable/de789f62d67a6ed3ae7fd898b9d1e05cf57cb26fc7f7743262608dfefc81bd0b/files/bin" 2. Even when you do find them, they can't simply be run - the only one that can be run is "gnucash" (i.e. the GUI), because that is the one that is hardlinked to in the Flapak run command "flatpak run org.gnucash.Gnucash"

Thanks,

R.

On Thu, Jun 30, 2022 at 6:43 PM Geoff <cleanoutmys...@gmail.com <mailto:cleanoutmys...@gmail.com>> wrote:

    Hi Richard

    Yes, that is confusing.  It is possible that this discrepancy in
    behaviour may be due to you having two instances of Perl installed -
    the
    later one is seen by your command line scripts and the earlier (out of
    date) one is seen by your GnuCash GUI.  I make this suggestion as I
    recall seeing other GnuCash problems being reported due to this.  I am
    mainly a Windows user so I can't really help you to trouble shoot.

    Anyway, to upgrade, you can try the "gnc-fq-update" Perl script, which
    should get the latest version (1.51) from CPAN:
    https://metacpan.org/pod/Finance::Quote
    <https://metacpan.org/pod/Finance::Quote>

    Finally, I have attached a screenshot of my setup to retrieve prices
    for
    ASX securities.

    Hope this helps.

    Regards

    Geoff
    =====

    On 30/06/2022 6:26 pm, Richard Spinney wrote:
     > Hi Geoff,
     >
     > Thanks for this.
     >
     > I am little bit confused though, the command line perl scripts I am
     > using with the ASX as a source work fine. But moreover, they work
    when I
     > use *different* sources (e.g. yahoo as JSON), but then they don't
    work
     > in gnucash itself - I.e. the issue is there when I specifically
    avoid
     > the ASX as a source. Or have I missed something?
     >
     > If I do have to update that module do you have any links or
    similar you
     > could point me to?
     >
     > Thanks,
     >
     > R.
     >
     > On Thu, 30 June 2022, 18:21 Geoff, <cleanoutmys...@gmail.com
    <mailto:cleanoutmys...@gmail.com>
     > <mailto:cleanoutmys...@gmail.com
    <mailto:cleanoutmys...@gmail.com>>> wrote:
     >
     >     Hi Richard
     >
     >     The ASX did a major web upgrade back in 2020 that broke
    Version 1.49 of
     >     Finance::Quote.  If you want to use the ASX as your data
    source for
     >     Australian listed securities then you will need to upgrade
    that Perl
     >     module.
     >
     >
     >     Regards
     >
     >     Geoff
     >     =====
     >
     >     On 30/06/2022 5:44 pm, Richard Spinney wrote:
     >      > Hi All,
     >      >
     >      > I'm having some trouble fetching online quotes for Australian
     >     stocks in
     >      > Gnucash.
     >      >
     >      > My versions are:
     >      >
     >      > Gnucash Version: 4.11
     >      > Build ID: Flathub 4.11
     >      > Finance::Quote: 1.49
     >      >
     >      > running on Linux.
     >      >
     >      > Every other security price fetch seems to work fine. For
     >     instance, this
     >      > works for US stocks when input into the security editor:
     >      >
     >      > Symbol: AAPL
     >      > Source: alphavantage
     >      >
     >      > as do currency quotes.
     >      >
     >      > However, I get the following error message:
     >      >
     >      > "Unable to retrieve quotes for these items ASX:VGS ..."
     >      >
     >      > where ASX is just my "type" categorisation", if I try any ASX
     >     stock/etf
     >      > (here using VGS as an example) with any permutation of
     >      >
     >      > Symbol: VGS, VGS.AX <http://VGS.AX> <http://VGS.AX
    <http://VGS.AX>>, ASX:VGS, ASX.VGS
     >      > Source: Alphavantage US, Australian Stock Exchange
    AU,Yahoo as JSON
     >      >
     >      > For reference, I have got the underlying command line scripts
     >     working and I
     >      > *can* get Australian quotes using them (in addition to
    currency
     >     and US
     >      > stock quotes that *do* work in Gnucash). For instance the
    following
     >      > commands all return sensible quotes
     >      >
     >      >
     >      > perl gnc-fq-dump -v asx vgs
     >      > perl gnc-fq-dump -v yahoo_json VGS.ax
     >      > perl gnc-fq-dump -v australia vgs
     >      >
     >      > I'm unclear if this is because of something I am doing
    wrong with the
     >      > details in the security editor or if there is something
    else I'm
     >     missing.
     >      >
     >      > Thanks in advance,
     >      >
     >      > R.
     >      > _______________________________________________
     >      > gnucash-user mailing list
     >      > gnucash-user@gnucash.org <mailto:gnucash-user@gnucash.org>
    <mailto:gnucash-user@gnucash.org <mailto:gnucash-user@gnucash.org>>
     >      > To update your subscription preferences or to unsubscribe:
     >      > https://lists.gnucash.org/mailman/listinfo/gnucash-user
    <https://lists.gnucash.org/mailman/listinfo/gnucash-user>
     >     <https://lists.gnucash.org/mailman/listinfo/gnucash-user
    <https://lists.gnucash.org/mailman/listinfo/gnucash-user>>
     >      > If you are using Nabble or Gmane, please see
     > https://wiki.gnucash.org/wiki/Mailing_Lists
    <https://wiki.gnucash.org/wiki/Mailing_Lists>
     >     <https://wiki.gnucash.org/wiki/Mailing_Lists
    <https://wiki.gnucash.org/wiki/Mailing_Lists>> for more information.
     >      > -----
     >      > 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
If you are using Nabble or Gmane, please see 
https://wiki.gnucash.org/wiki/Mailing_Lists for more information.
-----
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