Re: [GNC] Finance Quote Not working on MacBook Air M1 chip

2021-07-04 Thread John Ralls
Super. I guess you needed to install JSON::Parse and maybe other dependencies 
in the Rosetta instance. No doubt it's lost now but I wonder if during the 
Rosetta install cpan saw that it was already installed and couldn't tell that 
it was for the wrong architecture.

Regards,
John Ralls


> On Jul 3, 2021, at 11:35 PM, Deepti Randad  wrote:
> 
> Hey John - it worked after some trouble shooting - now Finance:Quote is 
> “recognised” by the GnuCash GUI - Again - Thanks for your help !!
> 
> Regards,
> Kamlesh
> 
>> On 04-Jul-2021, at 11:52 AM, Deepti Randad  wrote:
>> 
>> I was able to create a “terminal instance” to run under Rosetta2 and also 
>> then was able to install Finance::Quote using gnc-fq-update.
>> 
>> However, when I tried to run the command "echo '(yahoo_json "CSCO")' | 
>> ./gnc-fq-helper”, I get a bunch of errors - as follows: (I have not had 
>> chance to troubleshoot these yet, maybe next weekend)
>> 
>> Thanks John for your guidance so far.
>> 
>> 
>> Can't load 
>> '/Library/Perl/5.30/darwin-thread-multi-2level/auto/JSON/Parse/Parse.bundle' 
>> for module JSON::Parse: 
>> dlopen(/Library/Perl/5.30/darwin-thread-multi-2level/auto/JSON/Parse/Parse.bundle,
>>  1): no suitable image found.  Did find:
>>  
>> /Library/Perl/5.30/darwin-thread-multi-2level/auto/JSON/Parse/Parse.bundle: 
>> mach-o, but wrong architecture
>>  
>> /Library/Perl/5.30/darwin-thread-multi-2level/auto/JSON/Parse/Parse.bundle: 
>> mach-o, but wrong architecture at /System/Library/Perl/5.30/XSLoader.pm line 
>> 96.
>>  at /Library/Perl/5.30/darwin-thread-multi-2level/JSON/Parse.pm line 23.
>> Compilation failed in require at 
>> /Library/Perl/5.30/Finance/Quote/MorningstarAU.pm line 27.
>> BEGIN failed--compilation aborted at 
>> /Library/Perl/5.30/Finance/Quote/MorningstarAU.pm line 27.
>> Compilation failed in require at (eval 301) line 1.
>> BEGIN failed--compilation aborted at (eval 301) line 1.
>>  at ./gnc-fq-helper line 325.
>> Can't locate object method "methods" via package 
>> "Finance::Quote::MorningstarAU" at /Library/Perl/5.30/Finance/Quote.pm line 
>> 120.
>> 
>> 
>>> On 01-Jul-2021, at 10:09 PM, John Ralls  wrote:
>>> 
>>> OK. I suspect that it's because GnuCash is running under Rosetta2 and that 
>>> forces the Intel perl. Try following the instructions in 
>>> https://osxdaily.com/2020/11/18/how-run-homebrew-x86-terminal-apple-silicon-mac/
>>>  to create a Terminal instance that runs under Rosetta2 and use that to run 
>>> gnc-fq-update.
>>> 
>>> Regards,
>>> John Ralls
>>> 
>>> 
>>> 
 On Jun 30, 2021, at 5:31 AM, Deepti Randad  wrote:
 
 Hallo John - Many Thanks for your response.
 
 I ran the GUI from the terminal command prompt as you have suggested - 
 however, the problem remains the same - the application does not “get” / 
 “find” Finance::Quote.
 
 Regards,
 Kamlesh
 
 Regards,
 Kamlesh
 
> On 29-Jun-2021, at 8:43 AM, John Ralls  wrote:
> 
> /Applications/Gnucash.app/Contents/MacOS/Gnucash 
 
>>> 
>> 
> 

___
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] Finance Quote Not working on MacBook Air M1 chip

