Re: [GNC] Command line quotes still not fixed

2023-04-14 Thread David G. Pickett via gnucash-user
Stopped working again just that quick:

flatpak run --command=gnucash-cli org.gnucash.GnuCash --quotes get -- 
/home/dgp/GnuCash/ubuntu-DGPickett.gnucashF: X11 socket /tmp/.X11-unix/X0 does 
not exist in filesystem, trying to use abstract socket instead.
** (process:164114): WARNING **: 00:01:07.654: Failed to connect to bus: Could 
not connect: Connection refused* 00:01:07 ERROR  
[cleanup_and_exit_with_failure()] File is locked, won't open.
Is there some new lock besides the .LCK file ?

-Original Message-
From: Bruce Schuck 
To: David G. Pickett ; gnucash-user@gnucash.org 

Cc: rlo...@gmail.com ; geert.gnuc...@kobaltwit.be 
; m.muruganan...@hotmail.com 
; hell...@gmail.com 
Sent: Tue, Apr 11, 2023 10:21 pm
Subject: Re: [GNC] Command line quotes still not fixed

On 4/11/23 6:51 PM, David G. Pickett wrote:

> Maybe patch the code to load a junk string in there 
> "Enter_your_key_here" and suppress the warning?

I have been thinking about that. I haven't tested if bogus API keys are 
subject to the same limitations as the free keys, but I think it would 
lead to other issues when it works for some people earlier in the day, 
but after the 500 per day limit is reached then getting quotes or 
exchange rates fail. And that would be for other people, or those who it 
worked for earlier in the day.

On top of that, we humans can be quite lazy. If someone notices their 
AlphaVantage stock quotes or exchange rates work, they may not bother 
with getting their own real free API key.

Still, setting the dummy key if none is supplied may make it into F::Q 
v1.55 (may be pushed to CPAN next month).

- 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] Command line quotes still not fixed

2023-04-11 Thread Bruce Schuck

On 4/11/23 6:51 PM, David G. Pickett wrote:

Maybe patch the code to load a junk string in there 
"Enter_your_key_here" and suppress the warning?


I have been thinking about that. I haven't tested if bogus API keys are 
subject to the same limitations as the free keys, but I think it would 
lead to other issues when it works for some people earlier in the day, 
but after the 500 per day limit is reached then getting quotes or 
exchange rates fail. And that would be for other people, or those who it 
worked for earlier in the day.


On top of that, we humans can be quite lazy. If someone notices their 
AlphaVantage stock quotes or exchange rates work, they may not bother 
with getting their own real free API key.


Still, setting the dummy key if none is supplied may make it into F::Q 
v1.55 (may be pushed to CPAN next month).


- 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] Command line quotes still not fixed

2023-04-11 Thread David G. Pickett via gnucash-user
Maybe patch the code to load a junk string in there "Enter_your_key_here" and 
suppress the warning?


-Original Message-
From: Bruce Schuck 
To: gnucash-user@gnucash.org
Cc: rlo...@gmail.com; geert.gnuc...@kobaltwit.be; m.muruganan...@hotmail.com; 
hell...@gmail.com; dgpick...@aol.com
Sent: Mon, Apr 10, 2023 12:01 pm
Subject: Re: [GNC] Command line quotes still not fixed

On 10 Apr 2023 09:22:04 -0500R Losey wrote:

> You could always get a key (they are free) and have it set.

Sh, don't tell anyone but I stumbled on a bug with the 
authentication of the AlphaVantage API Key. Make one up!

Using "NOTAREALAPIKEY" as the key, I found that lookups work. I hit on 
this when testing updates to the AlphaVantage.pm module to see what is 
returned for invalid as well as blank/unset key.

curl 
'https://www.alphavantage.co/query?function=TIME_SERIES_INTRADAY&symbol=NXPI&interval=5min&apikey=NOTAREALAPIKEY'

I sent AlphaVantage an email about this last year and never got a 
response, nor did the issue get fixed.

In related news, I am just about finished testing a new currency module 
for Finance::Quote that gets the data from Yahoo. No API key needed.

Along with this I am thinking about using an environment variable 
(FQ_CURRENCY) to allow users to choose their preferred currency exchange 
API. If not set a default will be used, currently AlphaVantage, but that 
may change to YahooJSON so users will not have to worry about setting 
both it and an AV API key. Feel free to discuss this at 
https://github.com/finance-quote/finance-quote/discussions/239.

- 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] Command line quotes still not fixed

2023-04-10 Thread Bruce Schuck

On 10 Apr 2023 09:22:04 -0500R Losey wrote:


You could always get a key (they are free) and have it set.


Sh, don't tell anyone but I stumbled on a bug with the 
authentication of the AlphaVantage API Key. Make one up!


Using "NOTAREALAPIKEY" as the key, I found that lookups work. I hit on 
this when testing updates to the AlphaVantage.pm module to see what is 
returned for invalid as well as blank/unset key.


curl 
'https://www.alphavantage.co/query?function=TIME_SERIES_INTRADAY&symbol=NXPI&interval=5min&apikey=NOTAREALAPIKEY'


I sent AlphaVantage an email about this last year and never got a 
response, nor did the issue get fixed.


In related news, I am just about finished testing a new currency module 
for Finance::Quote that gets the data from Yahoo. No API key needed.


Along with this I am thinking about using an environment variable 
(FQ_CURRENCY) to allow users to choose their preferred currency exchange 
API. If not set a default will be used, currently AlphaVantage, but that 
may change to YahooJSON so users will not have to worry about setting 
both it and an AV API key. Feel free to discuss this at 
https://github.com/finance-quote/finance-quote/discussions/239.


- 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] Command line quotes still not fixed

2023-04-10 Thread R Losey
You could always get a key (they are free) and have it set.

On Sun, Apr 9, 2023 at 4:32 AM Geert Janssens 
wrote:

> What you get is not an error but a warning. In your case it's superfluous
> because as you say
> you don't have currency rate quotes. So it adds some noise for you but
> should otherwise
> work (barring the other bugs we're fixing in the online quote retrieval
> area).
>
> However for users that would have currency quotes but omitted to set an
> AlphaVantage key,
> not getting the warning would leave them puzzled.
>
> I agree it's currently a bit of an all-or-nothing approach but that can be
> refined eventually. A
> good improvement would be to check whether currency quotes are requested
> and only then
> emit a warning for a missing AlphaVantage API key.
>
> That would be an enhancement request for you to file though.
>
> Regards,
>
> Geert
>
> Op zondag 9 april 2023 01:50:55 CEST schreef David G. Pickett via
> gnucash-user:
> > I have no currency rate quotes, just US stocks in US dollars.
> >
> >
> > -Original Message-
> > From: Murugan Muruganandam 
> > To: hell...@gmail.com ; David G. Pickett
> >  Cc: gnucash-user@gnucash.org <
> gnucash-user@gnucash.org>
> > Sent: Thu, Apr 6, 2023 5:08 pm
> > Subject: Re: [GNC] Command line quotes still not fixed
> >
> > #yiv0949692185 P {margin-top:0;margin-bottom:0;}Alphavantage is required
> for
> > currency rates
> >
> >
> > Saludos Cordiales
> > Murugan
> > From: gnucash-user
> >  on behalf
> of
> > David G. Pickett via gnucash-user  Sent:
> > Thursday, April 6, 2023 4:41 PM
> > To: hell...@gmail.com 
> > Cc: gnucash-user@gnucash.org 
> > Subject: Re: [GNC] Command line quotes still not fixed As I do not use
> > Alphavantage, just 'Yahoo as json', why is it looking for an api key?
> >
> >
> > -Original Message-
> > From: David H 
> > To: David G. Pickett 
> > Cc: geert.gnuc...@kobaltwit.be ;
> > gnucash-user@gnucash.org ; jra...@ceridwen.us
> >  Sent: Thu, Apr 6, 2023 4:21 pm
> > Subject: Re: [GNC] Command line quotes still not fixed
> >
> > I don't think the version difference is a mystery - remember that
> Flatpak is
> > a sandbox so presumably brings along whatever perl version it was
> > built/packaged with.  If you set your Alphavantage api key in the Gnucash
> > application itself you'll probably also also get rid of the other error
> > message. The following is all I get displayed using Geert's command
> format:
> > flatpak run --command=gnucash-cli org.gnucash.GnuCash --quotes get --
> > '/home/h/Documents/GnuCash/Data Files/h.gnucash' Found Finance::Quote
> > version 1.5301.
> >
> > Cheers David H.
> >
> > On Fri, 7 Apr 2023 at 05:08, David G. Pickett  wrote:
> >
> > I don't understand why, but "--" does also work, like "--namespace='.*'".
> >
> > I still get a lot of errors that do not affect my quote fetch.
> > It finds 1.5301 even though I installed 1.5401, a different mystery!
> >
> > dgp@dgp-p6803w:~$ flatpak run --command=gnucash-cli org.gnucash.GnuCash
> > --quotes get -- /home/dgp/GnuCash/ubuntu-DGPickett.gnucash* 15:05:17
> WARN
> ___
> 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.
>


-- 
_
Richard Losey
rlo...@gmail.com
Micah 6:8
___
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] Command line quotes still not fixed

2023-04-10 Thread R Losey
At a guess, it's just a warning that you don't have the key set, even it it
is not using it for anything.

On Sat, Apr 8, 2023 at 6:51 PM David G. Pickett via gnucash-user <
gnucash-user@gnucash.org> wrote:

> I have no currency rate quotes, just US stocks in US dollars.
>
>
> -Original Message-
> From: Murugan Muruganandam 
> To: hell...@gmail.com ; David G. Pickett <
> dgpick...@aol.com>
> Cc: gnucash-user@gnucash.org 
> Sent: Thu, Apr 6, 2023 5:08 pm
> Subject: Re: [GNC] Command line quotes still not fixed
>
> #yiv0949692185 P {margin-top:0;margin-bottom:0;}Alphavantage is required
> for currency rates
>
>
> Saludos Cordiales
> Murugan
>
> --
_
Richard Losey
rlo...@gmail.com
Micah 6:8
___
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] Command line quotes still not fixed

