Re: [GNC] ASX quotes not working

2020-10-14 Thread Geoff
Hmmm.  I can't reproduce your problem.  What version of perl are you 
running please John?


> perl -v

Thanks

Geoff
=

On 15/10/2020 4:09 pm, John Bonnett wrote:

Hi Geoff,

I had an error in naming the file. I had a space between the "X" and the 
"."! After fixing that I have a different error, so we are making progress.


It complains about line 138.

                 $info{$stock,$label} = %$decoded_json{$label_map{$label}};

I am not familiar with Perl syntax but I guess it does not like the 
"%$". It seems to me from the rest of the code that you have one or the 
other but not both as a prefix.


I tried just "%" and got lots of errors and then I noticed on line 116 
it looked like "$" was right, so I tried that and got this:


PS C:\Program Files (x86)\gnucash\bin> perl gnc-fq-dump ASX BHP
Global symbol "%decoded_json" requires explicit package name at 
C:/strawberry/perl/site/lib/Finance/Quote/ASX.pm line 138.

Compilation failed in require at (eval 20) line 1.
BEGIN failed--compilation aborted at (eval 20) line 1.
  at gnc-fq-dump line 166.
Undefined subroutine ::Quote::ASX::asx called at 
C:/strawberry/perl/site/lib/Finance/Quote.pm line 604.

PS C:\Program Files (x86)\gnucash\bin>

It is curious that, although I have "$decoded_json", it is referring to 
"%decoded_json".


Any thoughts?

John


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


Re: [GNC] ASX quotes not working

2020-10-14 Thread John Bonnett

Hi Geoff,

I had an error in naming the file. I had a space between the "X" and the 
"."! After fixing that I have a different error, so we are making progress.


It complains about line 138.

                $info{$stock,$label} = %$decoded_json{$label_map{$label}};

I am not familiar with Perl syntax but I guess it does not like the 
"%$". It seems to me from the rest of the code that you have one or the 
other but not both as a prefix.


I tried just "%" and got lots of errors and then I noticed on line 116 
it looked like "$" was right, so I tried that and got this:


PS C:\Program Files (x86)\gnucash\bin> perl gnc-fq-dump ASX BHP
Global symbol "%decoded_json" requires explicit package name at 
C:/strawberry/perl/site/lib/Finance/Quote/ASX.pm line 138.

Compilation failed in require at (eval 20) line 1.
BEGIN failed--compilation aborted at (eval 20) line 1.
 at gnc-fq-dump line 166.
Undefined subroutine ::Quote::ASX::asx called at 
C:/strawberry/perl/site/lib/Finance/Quote.pm line 604.

PS C:\Program Files (x86)\gnucash\bin>

It is curious that, although I have "$decoded_json", it is referring to 
"%decoded_json".


Any thoughts?

John

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


Re: [GNC] ASX quotes not working

2020-10-14 Thread Geoff

Hi John

No, there is no need to rebuild any libraries, these are just plain text 
perl source code files.


That error message implies that you successfully renamed the original 
ASX.pm file, but perhaps forgot step 4 of my instructions to rename the 
new one from "ASX.pm.txt" to "ASX.pm"?


Please see attached screenshot of what the Finance::Quote directory 
should look like - and do send a copy of yours if you can't get it working.


Regards

Geoff
=

On 15/10/2020 12:40 pm, John Bonnett wrote:

Hi Geoff,

Tried your instructions but got an error when I tried to test it. Do we 
need to build libraries again or something? I am not familiar with Perl 
development.


PS C:\Program Files (x86)\gnucash\bin> perl gnc-fq-dump ASX BHP
Can't locate Finance/Quote/ASX.pm in @INC (you may need to install the 
Finance::Quote::ASX module) (@INC contains: C:/strawberry/perl/site/lib 
C:/strawberry/perl/vendor/lib C:/strawberry/perl/lib .) at (eval 20) 
line 1.

BEGIN failed--compilation aborted at (eval 20) line 1.
  at gnc-fq-dump line 166.
Can't locate object method "methods" via package "Finance::Quote::ASX" 
(perhaps you forgot to load "Finance::Quote::ASX"?) at 
C:/strawberry/perl/site/lib/Finance/Quote.pm line 120.

PS C:\Program Files (x86)\gnucash\bin>

Best regards,

John Bonnett

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


Re: [GNC] ASX quotes not working

2020-10-14 Thread John Bonnett

Hi Geoff,

Tried your instructions but got an error when I tried to test it. Do we 
need to build libraries again or something? I am not familiar with Perl 
development.


PS C:\Program Files (x86)\gnucash\bin> perl gnc-fq-dump ASX BHP
Can't locate Finance/Quote/ASX.pm in @INC (you may need to install the 
Finance::Quote::ASX module) (@INC contains: C:/strawberry/perl/site/lib 
C:/strawberry/perl/vendor/lib C:/strawberry/perl/lib .) at (eval 20) line 1.

BEGIN failed--compilation aborted at (eval 20) line 1.
 at gnc-fq-dump line 166.
Can't locate object method "methods" via package "Finance::Quote::ASX" 
(perhaps you forgot to load "Finance::Quote::ASX"?) at 
C:/strawberry/perl/site/lib/Finance/Quote.pm line 120.

PS C:\Program Files (x86)\gnucash\bin>

Best regards,

John Bonnett

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


Re: [GNC] GNU won't open after upgrading to Catalina

2020-10-14 Thread David Cousens
Eric

You will need to use the file open dialog and navigate to the location of
your files and open them explicitly using it. After this GnuCash should open
normally. If you upgraded from a 3.x version there should be no problem. If
from a 2,x version you may need to upgrade to a 3.x version first as the
upgrade procedure fixes file format locations  and changes in locations for
user preference filesand ther were some changes between 2.x and 3.x
versions. You should also run Actions ->Check & Repair after each upgrade to
a higher version to fix any issues with the data file integrity

David Cousens



-
David Cousens
--
Sent from: http://gnucash.1415818.n4.nabble.com/GnuCash-User-f1415819.html
___
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.