2021-07-04 Thread Deepti Randad via gnucash-user
Hey John - it worked after some trouble shooting - now Finance:Quote is 
“recognised” by the GnuCash GUI - Again - Thanks for your help !!

Regards,
Kamlesh

> On 04-Jul-2021, at 11:52 AM, Deepti Randad  wrote:
> 
> I was able to create a “terminal instance” to run under Rosetta2 and also 
> then was able to install Finance::Quote using gnc-fq-update.
> 
> However, when I tried to run the command "echo '(yahoo_json "CSCO")' | 
> ./gnc-fq-helper”, I get a bunch of errors - as follows: (I have not had 
> chance to troubleshoot these yet, maybe next weekend)
> 
> Thanks John for your guidance so far.
> 
> 
> Can't load 
> '/Library/Perl/5.30/darwin-thread-multi-2level/auto/JSON/Parse/Parse.bundle' 
> for module JSON::Parse: 
> dlopen(/Library/Perl/5.30/darwin-thread-multi-2level/auto/JSON/Parse/Parse.bundle,
>  1): no suitable image found.  Did find:
>   
> /Library/Perl/5.30/darwin-thread-multi-2level/auto/JSON/Parse/Parse.bundle: 
> mach-o, but wrong architecture
>   
> /Library/Perl/5.30/darwin-thread-multi-2level/auto/JSON/Parse/Parse.bundle: 
> mach-o, but wrong architecture at /System/Library/Perl/5.30/XSLoader.pm line 
> 96.
>  at /Library/Perl/5.30/darwin-thread-multi-2level/JSON/Parse.pm line 23.
> Compilation failed in require at 
> /Library/Perl/5.30/Finance/Quote/MorningstarAU.pm line 27.
> BEGIN failed--compilation aborted at 
> /Library/Perl/5.30/Finance/Quote/MorningstarAU.pm line 27.
> Compilation failed in require at (eval 301) line 1.
> BEGIN failed--compilation aborted at (eval 301) line 1.
>  at ./gnc-fq-helper line 325.
> Can't locate object method "methods" via package 
> "Finance::Quote::MorningstarAU" at /Library/Perl/5.30/Finance/Quote.pm line 
> 120.
> 
> 
>> On 01-Jul-2021, at 10:09 PM, John Ralls > > wrote:
>> 
>> OK. I suspect that it's because GnuCash is running under Rosetta2 and that 
>> forces the Intel perl. Try following the instructions in 
>> https://osxdaily.com/2020/11/18/how-run-homebrew-x86-terminal-apple-silicon-mac/
>>  
>> 
>>  to create a Terminal instance that runs under Rosetta2 and use that to run 
>> gnc-fq-update.
>> 
>> Regards,
>> John Ralls
>> 
>> 
>> 
>>> On Jun 30, 2021, at 5:31 AM, Deepti Randad >> > wrote:
>>> 
>>> Hallo John - Many Thanks for your response.
>>> 
>>> I ran the GUI from the terminal command prompt as you have suggested - 
>>> however, the problem remains the same - the application does not “get” / 
>>> “find” Finance::Quote.
>>> 
>>> Regards,
>>> Kamlesh
>>> 
>>> Regards,
>>> Kamlesh
>>> 
 On 29-Jun-2021, at 8:43 AM, John Ralls >>> > wrote:
 
 /Applications/Gnucash.app/Contents/MacOS/Gnucash 
>>> 
>> 
> 

___
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] Finance Quote Not working on MacBook Air M1 chip

2021-07-04 Thread Deepti Randad via gnucash-user
I was able to create a “terminal instance” to run under Rosetta2 and also then 
was able to install Finance::Quote using gnc-fq-update.

However, when I tried to run the command "echo '(yahoo_json "CSCO")' | 
./gnc-fq-helper”, I get a bunch of errors - as follows: (I have not had chance 
to troubleshoot these yet, maybe next weekend)

Thanks John for your guidance so far.