2023-04-09 Thread Stan Brown


On 2023-04-09 08:04, Geert Janssens wrote:
> Op zondag 9 april 2023 16:22:42 CEST schreef David G. Pickett:
>> As it should never have occurred, and should not be a warning, it is a (low
>> priority) bug report, not an enhancement.  Assume everything is good but
>> validate inputs before using, leads to simpler, cleaner code.  The code
>> should complain about the key when it has occasion to use it, not as a
>> warning, but as an error.  If it has occasion to use it 30 times, 30 errors
>> until the user configures it correctly.
>>
> Call it what you will. Regardless both a bug report or an enhancement request 
> should be reported in bugzilla, not on the mailing list.

"Not _only_ on the mailing list," I would have agreed with 100%.

Any bug or enhancement request should go in the bug database, but I
believe there can be value in _limited_ discussion in the mailing list
also. For one thing, it will save time for others who run into the same
issue: they won't have to take time searching for what they might have
been done wrong. And others who might report a bug will know that it's
already been done, which will save time for them and reduce duplicate
reports to the developers.

Stan Brown
Tehachapi, CA, USA
https://BrownMath.com
___
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] Command line quotes still not fixed

2023-04-09 Thread Geert Janssens
Op zondag 9 april 2023 16:22:42 CEST schreef David G. Pickett:
> As it should never have occurred, and should not be a warning, it is a (low
> priority) bug report, not an enhancement.  Assume everything is good but
> validate inputs before using, leads to simpler, cleaner code.  The code
> should complain about the key when it has occasion to use it, not as a
> warning, but as an error.  If it has occasion to use it 30 times, 30 errors
> until the user configures it correctly.
> 
Call it what you will. Regardless both a bug report or an enhancement request 
should be reported in bugzilla, not on the mailing list.

Regards,

Geert
___
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] Command line quotes still not fixed

2023-04-09 Thread David G. Pickett via gnucash-user
As it should never have occurred, and should not be a warning, it is a (low 
priority) bug report, not an enhancement.  Assume everything is good but 
validate inputs before using, leads to simpler, cleaner code.  The code should 
complain about the key when it has occasion to use it, not as a warning, but as 
an error.  If it has occasion to use it 30 times, 30 errors until the user 
configures it correctly.


-Original Message-
From: Geert Janssens 
To: m.muruganan...@hotmail.com ; hell...@gmail.com 
; gnucash-user@gnucash.org 
Cc: David G. Pickett 
Sent: Sun, Apr 9, 2023 5:31 am
Subject: Re: [GNC] Command line quotes still not fixed

What you get is not an error but a warning. In your case it's superfluous 
because as you say you don't have currency rate quotes. So it adds some noise 
for you but should otherwise work (barring the other bugs we're fixing in the 
online quote retrieval area).
However for users that would have currency quotes but omitted to set an 
AlphaVantage key, not getting the warning would leave them puzzled.
I agree it's currently a bit of an all-or-nothing approach but that can be 
refined eventually. A good improvement would be to check whether currency 
quotes are requested and only then emit a warning for a missing AlphaVantage 
API key.
That would be an enhancement request for you to file though.
Regards,
Geert
Op zondag 9 april 2023 01:50:55 CEST schreef David G. Pickett via 
gnucash-user:> I have no currency rate quotes, just US stocks in US dollars.> > 
> -Original Message-> From: Murugan Muruganandam 
> To: hell...@gmail.com ; David 
G. Pickett>  Cc: gnucash-user@gnucash.org 
> Sent: Thu, Apr 6, 2023 5:08 pm> Subject: Re: [GNC] 
Command line quotes still not fixed> > #yiv0949692185 P 
{margin-top:0;margin-bottom:0;}Alphavantage is required for> currency rates> > 
> Saludos Cordiales> Murugan> From: gnucash-user> 
 on behalf of> 
David G. Pickett via gnucash-user  Sent:> Thursday, 
April 6, 2023 4:41 PM> To: hell...@gmail.com > Cc: 
gnucash-user@gnucash.org > Subject: Re: [GNC] Command 
line quotes still not fixed As I do not use> Alphavantage, just 'Yahoo as 
json', why is it looking for an api key?> > > -Original Message-> From: 
David H > To: David G. Pickett > Cc: 
geert.gnuc...@kobaltwit.be ;> 
gnucash-user@gnucash.org ; jra...@ceridwen.us> 
 Sent: Thu, Apr 6, 2023 4:21 pm> Subject: Re: [GNC] Command 
line quotes still not fixed> > I don't think the version difference is a 
mystery - remember that Flatpak is> a sandbox so presumably brings along 
whatever perl version it was> built/packaged with.  If you set your 
Alphavantage api key in the Gnucash> application itself you'll probably also 
also get rid of the other error> message. The following is all I get displayed 
using Geert's command format:> flatpak run --command=gnucash-cli 
org.gnucash.GnuCash --quotes get --> '/home/h/Documents/GnuCash/Data 
Files/h.gnucash' Found Finance::Quote> version 1.5301.> > Cheers David H.> > On 
Fri, 7 Apr 2023 at 05:08, David G. Pickett  wrote:> > I 
don't understand why, but "--" does also work, like "--namespace='.*'".> > I 
still get a lot of errors that do not affect my quote fetch.> It finds 1.5301 
even though I installed 1.5401, a different mystery!> > dgp@dgp-p6803w:~$ 
flatpak run --command=gnucash-cli org.gnucash.GnuCash> --quotes get -- 
/home/dgp/GnuCash/ubuntu-DGPickett.gnucash* 15:05:17  WARN>  
[GncFQQuoteSource::GncFQQuoteSource()] No Alpha Vantage> API key set, currency 
quotes and other AlphaVantage based quotes won't> work.Found Finance::Quote 
version 1.5301.dgp@dgp-p6803w:~$ flatpak run> --command=gnucash-cli 
org.gnucash.GnuCash --quotes get --namespace='.*'> 
/home/dgp/GnuCash/ubuntu-DGPickett.gnucash* 15:05:57  WARN>  
[GncFQQuoteSource::GncFQQuoteSource()] No Alpha Vantage> API key set, currency 
quotes and other AlphaVantage based quotes won't> work.Found Finance::Quote 
version 1.5301.dgp@dgp-p6803w:~$  -Original> Message-> From: Geert 
Janssens > To: David H ; 
gnucash-user@gnucash.org>  Cc: David G. Pickett 
; john>  Sent: Thu, Apr 6, 2023 3:47 am> 
Subject: Re: [GNC] Command line quotes still not fixed> > Actually instead of 
adding a --namespace parameter, you can just use '--' to> separate the named 
parameters from the positional parameters like> so:flatpak run 
--command=gnucash-cli org.gnucash.GnuCash --quotes get --> 
/home/dgp/GnuCash/ubuntu-DGPickett.gnucash That's a common unix way to> solve 
such ambiquities.> Regards,> Geert> Op donderdag 6 april 2023 05:04:02 CEST 
schreef john:> The namespace> parameter is a regular expression, so .* will get 
the 

Re: [GNC] Command line quotes still not fixed

2023-04-09 Thread Geert Janssens
What you get is not an error but a warning. In your case it's superfluous 
because as you say 
you don't have currency rate quotes. So it adds some noise for you but should 
otherwise 
work (barring the other bugs we're fixing in the online quote retrieval area).

However for users that would have currency quotes but omitted to set an 
AlphaVantage key, 
not getting the warning would leave them puzzled.

I agree it's currently a bit of an all-or-nothing approach but that can be 
refined eventually. A 
good improvement would be to check whether currency quotes are requested and 
only then 
emit a warning for a missing AlphaVantage API key.

That would be an enhancement request for you to file though.

Regards,

Geert

Op zondag 9 april 2023 01:50:55 CEST schreef David G. Pickett via gnucash-user:
> I have no currency rate quotes, just US stocks in US dollars.
> 
> 
> -Original Message-
> From: Murugan Muruganandam 
> To: hell...@gmail.com ; David G. Pickett
>  Cc: gnucash-user@gnucash.org 
> Sent: Thu, Apr 6, 2023 5:08 pm
> Subject: Re: [GNC] Command line quotes still not fixed
> 
> #yiv0949692185 P {margin-top:0;margin-bottom:0;}Alphavantage is required for
> currency rates
> 
> 
> Saludos Cordiales
> Murugan
> From: gnucash-user
>  on behalf of
> David G. Pickett via gnucash-user  Sent:
> Thursday, April 6, 2023 4:41 PM
> To: hell...@gmail.com 
> Cc: gnucash-user@gnucash.org 
> Subject: Re: [GNC] Command line quotes still not fixed As I do not use
> Alphavantage, just 'Yahoo as json', why is it looking for an api key?
> 
> 
> -Original Message-
> From: David H 
> To: David G. Pickett 
> Cc: geert.gnuc...@kobaltwit.be ;
> gnucash-user@gnucash.org ; jra...@ceridwen.us
>  Sent: Thu, Apr 6, 2023 4:21 pm
> Subject: Re: [GNC] Command line quotes still not fixed
> 
> I don't think the version difference is a mystery - remember that Flatpak is
> a sandbox so presumably brings along whatever perl version it was
> built/packaged with.  If you set your Alphavantage api key in the Gnucash
> application itself you'll probably also also get rid of the other error
> message. The following is all I get displayed using Geert's command format:
> flatpak run --command=gnucash-cli org.gnucash.GnuCash --quotes get --
> '/home/h/Documents/GnuCash/Data Files/h.gnucash' Found Finance::Quote
> version 1.5301.
> 
> Cheers David H.
> 
> On Fri, 7 Apr 2023 at 05:08, David G. Pickett  wrote:
> 
> I don't understand why, but "--" does also work, like "--namespace='.*'".
> 
> I still get a lot of errors that do not affect my quote fetch.
> It finds 1.5301 even though I installed 1.5401, a different mystery!
> 
> dgp@dgp-p6803w:~$ flatpak run --command=gnucash-cli org.gnucash.GnuCash
> --quotes get -- /home/dgp/GnuCash/ubuntu-DGPickett.gnucash* 15:05:17  WARN
___
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] Command line quotes still not fixed

