Re: [GNC] Finance::Quote on Mac M1

2021-08-16 Thread John Ralls

Support for gtk-osx is on its mailing list, 
https://mail.gnome.org/mailman/listinfo/gtk-osx-users-list, but before you go 
there I'll remind you that one of gtk-osx's basic requirements is that you must 
not have Homebrew or MacPorts visible to it.

Since you have MacPorts installed already the simplest way forward is to use 
that to build GnuCash. 

That said there's no shared code between anything to do with GnuCash and perl 
or any CPAN modules beyond the macOS SDK. Building GnuCash from source won't 
help you get Finance::Quote going.

Regards,
John Ralls

> On Aug 16, 2021, at 7:18 AM, Peter West  wrote:
> 
> I removed the offending PREFIX line from jhbuildrc-custom, and immediately 
> ran into a similar problem.
> 
> File "/Users/gtkdev/Source/jhbuild/jhbuild/config.py", line 194, in load
>execfile(filename, config)
>  File "/Users/gtkdev/Source/jhbuild/jhbuild/utils/compat.py", line 67, in 
> execfile
>exec(code, globals, locals)
>  File "/Users/gtkdev/.config/jhbuildrc", line 470, in 
>exec(compile(open(_user_rc, "rb").read(), _user_rc, 'exec'))
>  File "/Users/gtkdev/.config/jhbuildrc-custom", line 26, in 
>module_extra_env['icu'] = {'CXXFLAGS':os.environ['CXXFLAGS'] + ' 
> -std=c++17'}
>  File 
> "/opt/local/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/os.py",
>  line 675, in __getitem__
>raise KeyError(key) from None
> KeyError: 'CXXFLAGS'
> jhbuild: could not load config file
> 
> In this one, there is obviously a default value, but the Error is propagating 
> all the way up.
> 
> Peter
> 
> 
> —
> Peter West
> p...@ehealth.id.au
> “For behold, when the sound of your greeting came to my ears, the baby in my 
> womb leaped for joy.”
> 
>> On 16 Aug 2021, at 8:21 pm, Peter West  wrote:
>> 
>> I’ve decided to go the whole hog and build GNC. Hopefully, I can get 
>> M1-specific GNC and Finance::Quote working together without any mysterious 
>> issues.
>> 
>> After gtk-osx-setup.sh, I try to run jhbuild bootstrap-gtk-osx, and it fails 
>> immediately.
>> 
>> ~ 20:14:24$ jhbuild bootstrap-gtk-osx
>> Loading .env environment variables...
>> Traceback (most recent call last):
>>  File "/Users/gtkdev/Source/jhbuild/jhbuild/config.py", line 194, in load
>>execfile(filename, config)
>>  File "/Users/gtkdev/Source/jhbuild/jhbuild/utils/compat.py", line 67, in 
>> execfile
>>exec(code, globals, locals)
>>  File "/Users/gtkdev/.config/jhbuildrc", line 470, in 
>>exec(compile(open(_user_rc, "rb").read(), _user_rc, 'exec'))
>>  File "/Users/gtkdev/.config/jhbuildrc-custom", line 3, in 
>>prefix = os.environ['PREFIX']
>>  File 
>> "/opt/local/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/os.py",
>>  line 675, in __getitem__
>>raise KeyError(key) from None
>> KeyError: 'PREFIX'
>> jhbuild: could not load config file
>> 
>> 
>> I'
>> 
>> The first thing in .config/jhbuildrc-custom is
>> prefix = os.environ['PREFIX’]
>> 
>> So there is no envar PREFIX defined in my environment. That’s easy enough to 
>> fix, but what is it supposed to be? Should this Error jusst be caught and 
>> defaulted?
>> 
>> I don’t do python, so I don’t know how the error/exception process works.
>> 
>> Peter
>> 
>> —
>> Peter West
>> p...@ehealth.id.au 
>> “For behold, when the sound of your greeting came to my ears, the baby in my 
>> womb leaped for joy.”
>> 
>>> On 4 Aug 2021, at 7:39 pm, Geoff >> > wrote:
>>> 
>>> Yes, I don't like doing forced installations either, but this particular 
>>> module isn't very important in the overall Finance::Quote scheme of events.
>>> 
>>> Here are two suggestions.
>>> 
>>> (1) Hack.  I'm not familiar with MAC directory structures, but I had a look 
>>> at the particular test that is failing, and I reckon that if you create an 
>>> empty file here it might just trick it into passing:
>>> 
>>> /System/Library/Perl/5.30/darwin-thread-multi-2level/CORE/keywords.h
>>> 
>>> 
>>> (2) Manual install of B::Keywords without using CPAN:
>>> (a) Download B-Keywords-1.22.tar.gz from here:
>>> https://metacpan.org/pod/B::Keywords 
>>> 
>>> (b) Unzip and untar it to a temp directory.
>>> 
>>> (c) From the command line in that directory:
>>> perl Makefile.pl
>>> gmake
>>> gmake test
>>> gmake install
>>> 
>>> [Excuse my MAC ignorance - hopefully you have gmake or an equivalent make 
>>> command that will do the job.]
>>> 
>>> If either of those work, go back to CPAN and try to install Finance::Quote 
>>> normally.
>>> 
>>> 
>>> Good luck.
>>> 
>>> Geoff
>>> =
>>> 
>>> On 4/08/2021 6:38 pm, Peter West wrote:
 It sill reports the same failure, even though I run
 sudo cpan -f -i B::Keywords
 —
 Peter West
 p...@ehealth.id.au 
 But immediately Jesus spoke to them, saying, “Take heart; it is I. Do not 
 be afraid.”
> On 4 Aug 2021, at 5:53 pm, Geoff  

Re: [GNC] Finance::Quote on Mac M1

2021-08-16 Thread Peter West
I removed the offending PREFIX line from jhbuildrc-custom, and immediately ran 
into a similar problem.

File "/Users/gtkdev/Source/jhbuild/jhbuild/config.py", line 194, in load
execfile(filename, config)
  File "/Users/gtkdev/Source/jhbuild/jhbuild/utils/compat.py", line 67, in 
execfile
exec(code, globals, locals)
  File "/Users/gtkdev/.config/jhbuildrc", line 470, in 
exec(compile(open(_user_rc, "rb").read(), _user_rc, 'exec'))
  File "/Users/gtkdev/.config/jhbuildrc-custom", line 26, in 
module_extra_env['icu'] = {'CXXFLAGS':os.environ['CXXFLAGS'] + ' 
-std=c++17'}
  File 
"/opt/local/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/os.py",
 line 675, in __getitem__
raise KeyError(key) from None
KeyError: 'CXXFLAGS'
jhbuild: could not load config file

In this one, there is obviously a default value, but the Error is propagating 
all the way up.

Peter


—
Peter West
p...@ehealth.id.au
“For behold, when the sound of your greeting came to my ears, the baby in my 
womb leaped for joy.”

> On 16 Aug 2021, at 8:21 pm, Peter West  wrote:
> 
> I’ve decided to go the whole hog and build GNC. Hopefully, I can get 
> M1-specific GNC and Finance::Quote working together without any mysterious 
> issues.
> 
> After gtk-osx-setup.sh, I try to run jhbuild bootstrap-gtk-osx, and it fails 
> immediately.
> 
> ~ 20:14:24$ jhbuild bootstrap-gtk-osx
> Loading .env environment variables...
> Traceback (most recent call last):
>   File "/Users/gtkdev/Source/jhbuild/jhbuild/config.py", line 194, in load
> execfile(filename, config)
>   File "/Users/gtkdev/Source/jhbuild/jhbuild/utils/compat.py", line 67, in 
> execfile
> exec(code, globals, locals)
>   File "/Users/gtkdev/.config/jhbuildrc", line 470, in 
> exec(compile(open(_user_rc, "rb").read(), _user_rc, 'exec'))
>   File "/Users/gtkdev/.config/jhbuildrc-custom", line 3, in 
> prefix = os.environ['PREFIX']
>   File 
> "/opt/local/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/os.py",
>  line 675, in __getitem__
> raise KeyError(key) from None
> KeyError: 'PREFIX'
> jhbuild: could not load config file
> 
> 
> I'
> 
> The first thing in .config/jhbuildrc-custom is
> prefix = os.environ['PREFIX’]
> 
> So there is no envar PREFIX defined in my environment. That’s easy enough to 
> fix, but what is it supposed to be? Should this Error jusst be caught and 
> defaulted?
> 
> I don’t do python, so I don’t know how the error/exception process works.
> 
> Peter
> 
> —
> Peter West
> p...@ehealth.id.au 
> “For behold, when the sound of your greeting came to my ears, the baby in my 
> womb leaped for joy.”
> 
>> On 4 Aug 2021, at 7:39 pm, Geoff > > wrote:
>> 
>> Yes, I don't like doing forced installations either, but this particular 
>> module isn't very important in the overall Finance::Quote scheme of events.
>> 
>> Here are two suggestions.
>> 
>> (1) Hack.  I'm not familiar with MAC directory structures, but I had a look 
>> at the particular test that is failing, and I reckon that if you create an 
>> empty file here it might just trick it into passing:
>> 
>> /System/Library/Perl/5.30/darwin-thread-multi-2level/CORE/keywords.h
>> 
>> 
>> (2) Manual install of B::Keywords without using CPAN:
>> (a) Download B-Keywords-1.22.tar.gz from here:
>> https://metacpan.org/pod/B::Keywords 
>> 
>> (b) Unzip and untar it to a temp directory.
>> 
>> (c) From the command line in that directory:
>> perl Makefile.pl
>> gmake
>> gmake test
>> gmake install
>> 
>> [Excuse my MAC ignorance - hopefully you have gmake or an equivalent make 
>> command that will do the job.]
>> 
>> If either of those work, go back to CPAN and try to install Finance::Quote 
>> normally.
>> 
>> 
>> Good luck.
>> 
>> Geoff
>> =
>> 
>> On 4/08/2021 6:38 pm, Peter West wrote:
>>> It sill reports the same failure, even though I run
>>> sudo cpan -f -i B::Keywords
>>> —
>>> Peter West
>>> p...@ehealth.id.au 
>>> But immediately Jesus spoke to them, saying, “Take heart; it is I. Do not 
>>> be afraid.”
 On 4 Aug 2021, at 5:53 pm, Geoff >>> > wrote:
 
 Try and force the installation of B::Keywords:
 
 cpan> force install B::Keywords
 
 From: https://www.thegeekstuff.com/2013/06/cpan-force-install-perl-module/ 
 
 
 If that works, try to reinstall Finance::Quote normally.
 
 Fingers crossed.
 
 Geoff
 =
 
 On 4/08/2021 5:24 pm, Peter West wrote:
> Here’s the output.
> Rosie:.30/darwin-thread-multi-2level 16:53:50$ sudo cpan -i Finance::Quote
> Password:
> Loading internal logger. Log::Log4perl recommended for better logging
> CPAN::SQLite not installed, trying to work without
> Reading 

Re: [GNC] Finance::Quote on Mac M1

2021-08-16 Thread Peter West
I’ve decided to go the whole hog and build GNC. Hopefully, I can get 
M1-specific GNC and Finance::Quote working together without any mysterious 
issues.

After gtk-osx-setup.sh, I try to run jhbuild bootstrap-gtk-osx, and it fails 
immediately.

~ 20:14:24$ jhbuild bootstrap-gtk-osx
Loading .env environment variables...
Traceback (most recent call last):
  File "/Users/gtkdev/Source/jhbuild/jhbuild/config.py", line 194, in load
execfile(filename, config)
  File "/Users/gtkdev/Source/jhbuild/jhbuild/utils/compat.py", line 67, in 
execfile
exec(code, globals, locals)
  File "/Users/gtkdev/.config/jhbuildrc", line 470, in 
exec(compile(open(_user_rc, "rb").read(), _user_rc, 'exec'))
  File "/Users/gtkdev/.config/jhbuildrc-custom", line 3, in 
prefix = os.environ['PREFIX']
  File 
"/opt/local/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/os.py",
 line 675, in __getitem__
raise KeyError(key) from None
KeyError: 'PREFIX'
jhbuild: could not load config file


I'

The first thing in .config/jhbuildrc-custom is
prefix = os.environ['PREFIX’]

So there is no envar PREFIX defined in my environment. That’s easy enough to 
fix, but what is it supposed to be? Should this Error jusst be caught and 
defaulted?

I don’t do python, so I don’t know how the error/exception process works.

Peter

—
Peter West
p...@ehealth.id.au
“For behold, when the sound of your greeting came to my ears, the baby in my 
womb leaped for joy.”

> On 4 Aug 2021, at 7:39 pm, Geoff  wrote:
> 
> Yes, I don't like doing forced installations either, but this particular 
> module isn't very important in the overall Finance::Quote scheme of events.
> 
> Here are two suggestions.
> 
> (1) Hack.  I'm not familiar with MAC directory structures, but I had a look 
> at the particular test that is failing, and I reckon that if you create an 
> empty file here it might just trick it into passing:
> 
> /System/Library/Perl/5.30/darwin-thread-multi-2level/CORE/keywords.h
> 
> 
> (2) Manual install of B::Keywords without using CPAN:
> (a) Download B-Keywords-1.22.tar.gz from here:
> https://metacpan.org/pod/B::Keywords
> 
> (b) Unzip and untar it to a temp directory.
> 
> (c) From the command line in that directory:
> perl Makefile.pl
> gmake
> gmake test
> gmake install
> 
> [Excuse my MAC ignorance - hopefully you have gmake or an equivalent make 
> command that will do the job.]
> 
> If either of those work, go back to CPAN and try to install Finance::Quote 
> normally.
> 
> 
> Good luck.
> 
> Geoff
> =
> 
> On 4/08/2021 6:38 pm, Peter West wrote:
>> It sill reports the same failure, even though I run
>> sudo cpan -f -i B::Keywords
>> —
>> Peter West
>> p...@ehealth.id.au 
>> But immediately Jesus spoke to them, saying, “Take heart; it is I. Do not be 
>> afraid.”
>>> On 4 Aug 2021, at 5:53 pm, Geoff >> > wrote:
>>> 
>>> Try and force the installation of B::Keywords:
>>> 
>>> cpan> force install B::Keywords
>>> 
>>> From: https://www.thegeekstuff.com/2013/06/cpan-force-install-perl-module/ 
>>> 
>>> 
>>> If that works, try to reinstall Finance::Quote normally.
>>> 
>>> Fingers crossed.
>>> 
>>> Geoff
>>> =
>>> 
>>> On 4/08/2021 5:24 pm, Peter West wrote:
 Here’s the output.
 Rosie:.30/darwin-thread-multi-2level 16:53:50$ sudo cpan -i Finance::Quote
 Password:
 Loading internal logger. Log::Log4perl recommended for better logging
 CPAN::SQLite not installed, trying to work without
 Reading '/Users/pbw/.cpan/sources/authors/01mailrc.txt.gz'
 DONE
 Reading '/Users/pbw/.cpan/sources/modules/02packages.details.txt.gz'
   Database was generated on Wed, 04 Aug 2021 04:17:03 GMT
 .
   New CPAN.pm version (v2.28) available.
   [Currently running version is v2.22]
   You might want to try
 install CPAN
 reload cpan
   to both upgrade CPAN.pm and run the new version without leaving
   the current session.
 ...DONE
 Reading '/Users/pbw/.cpan/sources/modules/03modlist.data.gz'
 DONE
 Running install for module 'Finance::Quote'
   CPAN: Module::Signature security checks disabled because 
 Module::Signature
   not installed.  Please consider installing the Module::Signature module.
   You may also need to be able to connect over the Internet to the public
   key servers like pool.sks-keyservers.net 
  or pgp.mit.edu .
 Checksum for 
 /Users/pbw/.cpan/sources/authors/id/B/BP/BPSCHUCK/Finance-Quote-1.51.tar.gz
  ok
 Configuring B/BP/BPSCHUCK/Finance-Quote-1.51.tar.gz with Makefile.PL
 CPAN::Reporter not installed.  No reports will be sent.
 Checking if your kit is 

Re: [GNC] Balance not updating

2021-08-16 Thread Vinayak Vatsal via gnucash-user
Thanks for the suggestion.

This problem seems to have mysteriously disappeared. It persisted through one 
full session, and an eventual crash, but relaunching GnuCash seems to have 
fixed it. I don’t really know what happened; maybe some transient data 
corruption?




> On Aug 13, 2021, at 7:14 PM, Chris Good  wrote:
> 
> Message: 1
> Date: Wed, 11 Aug 2021 08:53:14 -0700
> From: Vinayak Vatsal 
> To: gnucash-user@gnucash.org
> Subject: [GNC] Balance not updating
> Message-ID: <435ff31b-9eb2-4c06-90e3-51b6d8081...@mac.com>
> Content-Type: text/plain; charset=utf-8
> 
> Hello,
> 
> I have recently encountered the following problem:
> 
> Importing OFX transactions into one of my credit card accounts results in an
> error, where the correct credit or withdrawal is shown, but the balance
> column just comes up as zero.
> 
> This is a recent thing, and I suspect it has something to do with the fact
> that the credit card was recently issued (the old one expired) and there?s a
> new ID number somewhere that is confusing.
> 
> I tried things like changing the account ID to some random value and
> reimporting, and also just importing a CSV file with the same data, but the
> problem persists.
> 
> I can manually enter transactions without any problem.
> 
> Any ideas how to fix this?
> 
> Thank you.
> 
> Nike
> 
> 
> Hi Nike,
> 
> I'm not sure I understand your problem, but maybe your transactions are
> being imported into a different account
> than you are expecting.
> 
> If you go into Tools, "Import Map Editor", and select "Online", you can see
> the accounts that you have previously
> selected to match the  bank id's in your .ofx files.
> If you delete the incorrect match, your next ofx import will ask you to
> select the matching account again.
> 
> If I'm not understanding your problem, perhaps a partial screen dump would
> help us understand?
> 
> Regards, Chris Good
> 

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