Can't load 
'/Library/Perl/5.30/darwin-thread-multi-2level/auto/JSON/Parse/Parse.bundle' 
for module JSON::Parse: 
dlopen(/Library/Perl/5.30/darwin-thread-multi-2level/auto/JSON/Parse/Parse.bundle,
 1): no suitable image found.  Did find:

/Library/Perl/5.30/darwin-thread-multi-2level/auto/JSON/Parse/Parse.bundle: 
mach-o, but wrong architecture

/Library/Perl/5.30/darwin-thread-multi-2level/auto/JSON/Parse/Parse.bundle: 
mach-o, but wrong architecture at /System/Library/Perl/5.30/XSLoader.pm line 96.
 at /Library/Perl/5.30/darwin-thread-multi-2level/JSON/Parse.pm line 23.
Compilation failed in require at 
/Library/Perl/5.30/Finance/Quote/MorningstarAU.pm line 27.
BEGIN failed--compilation aborted at 
/Library/Perl/5.30/Finance/Quote/MorningstarAU.pm line 27.
Compilation failed in require at (eval 301) line 1.
BEGIN failed--compilation aborted at (eval 301) line 1.
 at ./gnc-fq-helper line 325.
Can't locate object method "methods" via package 
"Finance::Quote::MorningstarAU" at /Library/Perl/5.30/Finance/Quote.pm line 120.


> On 01-Jul-2021, at 10:09 PM, John Ralls  wrote:
> 
> OK. I suspect that it's because GnuCash is running under Rosetta2 and that 
> forces the Intel perl. Try following the instructions in 
> https://osxdaily.com/2020/11/18/how-run-homebrew-x86-terminal-apple-silicon-mac/
>  to create a Terminal instance that runs under Rosetta2 and use that to run 
> gnc-fq-update.
> 
> Regards,
> John Ralls
> 
> 
> 
>> On Jun 30, 2021, at 5:31 AM, Deepti Randad  wrote:
>> 
>> Hallo John - Many Thanks for your response.
>> 
>> I ran the GUI from the terminal command prompt as you have suggested - 
>> however, the problem remains the same - the application does not “get” / 
>> “find” Finance::Quote.
>> 
>> Regards,
>> Kamlesh
>> 
>> Regards,
>> Kamlesh
>> 
>>> On 29-Jun-2021, at 8:43 AM, John Ralls  wrote:
>>> 
>>> /Applications/Gnucash.app/Contents/MacOS/Gnucash 
>> 
> 

___
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] Finance Quote Not working on MacBook Air M1 chip

2021-07-03 Thread Deepti Randad via gnucash-user
Hallo John - Many Thanks for your response.

I ran the GUI from the terminal command prompt as you have suggested - however, 
the problem remains the same - the application does not “get” / “find” 
Finance::Quote.

Regards,
Kamlesh

Regards,
Kamlesh

> On 29-Jun-2021, at 8:43 AM, John Ralls  wrote:
> 
>  /Applications/Gnucash.app/Contents/MacOS/Gnucash 

___
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] Finance Quote Not working on MacBook Air M1 chip

2021-07-01 Thread John Ralls
OK. I suspect that it's because GnuCash is running under Rosetta2 and that 
forces the Intel perl. Try following the instructions in 
https://osxdaily.com/2020/11/18/how-run-homebrew-x86-terminal-apple-silicon-mac/
 to create a Terminal instance that runs under Rosetta2 and use that to run 
gnc-fq-update.

Regards,
John Ralls



> On Jun 30, 2021, at 5:31 AM, Deepti Randad  wrote:
> 
> Hallo John - Many Thanks for your response.
> 
> I ran the GUI from the terminal command prompt as you have suggested - 
> however, the problem remains the same - the application does not “get” / 
> “find” Finance::Quote.
> 
> Regards,
> Kamlesh
> 
> Regards,
> Kamlesh
> 
>> On 29-Jun-2021, at 8:43 AM, John Ralls  wrote:
>> 
>>  /Applications/Gnucash.app/Contents/MacOS/Gnucash 
> 