2023-04-08 Thread David G. Pickett via gnucash-user
I have no currency rate quotes, just US stocks in US dollars.


-Original Message-
From: Murugan Muruganandam 
To: hell...@gmail.com ; David G. Pickett 
Cc: gnucash-user@gnucash.org 
Sent: Thu, Apr 6, 2023 5:08 pm
Subject: Re: [GNC] Command line quotes still not fixed

#yiv0949692185 P {margin-top:0;margin-bottom:0;}Alphavantage is required for 
currency rates


Saludos Cordiales
Murugan
From: gnucash-user 
 on behalf of 
David G. Pickett via gnucash-user 
Sent: Thursday, April 6, 2023 4:41 PM
To: hell...@gmail.com 
Cc: gnucash-user@gnucash.org 
Subject: Re: [GNC] Command line quotes still not fixed As I do not use 
Alphavantage, just 'Yahoo as json', why is it looking for an api key?


-Original Message-
From: David H 
To: David G. Pickett 
Cc: geert.gnuc...@kobaltwit.be ; 
gnucash-user@gnucash.org ; jra...@ceridwen.us 

Sent: Thu, Apr 6, 2023 4:21 pm
Subject: Re: [GNC] Command line quotes still not fixed

I don't think the version difference is a mystery - remember that Flatpak is a 
sandbox so presumably brings along whatever perl version it was built/packaged 
with.  If you set your Alphavantage api key in the Gnucash application itself 
you'll probably also also get rid of the other error message. The following is 
all I get displayed using Geert's command format:
flatpak run --command=gnucash-cli org.gnucash.GnuCash --quotes get -- 
'/home/h/Documents/GnuCash/Data Files/h.gnucash'
Found Finance::Quote version 1.5301.

Cheers David H.

On Fri, 7 Apr 2023 at 05:08, David G. Pickett  wrote:

I don't understand why, but "--" does also work, like "--namespace='.*'".

I still get a lot of errors that do not affect my quote fetch.
It finds 1.5301 even though I installed 1.5401, a different mystery!

dgp@dgp-p6803w:~$ flatpak run --command=gnucash-cli org.gnucash.GnuCash 
--quotes get -- /home/dgp/GnuCash/ubuntu-DGPickett.gnucash* 15:05:17  WARN 
 [GncFQQuoteSource::GncFQQuoteSource()] No Alpha Vantage API 
key set, currency quotes and other AlphaVantage based quotes won't work.Found 
Finance::Quote version 1.5301.dgp@dgp-p6803w:~$ flatpak run 
--command=gnucash-cli org.gnucash.GnuCash --quotes get --namespace='.*' 
/home/dgp/GnuCash/ubuntu-DGPickett.gnucash* 15:05:57  WARN  
[GncFQQuoteSource::GncFQQuoteSource()] No Alpha Vantage API key set, currency 
quotes and other AlphaVantage based quotes won't work.Found Finance::Quote 
version 1.5301.dgp@dgp-p6803w:~$ 
-Original Message-
From: Geert Janssens 
To: David H ; gnucash-user@gnucash.org 

Cc: David G. Pickett ; john 
Sent: Thu, Apr 6, 2023 3:47 am
Subject: Re: [GNC] Command line quotes still not fixed

Actually instead of adding a --namespace parameter, you can just use '--' to 
separate the named parameters from the positional parameters like so:flatpak 
run --command=gnucash-cli org.gnucash.GnuCash --quotes get -- 
/home/dgp/GnuCash/ubuntu-DGPickett.gnucash
That's a common unix way to solve such ambiquities.
Regards,
Geert
Op donderdag 6 april 2023 05:04:02 CEST schreef john:> The namespace parameter 
is a regular expression, so .* will get the quotes> from all of your 
namespaces.> > Regards,> John Ralls> > > On Apr 5, 2023, at 3:46 PM, David H 
 wrote:> > > > What default namespace, look in YOUR security 
editor - as far as> > I know it's whatever you set up.  I have a vague 
recollection that it> > doesn't really care and will be happy with just a 
single character> > i.e. --namespace=x> > but don't quote me on that.> > > > By 
the way your original email could do with some halfway decent> > formatting> > 
- see what the mailing list received at> 
>https://lists.gnucash.org/pipermail/gnucash-user/2023-April/106230.html> > 
you> > might like to tweak that to make it readable in future.> > > > Cheers 
David H.> > > > On Thu, 6 Apr 2023 at 07:46, David G. Pickett 
 wrote:> >> I saw that later.  What's the default 
namespace?> >> > >> > >> -Original Message-> >> From: David H 
> >> To: David G. Pickett > >> Cc: 
gnucash-user@gnucash.org > >> Sent: Wed, Apr 5, 2023 
3:45 pm> >> Subject: Re: [GNC] Command line quotes still not fixed> >> > >> And 
you'll see there's a whole other thread on this -> 
>>https://lists.gnucash.org/pipermail/gnucash-user/2023-April/106181.html.> >> 
Bug report athttps://bugs.gnucash.org/show_bug.cgi?id=798815> >> > >> If you 
include a namespace parameter for now it will work.> >> > >> Cheers David H.> 
>> > >> On Wed, 5 Apr 2023 at 23:00, David G. Pickett via gnucash-user <> >> 
gnucash-user@gnucash.org> wrote:> >> > >> I can still 

Re: [GNC] Command line quotes still not fixed

2023-04-08 Thread Murugan Muruganandam
Alphavantage is required for currency rates




Saludos Cordiales


Murugan


From: gnucash-user 
 on behalf of 
David G. Pickett via gnucash-user 
Sent: Thursday, April 6, 2023 4:41 PM
To: hell...@gmail.com 
Cc: gnucash-user@gnucash.org 
Subject: Re: [GNC] Command line quotes still not fixed

As I do not use Alphavantage, just 'Yahoo as json', why is it looking for an 
api key?


-Original Message-
From: David H 
To: David G. Pickett 
Cc: geert.gnuc...@kobaltwit.be ; 
gnucash-user@gnucash.org ; jra...@ceridwen.us 

Sent: Thu, Apr 6, 2023 4:21 pm
Subject: Re: [GNC] Command line quotes still not fixed

I don't think the version difference is a mystery - remember that Flatpak is a 
sandbox so presumably brings along whatever perl version it was built/packaged 
with.  If you set your Alphavantage api key in the Gnucash application itself 
you'll probably also also get rid of the other error message. The following is 
all I get displayed using Geert's command format:
flatpak run --command=gnucash-cli org.gnucash.GnuCash --quotes get -- 
'/home/h/Documents/GnuCash/Data Files/h.gnucash'
Found Finance::Quote version 1.5301.

Cheers David H.

On Fri, 7 Apr 2023 at 05:08, David G. Pickett  wrote:

I don't understand why, but "--" does also work, like "--namespace='.*'".

I still get a lot of errors that do not affect my quote fetch.
It finds 1.5301 even though I installed 1.5401, a different mystery!

dgp@dgp-p6803w:~$ flatpak run --command=gnucash-cli org.gnucash.GnuCash 
--quotes get -- /home/dgp/GnuCash/ubuntu-DGPickett.gnucash* 15:05:17  WARN 
 [GncFQQuoteSource::GncFQQuoteSource()] No Alpha Vantage API 
key set, currency quotes and other AlphaVantage based quotes won't work.Found 
Finance::Quote version 1.5301.dgp@dgp-p6803w:~$ flatpak run 
--command=gnucash-cli org.gnucash.GnuCash --quotes get --namespace='.*' 
/home/dgp/GnuCash/ubuntu-DGPickett.gnucash* 15:05:57  WARN  
[GncFQQuoteSource::GncFQQuoteSource()] No Alpha Vantage API key set, currency 
quotes and other AlphaVantage based quotes won't work.Found Finance::Quote 
version 1.5301.dgp@dgp-p6803w:~$
-Original Message-
From: Geert Janssens 
To: David H ; gnucash-user@gnucash.org 

Cc: David G. Pickett ; john 
Sent: Thu, Apr 6, 2023 3:47 am
Subject: Re: [GNC] Command line quotes still not fixed

Actually instead of adding a --namespace parameter, you can just use '--' to 
separate the named parameters from the positional parameters like so:flatpak 
run --command=gnucash-cli org.gnucash.GnuCash --quotes get -- 
/home/dgp/GnuCash/ubuntu-DGPickett.gnucash
That's a common unix way to solve such ambiquities.
Regards,
Geert
Op donderdag 6 april 2023 05:04:02 CEST schreef john:> The namespace parameter 
is a regular expression, so .* will get the quotes> from all of your 
namespaces.> > Regards,> John Ralls> > > On Apr 5, 2023, at 3:46 PM, David H 
 wrote:> > > > What default namespace, look in YOUR security 
editor - as far as> > I know it's whatever you set up.  I have a vague 
recollection that it> > doesn't really care and will be happy with just a 
single character> > i.e. --namespace=x> > but don't quote me on that.> > > > By 
the way your original email could do with some halfway decent> > formatting> > 
- see what the mailing list received at> > 
https://lists.gnucash.org/pipermail/gnucash-user/2023-April/106230.html> > you> 
> might like to tweak that to make it readable in future.> > > > Cheers David 
H.> > > > On Thu, 6 Apr 2023 at 07:46, David G. Pickett  
wrote:> >> I saw that later.  What's the default namespace?> >> > >> > >> 
-Original Message-> >> From: D
 avid H > >> To: David G. Pickett > >> 
Cc: gnucash-user@gnucash.org > >> Sent: Wed, Apr 5, 
2023 3:45 pm> >> Subject: Re: [GNC] Command line quotes still not fixed> >> > 
>> And you'll see there's a whole other thread on this -> >> 
https://lists.gnucash.org/pipermail/gnucash-user/2023-April/106181.html.> >> 
Bug report at https://bugs.gnucash.org/show_bug.cgi?id=798815> >> > >> If you 
include a namespace parameter for now it will work.> >> > >> Cheers David H.> 
>> > >> On Wed, 5 Apr 2023 at 23:00, David G. Pickett via gnucash-user <> >> 
gnucash-user@gnucash.org> wrote:> >> > >> I can still only update quotes with 
the interactive button, the flatpak> >> run gnucash command that ran in 4.* is 
still broken:> >> dgp@dgp-p6803w:~$ flatpak run --command=gnucash-cli 
org.gnucash.GnuCash> >> --quotes get 
/home/dgp/GnuCash/ubuntu-DGPickett.gnucashMissin

