Hi Doug,

        same issue here.

        Nevertheless, I'd find a way to fix it:
- the file exist into Debian source repository
- so download http://deb.debian.org/debian/pool/main/g/gnucash/gnucash_5.1.orig.tar.xz
see https://packages.debian.org/source/trixie/gnucash for information

- uncompress it: tar xJvf gnucash_5.1.orig.tar.xz gnucash-5.1/libgnucash/quotes/finance-quote-wrapper.in

- apply attached patch (because the "finance-quote-wrapper.in" is not a ready to use perl script)

- copy new "finance-quote-wrapper" into /usr/bin/finance-quote-wrapper

- you can test result into you gnucash, or with simple test:
gnucash-cli --quotes info
gnucash-cli --quotes dump alphavantage IBM

        Regards,
                                Olivier
1c1
< #!@PERL@ -w
---
> #!/usr/bin/perl -w
9,19c9,19
< ### 
< ### This program is free software; you can redistribute it and/or    
< ### modify it under the terms of the GNU General Public License as   
< ### published by the Free Software Foundation; either version 2 of   
< ### the License, or (at your option) any later version.              
< ###                                                                  
< ### This program is distributed in the hope that it will be useful,  
< ### but WITHOUT ANY WARRANTY; without even the implied warranty of   
< ### MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the    
< ### GNU General Public License for more details.                     
< ###                                                                  
---
> ###
> ### This program is free software; you can redistribute it and/or
> ### modify it under the terms of the GNU General Public License as
> ### published by the Free Software Foundation; either version 2 of
> ### the License, or (at your option) any later version.
> ###
> ### This program is distributed in the hope that it will be useful,
> ### but WITHOUT ANY WARRANTY; without even the implied warranty of
> ### MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
> ### GNU General Public License for more details.
> ###
30,72d29
< 
< =head1 NAME
< 
< finance-quote-wrapper  -  internal interface between gnucash and Finance::Quote
< 
< =head1 SYNOPSIS
< 
< finance-quote-wrapper
< 
< =head1 DESCRIPTION
< 
< Input: a JSON encoded hash of namespaces and commodities to query prices for.
< Currencies all go under the "currency' namespace, other commodities are
< grouped according to the quotes source they should be queried from
< There should also be a "defaultcurrency" key with the currency to be used as
< base currency for currency quotes.
< 
< {
<     "defaultcurrency": "EUR",
<     "currency": {
<         "XAG": "",
<         "HKD": "",
<         "USD": ""
<     },
<     "yahoo_json": {
<         "CSCO": ""
<     }
< }
< 
< Output (on standard output):
< 
< The retrieved quotes in JSON format for further processing. These are
< the raw values returned by Finance::Quote. The caller is responsible for
< parsing and interpreting the results.
< 
< If there are program failures, an error message will be printed on standard error.
< 
< Exit status
< 
< 0 - success
< non-zero - failure
< 
< =cut

Reply via email to