___
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] Finance Quote Not working on MacBook Air M1 chip

2021-06-28 Thread John Ralls


> On Jun 27, 2021, at 4:05 AM, Deepti Randad via gnucash-user 
>  wrote:
> 
> Hallo Folks - 
> 
> I recently installed GnuCash on MacBook Air with the Apple M1 chip - the 
> GnuCash GUI itself seems to be working great. Then I tried installing 
> finance::quote to get stock quotes automatically, however, this has not been 
> working even after a lot of trouble shooting I did. Please find below the 
> steps I have taken. Any help / direction will be appreciated. Thanks.
> 
> Regards,
> Kamlesh
> 
> Finance Quote on MacOS with MacBook Air M1 chip 
> 
> In the GnuCash GUI, I get the following error message in the “Security 
> Editor” screen: 
>> Warning: Finance::Quote not installed properly < 
> and the rest of the fields below this are disabled. 
> I followed the installation instructions on 
> https://wiki.gnucash.org/wiki/Online_Quotes#Installing_Finance::Quote_on_macOS
>  
> 
> 
> The about page of the GUI shows:
> Version: 4.5
> Build ID: 4.5+(2021-03-27)
> Finance::Quote: -
> 
> I did the following for installation:
> 
> First, run the gnc-fq-update - this I had to run a couple of times, but it 
> succeeded. 
> 
> Now if I run it, I get the following:
> 
> Date::Manip is up to date (6.85).
> Finance::Quote is up to date (1.49)
> 
> Perldoc gives the following output:
> 
> perldoc -lm Finance::Quote
> /Library/Perl/5.30/Finance/Quote.pm
> 
> Then, I run the following command, gnc-fq-helper
> 
> echo '(yahoo_json "CSCO")' | ./gnc-fq-helper
> 
> This returns the data fetched:
> (("CSCO" (symbol . "CSCO") (gnc:time-no-zone . "2021-06-19 12:00:00") (last . 
> #e52.07) (currency . "USD")))
> 
> Another command I tried:
> 
> ./gnc-fq-dump currency USD EUR
> 1 USD = 0.8428 EUR
> 
> Therefore I am guessing Finance::Quote is working from command line.
> 
> ./gnc-fq-check 
> 
> ("1.49" "adig" "aex" "aiahk" "alphavantage" "amfiindia" "asegr" "asx" 
> "aufunds" "australia" "bamosz" "bet" "bmonesbittburns" "bourso" "bse" "bsero" 
> "canada" "canadamutual" "citywire" "cominvest" "cse" "deka" "dutch" 
> "dwsfunds" "europe" "fetch_live_currencies" "fidelity" "fidelity_direct" 
> "fidelityfixed" "financecanada" "finanzpartner" "finland" "fool" "france" 
> "ftfunds" "ftportfolios" "ftportfolios_direct" "fundlibrary" "goldmoney" 
> "greece" "hex" "hu" "hufund" "hungary" "hustock" "iexcloud" "indiamutual" 
> "known_currencies" "lerevenu" "maninv" "morningstar" "morningstarau" 
> "morningstarch" "morningstarjp" "mstaruk" "nasdaq" "nyse" "nz" "nzx" 
> "platinum" "romania" "seb_funds" "sixfunds" "sixshares" 
> "stockhousecanada_fund" "tdefunds" "tdwaterhouse" "tiaacref" "tnetuk" 
> "troweprice" "troweprice_direct" "trustnet" "tsp" "tsx" "uk_unit_trusts" 
> "ukfunds" "unionfunds" "usa" "usfedbonds" "vanguard" "vwd" "yahoo_json" 
> "yahoo_yql" "za" "za_unittrusts"

Try running 
  /Applications/Gnucash.app/Contents/MacOS/Gnucash 
from Terminal. Does that get it working?

Regards,
John Ralls

___
gnucash-user mailing list
gnucash-user@gnucash.org
To update your subscription preferences or to unsubscribe:
https://lists.gnucash.org/mailman/listinfo/gnucash-user
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.