Re: [GNC] Command line quotes still not fixed

2023-04-06 Thread David H
I don't know, perhaps for the 80% of us that do use alphavantage and may
not have set it up, especially a new user setting up gnucash for the first
time that may not realise the relationship :-) You can safely ignore it
then after all it is only a warning message.

Cheers David H.


On Fri, 7 Apr 2023 at 06:41, David G. Pickett  wrote:

> As I do not use Alphavantage, just 'Yahoo as json', why is it looking for
> an api key?
>
>
> -Original Message-
> From: David H 
> To: David G. Pickett 
> Cc: geert.gnuc...@kobaltwit.be ;
> gnucash-user@gnucash.org ; jra...@ceridwen.us <
> jra...@ceridwen.us>
> Sent: Thu, Apr 6, 2023 4:21 pm
> Subject: Re: [GNC] Command line quotes still not fixed
>
> I don't think the version difference is a mystery - remember that Flatpak
> is a sandbox so presumably brings along whatever perl version it was
> built/packaged with.  If you set your Alphavantage api key in the Gnucash
> application itself you'll probably also also get rid of the other error
> message. The following is all I get displayed using Geert's command format:
>
> flatpak run --command=gnucash-cli org.gnucash.GnuCash --quotes get --
> '/home/h/Documents/GnuCash/Data Files/h.gnucash'
> Found Finance::Quote version 1.5301.
>
> Cheers David H.
>
>
> On Fri, 7 Apr 2023 at 05:08, David G. Pickett  wrote:
>
> I don't understand why, but "--" does also work, like "--namespace='.*'".
>
> I still get a lot of errors that do not affect my quote fetch.
>
> It finds 1.5301 even though I installed 1.5401, a different mystery!
>
> dgp@dgp-p6803w:~
> $ flatpak run --command=gnucash-cli org.gnucash.GnuCash --quotes get --
> /home/dgp/GnuCash/ubuntu-DGPickett.gnucash
> * 15:05:17  WARN  [GncFQQuoteSource::GncFQQuoteSource()]
> No Alpha Vantage API key set, currency quotes and other AlphaVantage based
> quotes won't work.
> Found Finance::Quote version 1.5301.
> dgp@dgp-p6803w:~
> $ flatpak run --command=gnucash-cli org.gnucash.GnuCash --quotes get
> --namespace='.*' /home/dgp/GnuCash/ubuntu-DGPickett.gnucash
> * 15:05:57  WARN  [GncFQQuoteSource::GncFQQuoteSource()]
> No Alpha Vantage API key set, currency quotes and other AlphaVantage based
> quotes won't work.
> Found Finance::Quote version 1.5301.
> dgp@dgp-p6803w:~
> $
>
> -Original Message-
> From: Geert Janssens 
> To: David H ; gnucash-user@gnucash.org <
> gnucash-user@gnucash.org>
> Cc: David G. Pickett ; john 
> Sent: Thu, Apr 6, 2023 3:47 am
> Subject: Re: [GNC] Command line quotes still not fixed
>
> Actually instead of adding a --namespace parameter, you can just use '--'
> to separate the named parameters from the positional parameters like so:
> flatpak run --command=gnucash-cli org.gnucash.GnuCash --quotes get --
> /home/dgp/GnuCash/ubuntu-DGPickett.gnucash
>
> That's a common unix way to solve such ambiquities.
>
> Regards,
>
> Geert
>
> Op donderdag 6 april 2023 05:04:02 CEST schreef john:
> > The namespace parameter is a regular expression, so .* will get the
> quotes
> > from all of your namespaces.
> >
> > Regards,
> > John Ralls
> >
> > > On Apr 5, 2023, at 3:46 PM, David H  wrote:
> > >
> > > What default namespace, look in YOUR security editor - as far as
> > > I know it's whatever you set up.  I have a vague recollection that it
> > > doesn't really care and will be happy with just a single character
> > > i.e. --namespace=x
> > > but don't quote me on that.
> > >
> > > By the way your original email could do with some halfway decent
> > > formatting
> > > - see what the mailing list received at
> > >
> https://lists.gnucash.org/pipermail/gnucash-user/2023-April/106230.html
> > > you
> > > might like to tweak that to make it readable in future.
> > >
> > > Cheers David H.
> > >
> > > On Thu, 6 Apr 2023 at 07:46, David G. Pickett 
> wrote:
> > >> I saw that later.  What's the default namespace?
> > >>
> > >>
> > >> -Original Message-
> > >> From: David H 
> > >> To: David G. Pickett 
> > >> Cc: gnucash-user@gnucash.org 
> > >> Sent: Wed, Apr 5, 2023 3:45 pm
> > >> Subject: Re: [GNC] Command line quotes still not fixed
> > >>
> > >> And you'll see there's a whole other thread on this -
> > >>
> https://lists.gnucash.org/pipermail/gnucash-user/2023-April/106181.html.
> > >> Bug report at https://bugs.gnucash.org/show_

Re: [GNC] Command line quotes still not fixed

2023-04-06 Thread David G. Pickett via gnucash-user
As I do not use Alphavantage, just 'Yahoo as json', why is it looking for an 
api key?


-Original Message-
From: David H 
To: David G. Pickett 
Cc: geert.gnuc...@kobaltwit.be ; 
gnucash-user@gnucash.org ; jra...@ceridwen.us 

Sent: Thu, Apr 6, 2023 4:21 pm
Subject: Re: [GNC] Command line quotes still not fixed

I don't think the version difference is a mystery - remember that Flatpak is a 
sandbox so presumably brings along whatever perl version it was built/packaged 
with.  If you set your Alphavantage api key in the Gnucash application itself 
you'll probably also also get rid of the other error message. The following is 
all I get displayed using Geert's command format:
flatpak run --command=gnucash-cli org.gnucash.GnuCash --quotes get -- 
'/home/h/Documents/GnuCash/Data Files/h.gnucash'
Found Finance::Quote version 1.5301.

Cheers David H.

On Fri, 7 Apr 2023 at 05:08, David G. Pickett  wrote:

I don't understand why, but "--" does also work, like "--namespace='.*'".

I still get a lot of errors that do not affect my quote fetch.
It finds 1.5301 even though I installed 1.5401, a different mystery!

dgp@dgp-p6803w:~$ flatpak run --command=gnucash-cli org.gnucash.GnuCash 
--quotes get -- /home/dgp/GnuCash/ubuntu-DGPickett.gnucash* 15:05:17  WARN 
 [GncFQQuoteSource::GncFQQuoteSource()] No Alpha Vantage API 
key set, currency quotes and other AlphaVantage based quotes won't work.Found 
Finance::Quote version 1.5301.dgp@dgp-p6803w:~$ flatpak run 
--command=gnucash-cli org.gnucash.GnuCash --quotes get --namespace='.*' 
/home/dgp/GnuCash/ubuntu-DGPickett.gnucash* 15:05:57  WARN  
[GncFQQuoteSource::GncFQQuoteSource()] No Alpha Vantage API key set, currency 
quotes and other AlphaVantage based quotes won't work.Found Finance::Quote 
version 1.5301.dgp@dgp-p6803w:~$ 
-Original Message-
From: Geert Janssens 
To: David H ; gnucash-user@gnucash.org 

Cc: David G. Pickett ; john 
Sent: Thu, Apr 6, 2023 3:47 am
Subject: Re: [GNC] Command line quotes still not fixed

Actually instead of adding a --namespace parameter, you can just use '--' to 
separate the named parameters from the positional parameters like so:flatpak 
run --command=gnucash-cli org.gnucash.GnuCash --quotes get -- 
/home/dgp/GnuCash/ubuntu-DGPickett.gnucash
That's a common unix way to solve such ambiquities.
Regards,
Geert
Op donderdag 6 april 2023 05:04:02 CEST schreef john:> The namespace parameter 
is a regular expression, so .* will get the quotes> from all of your 
namespaces.> > Regards,> John Ralls> > > On Apr 5, 2023, at 3:46 PM, David H 
 wrote:> > > > What default namespace, look in YOUR security 
editor - as far as> > I know it's whatever you set up.  I have a vague 
recollection that it> > doesn't really care and will be happy with just a 
single character> > i.e. --namespace=x> > but don't quote me on that.> > > > By 
the way your original email could do with some halfway decent> > formatting> > 
- see what the mailing list received at> > 
https://lists.gnucash.org/pipermail/gnucash-user/2023-April/106230.html> > you> 
> might like to tweak that to make it readable in future.> > > > Cheers David 
H.> > > > On Thu, 6 Apr 2023 at 07:46, David G. Pickett  
wrote:> >> I saw that later.  What's the default namespace?> >> > >> > >> 
-Original Message-> >> From: David H > >> To: David 
G. Pickett > >> Cc: gnucash-user@gnucash.org 
> >> Sent: Wed, Apr 5, 2023 3:45 pm> >> Subject: Re: 
[GNC] Command line quotes still not fixed> >> > >> And you'll see there's a 
whole other thread on this -> >> 
https://lists.gnucash.org/pipermail/gnucash-user/2023-April/106181.html.> >> 
Bug report at https://bugs.gnucash.org/show_bug.cgi?id=798815> >> > >> If you 
include a namespace parameter for now it will work.> >> > >> Cheers David H.> 
>> > >> On Wed, 5 Apr 2023 at 23:00, David G. Pickett via gnucash-user <> >> 
gnucash-user@gnucash.org> wrote:> >> > >> I can still only update quotes with 
the interactive button, the flatpak> >> run gnucash command that ran in 4.* is 
still broken:> >> dgp@dgp-p6803w:~$ flatpak run --command=gnucash-cli 
org.gnucash.GnuCash> >> --quotes get 
/home/dgp/GnuCash/ubuntu-DGPickett.gnucashMissing data file> >> parameter> >> 
gnucash-cli [options] [datafile] - GnuCash, accounting for personal and> >> 
small business finance:> >> Common Options:  -h [ --help ]  Show this 
help message  -v [> >> --version ]   Show GnuCash version  --debug  
  Enable> 

Re: [GNC] Command line quotes still not fixed

2023-04-06 Thread David H
Ta for that Geert.



On Thu, 6 Apr 2023 at 17:47, Geert Janssens 
wrote:

> Actually instead of adding a --namespace parameter, you can just use '--'
> to separate the named parameters from the positional parameters like so:
>
> flatpak run --command=gnucash-cli org.gnucash.GnuCash --quotes get --
> /home/dgp/GnuCash/ubuntu-DGPickett.gnucash
>
> That's a common unix way to solve such ambiquities.
>
> Regards,
>
> Geert
>
> Op donderdag 6 april 2023 05:04:02 CEST schreef john:
>
> > The namespace parameter is a regular expression, so .* will get the
> quotes
>
> > from all of your namespaces.
>
> >
>
> > Regards,
>
> > John Ralls
>
> >
>
> > > On Apr 5, 2023, at 3:46 PM, David H  wrote:
>
> > >
>
> > > What default namespace, look in YOUR security editor - as far as
>
> > > I know it's whatever you set up.  I have a vague recollection that it
>
> > > doesn't really care and will be happy with just a single character
>
> > > i.e. --namespace=x
>
> > > but don't quote me on that.
>
> > >
>
> > > By the way your original email could do with some halfway decent
>
> > > formatting
>
> > > - see what the mailing list received at
>
> > >
> https://lists.gnucash.org/pipermail/gnucash-user/2023-April/106230.html
>
> > > you
>
> > > might like to tweak that to make it readable in future.
>
> > >
>
> > > Cheers David H.
>
> > >
>
> > > On Thu, 6 Apr 2023 at 07:46, David G. Pickett 
> wrote:
>
> > >> I saw that later.  What's the default namespace?
>
> > >>
>
> > >>
>
> > >> -Original Message-
>
> > >> From: David H 
>
> > >> To: David G. Pickett 
>
> > >> Cc: gnucash-user@gnucash.org 
>
> > >> Sent: Wed, Apr 5, 2023 3:45 pm
>
> > >> Subject: Re: [GNC] Command line quotes still not fixed
>
> > >>
>
> > >> And you'll see there's a whole other thread on this -
>
> > >>
> https://lists.gnucash.org/pipermail/gnucash-user/2023-April/106181.html.
>
> > >> Bug report at https://bugs.gnucash.org/show_bug.cgi?id=798815
>
> > >>
>
> > >> If you include a namespace parameter for now it will work.
>
> > >>
>
> > >> Cheers David H.
>
> > >>
>
> > >> On Wed, 5 Apr 2023 at 23:00, David G. Pickett via gnucash-user <
>
> > >> gnucash-user@gnucash.org> wrote:
>
> > >>
>
> > >> I can still only update quotes with the interactive button, the
> flatpak
>
> > >> run gnucash command that ran in 4.* is still broken:
>
> > >> dgp@dgp-p6803w:~$ flatpak run --command=gnucash-cli
> org.gnucash.GnuCash
>
> > >> --quotes get /home/dgp/GnuCash/ubuntu-DGPickett.gnucashMissing data
> file
>
> > >> parameter
>
> > >> gnucash-cli [options] [datafile] - GnuCash, accounting for personal
> and
>
> > >> small business finance:
>
> > >> Common Options:  -h [ --help ]  Show this help message  -v [
>
> > >> --version ]   Show GnuCash version  --debugEnable
>
> > >> debugging mode: provide deep detail in the
> logs.
>
> > >>
>
> > >>   This is equivalent to: --log "=info" --log
>
> > >>
>
> > >> "qof=info"  --log "gnc=info"  --extra
>
> > >>
>
> > >>  Enable extra/development/debugging features.  --log arg
> Log
>
> > >>
>
> > >> level overrides, of the form
>
> > >> "modulename={debug,info,warn,crit,error}"
>
> > >> Examples: "--log qof=debug" or "--log
>
> > >> gnc.backend.file.sx=info" This can be invoked
>
> > >> multiple times.  --pathsShow paths  --logto arg
>
> > >> File to log into; defaults to "/tmp/gnucash.trace";
>
> > >> can be "stderr" or "stdout".
>
> > >> Price Quotes Retrieval Options:  -Q [ --quotes ] argExecute price
>
> > >> quote related commands. The following
> commands
>
> > >> are
>
> > >> supported.info:
> Show
>
> > >> Finance::Quote version and

Re: [GNC] Command line quotes still not fixed

2023-04-06 Thread David H
I don't think the version difference is a mystery - remember that Flatpak
is a sandbox so presumably brings along whatever perl version it was
built/packaged with.  If you set your Alphavantage api key in the Gnucash
application itself you'll probably also also get rid of the other error
message. The following is all I get displayed using Geert's command format:

flatpak run --command=gnucash-cli org.gnucash.GnuCash --quotes get --
'/home/h/Documents/GnuCash/Data Files/h.gnucash'
Found Finance::Quote version 1.5301.

Cheers David H.


On Fri, 7 Apr 2023 at 05:08, David G. Pickett  wrote:

> I don't understand why, but "--" does also work, like "--namespace='.*'".
>
> I still get a lot of errors that do not affect my quote fetch.
>
> It finds 1.5301 even though I installed 1.5401, a different mystery!
>
> dgp@dgp-p6803w:~
> $ flatpak run --command=gnucash-cli org.gnucash.GnuCash --quotes get --
> /home/dgp/GnuCash/ubuntu-DGPickett.gnucash
> * 15:05:17  WARN  [GncFQQuoteSource::GncFQQuoteSource()]
> No Alpha Vantage API key set, currency quotes and other AlphaVantage based
> quotes won't work.
> Found Finance::Quote version 1.5301.
> dgp@dgp-p6803w:~
> $ flatpak run --command=gnucash-cli org.gnucash.GnuCash --quotes get
> --namespace='.*' /home/dgp/GnuCash/ubuntu-DGPickett.gnucash
> * 15:05:57  WARN  [GncFQQuoteSource::GncFQQuoteSource()]
> No Alpha Vantage API key set, currency quotes and other AlphaVantage based
> quotes won't work.
> Found Finance::Quote version 1.5301.
> dgp@dgp-p6803w:~
> $
>
> -Original Message-
> From: Geert Janssens 
> To: David H ; gnucash-user@gnucash.org <
> gnucash-user@gnucash.org>
> Cc: David G. Pickett ; john 
> Sent: Thu, Apr 6, 2023 3:47 am
> Subject: Re: [GNC] Command line quotes still not fixed
>
> Actually instead of adding a --namespace parameter, you can just use '--'
> to separate the named parameters from the positional parameters like so:
> flatpak run --command=gnucash-cli org.gnucash.GnuCash --quotes get --
> /home/dgp/GnuCash/ubuntu-DGPickett.gnucash
>
> That's a common unix way to solve such ambiquities.
>
> Regards,
>
> Geert
>
> Op donderdag 6 april 2023 05:04:02 CEST schreef john:
> > The namespace parameter is a regular expression, so .* will get the
> quotes
> > from all of your namespaces.
> >
> > Regards,
> > John Ralls
> >
> > > On Apr 5, 2023, at 3:46 PM, David H  wrote:
> > >
> > > What default namespace, look in YOUR security editor - as far as
> > > I know it's whatever you set up.  I have a vague recollection that it
> > > doesn't really care and will be happy with just a single character
> > > i.e. --namespace=x
> > > but don't quote me on that.
> > >
> > > By the way your original email could do with some halfway decent
> > > formatting
> > > - see what the mailing list received at
> > >
> https://lists.gnucash.org/pipermail/gnucash-user/2023-April/106230.html
> > > you
> > > might like to tweak that to make it readable in future.
> > >
> > > Cheers David H.
> > >
> > > On Thu, 6 Apr 2023 at 07:46, David G. Pickett 
> wrote:
> > >> I saw that later.  What's the default namespace?
> > >>
> > >>
> > >> -Original Message-
> > >> From: David H 
> > >> To: David G. Pickett 
> > >> Cc: gnucash-user@gnucash.org 
> > >> Sent: Wed, Apr 5, 2023 3:45 pm
> > >> Subject: Re: [GNC] Command line quotes still not fixed
> > >>
> > >> And you'll see there's a whole other thread on this -
> > >>
> https://lists.gnucash.org/pipermail/gnucash-user/2023-April/106181.html.
> > >> Bug report at https://bugs.gnucash.org/show_bug.cgi?id=798815
> > >>
> > >> If you include a namespace parameter for now it will work.
> > >>
> > >> Cheers David H.
> > >>
> > >> On Wed, 5 Apr 2023 at 23:00, David G. Pickett via gnucash-user <
> > >> gnucash-user@gnucash.org> wrote:
> > >>
> > >> I can still only update quotes with the interactive button, the
> flatpak
> > >> run gnucash command that ran in 4.* is still broken:
> > >> dgp@dgp-p6803w:~$ flatpak run --command=gnucash-cli
> org.gnucash.GnuCash
> > >> --quotes get /home/dgp/GnuCash/ubuntu-DGPickett.gnucashMissing data
> file
> > >> parameter
> > >> gnucash-cli [options] [datafile] - GnuCash, accounting for persona

Re: [GNC] Command line quotes still not fixed

2023-04-06 Thread David G. Pickett via gnucash-user
I don't understand why, but "--" does also work, like "--namespace='.*'".

I still get a lot of errors that do not affect my quote fetch.
It finds 1.5301 even though I installed 1.5401, a different mystery!

dgp@dgp-p6803w:~$ flatpak run --command=gnucash-cli org.gnucash.GnuCash 
--quotes get -- /home/dgp/GnuCash/ubuntu-DGPickett.gnucash* 15:05:17  WARN 
 [GncFQQuoteSource::GncFQQuoteSource()] No Alpha Vantage API 
key set, currency quotes and other AlphaVantage based quotes won't work.Found 
Finance::Quote version 1.5301.dgp@dgp-p6803w:~$ flatpak run 
--command=gnucash-cli org.gnucash.GnuCash --quotes get --namespace='.*' 
/home/dgp/GnuCash/ubuntu-DGPickett.gnucash* 15:05:57  WARN  
[GncFQQuoteSource::GncFQQuoteSource()] No Alpha Vantage API key set, currency 
quotes and other AlphaVantage based quotes won't work.Found Finance::Quote 
version 1.5301.dgp@dgp-p6803w:~$ 
-Original Message-
From: Geert Janssens 
To: David H ; gnucash-user@gnucash.org 

Cc: David G. Pickett ; john 
Sent: Thu, Apr 6, 2023 3:47 am
Subject: Re: [GNC] Command line quotes still not fixed

Actually instead of adding a --namespace parameter, you can just use '--' to 
separate the named parameters from the positional parameters like so:flatpak 
run --command=gnucash-cli org.gnucash.GnuCash --quotes get -- 
/home/dgp/GnuCash/ubuntu-DGPickett.gnucash
That's a common unix way to solve such ambiquities.
Regards,
Geert
Op donderdag 6 april 2023 05:04:02 CEST schreef john:> The namespace parameter 
is a regular expression, so .* will get the quotes> from all of your 
namespaces.> > Regards,> John Ralls> > > On Apr 5, 2023, at 3:46 PM, David H 
 wrote:> > > > What default namespace, look in YOUR security 
editor - as far as> > I know it's whatever you set up.  I have a vague 
recollection that it> > doesn't really care and will be happy with just a 
single character> > i.e. --namespace=x> > but don't quote me on that.> > > > By 
the way your original email could do with some halfway decent> > formatting> > 
- see what the mailing list received at> > 
https://lists.gnucash.org/pipermail/gnucash-user/2023-April/106230.html> > you> 
> might like to tweak that to make it readable in future.> > > > Cheers David 
H.> > > > On Thu, 6 Apr 2023 at 07:46, David G. Pickett  
wrote:> >> I saw that later.  What's the default namespace?> >> > >> > >> 
-Original Message-> >> From: David H > >> To: David 
G. Pickett > >> Cc: gnucash-user@gnucash.org 
> >> Sent: Wed, Apr 5, 2023 3:45 pm> >> Subject: Re: 
[GNC] Command line quotes still not fixed> >> > >> And you'll see there's a 
whole other thread on this -> >> 
https://lists.gnucash.org/pipermail/gnucash-user/2023-April/106181.html.> >> 
Bug report at https://bugs.gnucash.org/show_bug.cgi?id=798815> >> > >> If you 
include a namespace parameter for now it will work.> >> > >> Cheers David H.> 
>> > >> On Wed, 5 Apr 2023 at 23:00, David G. Pickett via gnucash-user <> >> 
gnucash-user@gnucash.org> wrote:> >> > >> I can still only update quotes with 
the interactive button, the flatpak> >> run gnucash command that ran in 4.* is 
still broken:> >> dgp@dgp-p6803w:~$ flatpak run --command=gnucash-cli 
org.gnucash.GnuCash> >> --quotes get 
/home/dgp/GnuCash/ubuntu-DGPickett.gnucashMissing data file> >> parameter> >> 
gnucash-cli [options] [datafile] - GnuCash, accounting for personal and> >> 
small business finance:> >> Common Options:  -h [ --help ]  Show this 
help message  -v [> >> --version ]   Show GnuCash version  --debug  
  Enable> >> debugging mode: provide deep detail in the 
 logs.> >> > >>   This is equivalent to: --log "=info" 
--log> >> > >> "qof=info"  --log "gnc=info"  --extra> 
>> > >>  Enable extra/development/debugging features.  --log arg  
Log> >> > >> level overrides, of the form> >> 
"modulename={debug,info,warn,crit,error}"> >> Examples: "--log qof=debug" or 
"--log> >> gnc.backend.file.sx=info" This can be 
invoked> >> multiple times.  --paths    Show paths  --logto arg> >> 
File to log into; defaults to "/tmp/gnucash.trace";> >> can be "stderr" or 
"stdout".> >> Price Quotes Retrieval Options:  -Q [ --quotes ] 

Re: [GNC] Command line quotes still not fixed

2023-04-06 Thread David G. Pickett via gnucash-user
Thanks!

So someone erased a ' = ".*" ' from a char * / std::string variable definition, 
so sad!  I am sure the bug fix will be out soon if not already.

Does GnuCash have a test suite to verify it still works in prior behaviors?  Do 
bug repairs update the test suite to detect the bug before they fix it?  
There's a term for that, code to test or something such!  Another email chain 
on grep is full of bugs introduced into various implementations of regex and 
grep, so they might not have learned/adopted that paradigm.  I supposed it was 
invented by Hippocrates: "First, do no harm!"?  :D

-Original Message-
From: john 
To: David H 
Cc: David G. Pickett ; gnucash-user@gnucash.org 

Sent: Wed, Apr 5, 2023 11:04 pm
Subject: Re: [GNC] Command line quotes still not fixed

The namespace parameter is a regular expression, so .* will get the quotes from 
all of your namespaces.

Regards,
John Ralls


> On Apr 5, 2023, at 3:46 PM, David H  wrote:
> 
> What default namespace, look in YOUR security editor - as far as
> I know it's whatever you set up.  I have a vague recollection that it
> doesn't really care and will be happy with just a single character
> i.e. --namespace=x
> but don't quote me on that.
> 
> By the way your original email could do with some halfway decent formatting
> - see what the mailing list received at
> https://lists.gnucash.org/pipermail/gnucash-user/2023-April/106230.html you
> might like to tweak that to make it readable in future.
> 
> Cheers David H.
> 
> On Thu, 6 Apr 2023 at 07:46, David G. Pickett  wrote:
> 
>> I saw that later.  What's the default namespace?
>> 
>> 
>> -Original Message-----
>> From: David H 
>> To: David G. Pickett 
>> Cc: gnucash-user@gnucash.org 
>> Sent: Wed, Apr 5, 2023 3:45 pm
>> Subject: Re: [GNC] Command line quotes still not fixed
>> 
>> And you'll see there's a whole other thread on this -
>> https://lists.gnucash.org/pipermail/gnucash-user/2023-April/106181.html.
>> Bug report at https://bugs.gnucash.org/show_bug.cgi?id=798815
>> 
>> If you include a namespace parameter for now it will work.
>> 
>> Cheers David H.
>> 
>> On Wed, 5 Apr 2023 at 23:00, David G. Pickett via gnucash-user <
>> gnucash-user@gnucash.org> wrote:
>> 
>> I can still only update quotes with the interactive button, the flatpak
>> run gnucash command that ran in 4.* is still broken:
>> dgp@dgp-p6803w:~$ flatpak run --command=gnucash-cli org.gnucash.GnuCash
>> --quotes get /home/dgp/GnuCash/ubuntu-DGPickett.gnucashMissing data file
>> parameter
>> gnucash-cli [options] [datafile] - GnuCash, accounting for personal and
>> small business finance:
>> Common Options:  -h [ --help ]          Show this help message  -v [
>> --version ]      Show GnuCash version  --debug                Enable
>> debugging mode: provide deep detail in the                          logs.
>>                      This is equivalent to: --log "=info" --log
>> "qof=info"                          --log "gnc=info"  --extra
>>  Enable extra/development/debugging features.  --log arg              Log
>> level overrides, of the form
>> "modulename={debug,info,warn,crit,error}"
>> Examples: "--log qof=debug" or "--log
>> gnc.backend.file.sx=info"                        This can be invoked
>> multiple times.  --paths                Show paths  --logto arg
>> File to log into; defaults to "/tmp/gnucash.trace";
>> can be "stderr" or "stdout".
>> Price Quotes Retrieval Options:  -Q [ --quotes ] arg    Execute price
>> quote related commands. The following                          commands are
>> supported.                                                    info: Show
>> Finance::Quote version and exposed quote
>> sources.                            get: Fetch current quotes for all
>> foreign                                  currencies and stocks in the given
>> GnuCash                                  datafile.
>> dump: Fetch current quotes for specified currencies
>>          or stocks from a specified namespace and print
>>              the results to the console.
>> This must be followed with a source and one or
>>    more symbols, unless the source is "currency"
>>        in which case it must be followed with two or
>>            more symbols, the first of which is the
>>          currency in which exchange rates for the rest
>>              will be quoted.                          --namespace arg
>>    Regular expression determining which n

Re: [GNC] Command line quotes still not fixed

2023-04-06 Thread David G. Pickett via gnucash-user
So no idea what is default if I never set/changed it?

I pasted in the actual plain text output of the command but the smart kids 
reformatted it!  Should I need training to send plain text? If this was a web 
app, they might have buttons for plain text block inclusion, but it is simple 
email, maybe html but more probably barefoot ESMTP.


-Original Message-
From: David H 
To: David G. Pickett 
Cc: gnucash-user@gnucash.org 
Sent: Wed, Apr 5, 2023 6:46 pm
Subject: Re: [GNC] Command line quotes still not fixed

What default namespace, look in YOUR security editor - as far as I know it's 
whatever you set up.  I have a vague recollection that it doesn't really care 
and will be happy with just a single character i.e. --namespace=x but don't 
quote me on that.
By the way your original email could do with some halfway decent formatting - 
see what the mailing list received at 
https://lists.gnucash.org/pipermail/gnucash-user/2023-April/106230.html you 
might like to tweak that to make it readable in future.
Cheers David H.
On Thu, 6 Apr 2023 at 07:46, David G. Pickett  wrote:

I saw that later.  What's the default namespace?


-Original Message-
From: David H 
To: David G. Pickett 
Cc: gnucash-user@gnucash.org 
Sent: Wed, Apr 5, 2023 3:45 pm
Subject: Re: [GNC] Command line quotes still not fixed

And you'll see there's a whole other thread on this - 
https://lists.gnucash.org/pipermail/gnucash-user/2023-April/106181.html.  Bug 
report at https://bugs.gnucash.org/show_bug.cgi?id=798815

If you include a namespace parameter for now it will work.
Cheers David H.
On Wed, 5 Apr 2023 at 23:00, David G. Pickett via gnucash-user 
 wrote:

I can still only update quotes with the interactive button, the flatpak run 
gnucash command that ran in 4.* is still broken:
dgp@dgp-p6803w:~$ flatpak run --command=gnucash-cli org.gnucash.GnuCash 
--quotes get /home/dgp/GnuCash/ubuntu-DGPickett.gnucashMissing data file 
parameter
gnucash-cli [options] [datafile] - GnuCash, accounting for personal and small 
business finance:
Common Options:  -h [ --help ]          Show this help message  -v [ --version 
]       Show GnuCash version  --debug                Enable debugging mode: 
provide deep detail in the                          logs.                       
  This is equivalent to: --log "=info" --log "qof=info"                         
 --log "gnc=info"  --extra                Enable extra/development/debugging 
features.  --log arg              Log level overrides, of the form              
            "modulename={debug,info,warn,crit,error}"                         
Examples: "--log qof=debug" or "--log                          
gnc.backend.file.sx=info"                         This can be invoked multiple 
times.  --paths                Show paths  --logto arg            File to log 
into; defaults to "/tmp/gnucash.trace";                          can be 
"stderr" or "stdout".
Price Quotes Retrieval Options:  -Q [ --quotes ] arg    Execute price quote 
related commands. The following                          commands are 
supported.                                                    info: Show 
Finance::Quote version and exposed quote                                  
sources.                            get: Fetch current quotes for all foreign   
                               currencies and stocks in the given GnuCash       
                           datafile.                           dump: Fetch 
current quotes for specified currencies                                  or 
stocks from a specified namespace and print                                 the 
results to the console.                                 This must be followed 
with a source and one or                                 more symbols, unless 
the source is "currency"                                  in which case it must 
be followed with two or                                  more symbols, the 
first of which is the                                  currency in which 
exchange rates for the rest                                  will be quoted.    
                       --namespace arg        Regular expression determining 
which namespace                          commodities will be retrieved for when 
using the get                          command  -V [ --verbose ]       When 
using the dump command list all of the parameters                         
Finance::Quote returns for the symbol instead of the                          
ones that Gnucash requires.
Report Generation Options:  -R [ --report ] arg    Execute report related 
commands. The following                          commands are supported.        
                                            list: Lists available reports.      
                     show: Describe the options modified in the named           
                       report. A datafil

Re: [GNC] Command line quotes still not fixed

2023-04-06 Thread Geert Janssens
Actually instead of adding a --namespace parameter, you can just use '--' to 
separate the 
named parameters from the positional parameters like so:
flatpak run --command=gnucash-cli org.gnucash.GnuCash --quotes get -- /home/dgp/
GnuCash/ubuntu-DGPickett.gnucash

That's a common unix way to solve such ambiquities.

Regards,

Geert

Op donderdag 6 april 2023 05:04:02 CEST schreef john:
> The namespace parameter is a regular expression, so .* will get the quotes
> from all of your namespaces.
> 
> Regards,
> John Ralls
> 
> > On Apr 5, 2023, at 3:46 PM, David H  wrote:
> > 
> > What default namespace, look in YOUR security editor - as far as
> > I know it's whatever you set up.  I have a vague recollection that it
> > doesn't really care and will be happy with just a single character
> > i.e. --namespace=x
> > but don't quote me on that.
> > 
> > By the way your original email could do with some halfway decent
> > formatting
> > - see what the mailing list received at
> > https://lists.gnucash.org/pipermail/gnucash-user/2023-April/106230.html
> > you
> > might like to tweak that to make it readable in future.
> > 
> > Cheers David H.
> > 
> > On Thu, 6 Apr 2023 at 07:46, David G. Pickett  wrote:
> >> I saw that later.  What's the default namespace?
> >> 
> >> 
> >> -----Original Message-
> >> From: David H 
> >> To: David G. Pickett 
> >> Cc: gnucash-user@gnucash.org 
> >> Sent: Wed, Apr 5, 2023 3:45 pm
> >> Subject: Re: [GNC] Command line quotes still not fixed
> >> 
> >> And you'll see there's a whole other thread on this -
> >> https://lists.gnucash.org/pipermail/gnucash-user/2023-April/106181.html.
> >> Bug report at https://bugs.gnucash.org/show_bug.cgi?id=798815
> >> 
> >> If you include a namespace parameter for now it will work.
> >> 
> >> Cheers David H.
> >> 
> >> On Wed, 5 Apr 2023 at 23:00, David G. Pickett via gnucash-user <
> >> gnucash-user@gnucash.org> wrote:
> >> 
> >> I can still only update quotes with the interactive button, the flatpak
> >> run gnucash command that ran in 4.* is still broken:
> >> dgp@dgp-p6803w:~$ flatpak run --command=gnucash-cli org.gnucash.GnuCash
> >> --quotes get /home/dgp/GnuCash/ubuntu-DGPickett.gnucashMissing data file
> >> parameter
> >> gnucash-cli [options] [datafile] - GnuCash, accounting for personal and
> >> small business finance:
> >> Common Options:  -h [ --help ]  Show this help message  -v [
> >> --version ]   Show GnuCash version  --debugEnable
> >> debugging mode: provide deep detail in the  logs.
> >> 
> >>   This is equivalent to: --log "=info" --log
> >> 
> >> "qof=info"  --log "gnc=info"  --extra
> >> 
___
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] Command line quotes still not fixed

2023-04-05 Thread john
The namespace parameter is a regular expression, so .* will get the quotes from 
all of your namespaces.

Regards,
John Ralls


> On Apr 5, 2023, at 3:46 PM, David H  wrote:
> 
> What default namespace, look in YOUR security editor - as far as
> I know it's whatever you set up.  I have a vague recollection that it
> doesn't really care and will be happy with just a single character
> i.e. --namespace=x
> but don't quote me on that.
> 
> By the way your original email could do with some halfway decent formatting
> - see what the mailing list received at
> https://lists.gnucash.org/pipermail/gnucash-user/2023-April/106230.html you
> might like to tweak that to make it readable in future.
> 
> Cheers David H.
> 
> On Thu, 6 Apr 2023 at 07:46, David G. Pickett  wrote:
> 
>> I saw that later.  What's the default namespace?
>> 
>> 
>> -Original Message-
>> From: David H 
>> To: David G. Pickett 
>> Cc: gnucash-user@gnucash.org 
>> Sent: Wed, Apr 5, 2023 3:45 pm
>> Subject: Re: [GNC] Command line quotes still not fixed
>> 
>> And you'll see there's a whole other thread on this -
>> https://lists.gnucash.org/pipermail/gnucash-user/2023-April/106181.html.
>> Bug report at https://bugs.gnucash.org/show_bug.cgi?id=798815
>> 
>> If you include a namespace parameter for now it will work.
>> 
>> Cheers David H.
>> 
>> On Wed, 5 Apr 2023 at 23:00, David G. Pickett via gnucash-user <
>> gnucash-user@gnucash.org> wrote:
>> 
>> I can still only update quotes with the interactive button, the flatpak
>> run gnucash command that ran in 4.* is still broken:
>> dgp@dgp-p6803w:~$ flatpak run --command=gnucash-cli org.gnucash.GnuCash
>> --quotes get /home/dgp/GnuCash/ubuntu-DGPickett.gnucashMissing data file
>> parameter
>> gnucash-cli [options] [datafile] - GnuCash, accounting for personal and
>> small business finance:
>> Common Options:  -h [ --help ]  Show this help message  -v [
>> --version ]   Show GnuCash version  --debugEnable
>> debugging mode: provide deep detail in the  logs.
>>   This is equivalent to: --log "=info" --log
>> "qof=info"  --log "gnc=info"  --extra
>>  Enable extra/development/debugging features.  --log arg  Log
>> level overrides, of the form
>> "modulename={debug,info,warn,crit,error}"
>> Examples: "--log qof=debug" or "--log
>> gnc.backend.file.sx=info" This can be invoked
>> multiple times.  --pathsShow paths  --logto arg
>> File to log into; defaults to "/tmp/gnucash.trace";
>> can be "stderr" or "stdout".
>> Price Quotes Retrieval Options:  -Q [ --quotes ] argExecute price
>> quote related commands. The following  commands are
>> supported.info: Show
>> Finance::Quote version and exposed quote
>> sources.get: Fetch current quotes for all
>> foreign  currencies and stocks in the given
>> GnuCash  datafile.
>> dump: Fetch current quotes for specified currencies
>>   or stocks from a specified namespace and print
>>   the results to the console.
>> This must be followed with a source and one or
>> more symbols, unless the source is "currency"
>> in which case it must be followed with two or
>> more symbols, the first of which is the
>>   currency in which exchange rates for the rest
>>   will be quoted.   --namespace arg
>>Regular expression determining which namespace
>> commodities will be retrieved for when using the get
>>   command  -V [ --verbose ]   When using the dump command list all of
>> the parameters Finance::Quote returns for the
>> symbol instead of the  ones that Gnucash requires.
>> Report Generation Options:  -R [ --report ] argExecute report related
>> commands. The following  commands are supported.
>>list: Lists available
>> reports.   show: Describe the options modified in
>> the named  report. A datafile may be
>> specified to  describe some saved options.
>>

Re: [GNC] Command line quotes still not fixed

2023-04-05 Thread David H
What default namespace, look in YOUR security editor - as far as
I know it's whatever you set up.  I have a vague recollection that it
doesn't really care and will be happy with just a single character
i.e. --namespace=x
but don't quote me on that.

By the way your original email could do with some halfway decent formatting
- see what the mailing list received at
https://lists.gnucash.org/pipermail/gnucash-user/2023-April/106230.html you
might like to tweak that to make it readable in future.

Cheers David H.

On Thu, 6 Apr 2023 at 07:46, David G. Pickett  wrote:

> I saw that later.  What's the default namespace?
>
>
> -Original Message-
> From: David H 
> To: David G. Pickett 
> Cc: gnucash-user@gnucash.org 
> Sent: Wed, Apr 5, 2023 3:45 pm
> Subject: Re: [GNC] Command line quotes still not fixed
>
> And you'll see there's a whole other thread on this -
> https://lists.gnucash.org/pipermail/gnucash-user/2023-April/106181.html.
> Bug report at https://bugs.gnucash.org/show_bug.cgi?id=798815
>
> If you include a namespace parameter for now it will work.
>
> Cheers David H.
>
> On Wed, 5 Apr 2023 at 23:00, David G. Pickett via gnucash-user <
> gnucash-user@gnucash.org> wrote:
>
> I can still only update quotes with the interactive button, the flatpak
> run gnucash command that ran in 4.* is still broken:
> dgp@dgp-p6803w:~$ flatpak run --command=gnucash-cli org.gnucash.GnuCash
> --quotes get /home/dgp/GnuCash/ubuntu-DGPickett.gnucashMissing data file
> parameter
> gnucash-cli [options] [datafile] - GnuCash, accounting for personal and
> small business finance:
> Common Options:  -h [ --help ]  Show this help message  -v [
> --version ]   Show GnuCash version  --debugEnable
> debugging mode: provide deep detail in the  logs.
>This is equivalent to: --log "=info" --log
> "qof=info"  --log "gnc=info"  --extra
>   Enable extra/development/debugging features.  --log arg  Log
> level overrides, of the form
>  "modulename={debug,info,warn,crit,error}"
>  Examples: "--log qof=debug" or "--log
> gnc.backend.file.sx=info" This can be invoked
> multiple times.  --pathsShow paths  --logto arg
> File to log into; defaults to "/tmp/gnucash.trace";
>  can be "stderr" or "stdout".
> Price Quotes Retrieval Options:  -Q [ --quotes ] argExecute price
> quote related commands. The following  commands are
> supported.info: Show
> Finance::Quote version and exposed quote
>  sources.get: Fetch current quotes for all
> foreign  currencies and stocks in the given
> GnuCash  datafile.
>  dump: Fetch current quotes for specified currencies
>or stocks from a specified namespace and print
>the results to the console.
>  This must be followed with a source and one or
>  more symbols, unless the source is "currency"
>  in which case it must be followed with two or
>  more symbols, the first of which is the
>currency in which exchange rates for the rest
>will be quoted.   --namespace arg
> Regular expression determining which namespace
>  commodities will be retrieved for when using the get
>command  -V [ --verbose ]   When using the dump command list all of
> the parameters Finance::Quote returns for the
> symbol instead of the  ones that Gnucash requires.
> Report Generation Options:  -R [ --report ] argExecute report related
> commands. The following  commands are supported.
> list: Lists available
> reports.   show: Describe the options modified in
> the named  report. A datafile may be
> specified to  describe some saved options.
>  run: Run the named report in the given GnuCash
> datafile.   --name arg
>Name of the report to run
> --export-type arg  Specify export type
> --output-file arg  Output file for report
> dgp@dgp-p6803w:~$ ls -l
> /home/dgp/GnuCash/ubuntu-DGPickett.gnucash-rw-rw-r-- 2 dgp dgp 2899938 Apr
> 4 17:55 /home/dgp/GnuCash/ubuntu-DGPickett.gnucashdgp@dgp-p6803w:~$
>
> __

Re: [GNC] Command line quotes still not fixed

2023-04-05 Thread David G. Pickett via gnucash-user
I saw that later.  What's the default namespace?


-Original Message-
From: David H 
To: David G. Pickett 
Cc: gnucash-user@gnucash.org 
Sent: Wed, Apr 5, 2023 3:45 pm
Subject: Re: [GNC] Command line quotes still not fixed

And you'll see there's a whole other thread on this - 
https://lists.gnucash.org/pipermail/gnucash-user/2023-April/106181.html.  Bug 
report at https://bugs.gnucash.org/show_bug.cgi?id=798815

If you include a namespace parameter for now it will work.
Cheers David H.
On Wed, 5 Apr 2023 at 23:00, David G. Pickett via gnucash-user 
 wrote:

I can still only update quotes with the interactive button, the flatpak run 
gnucash command that ran in 4.* is still broken:
dgp@dgp-p6803w:~$ flatpak run --command=gnucash-cli org.gnucash.GnuCash 
--quotes get /home/dgp/GnuCash/ubuntu-DGPickett.gnucashMissing data file 
parameter
gnucash-cli [options] [datafile] - GnuCash, accounting for personal and small 
business finance:
Common Options:  -h [ --help ]          Show this help message  -v [ --version 
]       Show GnuCash version  --debug                Enable debugging mode: 
provide deep detail in the                          logs.                       
  This is equivalent to: --log "=info" --log "qof=info"                         
 --log "gnc=info"  --extra                Enable extra/development/debugging 
features.  --log arg              Log level overrides, of the form              
            "modulename={debug,info,warn,crit,error}"                         
Examples: "--log qof=debug" or "--log                          
gnc.backend.file.sx=info"                         This can be invoked multiple 
times.  --paths                Show paths  --logto arg            File to log 
into; defaults to "/tmp/gnucash.trace";                          can be 
"stderr" or "stdout".
Price Quotes Retrieval Options:  -Q [ --quotes ] arg    Execute price quote 
related commands. The following                          commands are 
supported.                                                    info: Show 
Finance::Quote version and exposed quote                                  
sources.                            get: Fetch current quotes for all foreign   
                               currencies and stocks in the given GnuCash       
                           datafile.                           dump: Fetch 
current quotes for specified currencies                                  or 
stocks from a specified namespace and print                                 the 
results to the console.                                 This must be followed 
with a source and one or                                 more symbols, unless 
the source is "currency"                                  in which case it must 
be followed with two or                                  more symbols, the 
first of which is the                                  currency in which 
exchange rates for the rest                                  will be quoted.    
                       --namespace arg        Regular expression determining 
which namespace                          commodities will be retrieved for when 
using the get                          command  -V [ --verbose ]       When 
using the dump command list all of the parameters                         
Finance::Quote returns for the symbol instead of the                          
ones that Gnucash requires.
Report Generation Options:  -R [ --report ] arg    Execute report related 
commands. The following                          commands are supported.        
                                            list: Lists available reports.      
                     show: Describe the options modified in the named           
                       report. A datafile may be specified to                   
               describe some saved options.                           run: Run 
the named report in the given GnuCash                                 datafile. 
                          --name arg             Name of the report to run      
                     --export-type arg      Specify export type                 
          --output-file arg      Output file for report                         
dgp@dgp-p6803w:~$ ls -l /home/dgp/GnuCash/ubuntu-DGPickett.gnucash-rw-rw-r-- 2 
dgp dgp 2899938 Apr  4 17:55 
/home/dgp/GnuCash/ubuntu-DGPickett.gnucashdgp@dgp-p6803w:~$
___
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.g

Re: [GNC] Command line quotes still not fixed

2023-04-05 Thread David H
And you'll see there's a whole other thread on this -
https://lists.gnucash.org/pipermail/gnucash-user/2023-April/106181.html.
Bug report at https://bugs.gnucash.org/show_bug.cgi?id=798815

If you include a namespace parameter for now it will work.

Cheers David H.

On Wed, 5 Apr 2023 at 23:00, David G. Pickett via gnucash-user <
gnucash-user@gnucash.org> wrote:

> I can still only update quotes with the interactive button, the flatpak
> run gnucash command that ran in 4.* is still broken:
> dgp@dgp-p6803w:~$ flatpak run --command=gnucash-cli org.gnucash.GnuCash
> --quotes get /home/dgp/GnuCash/ubuntu-DGPickett.gnucashMissing data file
> parameter
> gnucash-cli [options] [datafile] - GnuCash, accounting for personal and
> small business finance:
> Common Options:  -h [ --help ]  Show this help message  -v [
> --version ]   Show GnuCash version  --debugEnable
> debugging mode: provide deep detail in the  logs.
>This is equivalent to: --log "=info" --log
> "qof=info"  --log "gnc=info"  --extra
>   Enable extra/development/debugging features.  --log arg  Log
> level overrides, of the form
>  "modulename={debug,info,warn,crit,error}"
>  Examples: "--log qof=debug" or "--log
> gnc.backend.file.sx=info" This can be invoked
> multiple times.  --pathsShow paths  --logto arg
> File to log into; defaults to "/tmp/gnucash.trace";
>  can be "stderr" or "stdout".
> Price Quotes Retrieval Options:  -Q [ --quotes ] argExecute price
> quote related commands. The following  commands are
> supported.info: Show
> Finance::Quote version and exposed quote
>  sources.get: Fetch current quotes for all
> foreign  currencies and stocks in the given
> GnuCash  datafile.
>  dump: Fetch current quotes for specified currencies
>or stocks from a specified namespace and print
>the results to the console.
>  This must be followed with a source and one or
>  more symbols, unless the source is "currency"
>  in which case it must be followed with two or
>  more symbols, the first of which is the
>currency in which exchange rates for the rest
>will be quoted.   --namespace arg
> Regular expression determining which namespace
>  commodities will be retrieved for when using the get
>command  -V [ --verbose ]   When using the dump command list all of
> the parameters Finance::Quote returns for the
> symbol instead of the  ones that Gnucash requires.
> Report Generation Options:  -R [ --report ] argExecute report related
> commands. The following  commands are supported.
> list: Lists available
> reports.   show: Describe the options modified in
> the named  report. A datafile may be
> specified to  describe some saved options.
>  run: Run the named report in the given GnuCash
> datafile.   --name arg
>Name of the report to run
> --export-type arg  Specify export type
> --output-file arg  Output file for report
> dgp@dgp-p6803w:~$ ls -l
> /home/dgp/GnuCash/ubuntu-DGPickett.gnucash-rw-rw-r-- 2 dgp dgp 2899938 Apr
> 4 17:55 /home/dgp/GnuCash/ubuntu-DGPickett.gnucashdgp@dgp-p6803w:~$
> ___
> 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.