Re: [GNC] installer build failure, libgnc-html The specified module could not be found, on MINGW32

2024-08-14 Thread Hai Liang Wang
Try to set GUILE_EXTENSIONS_PATH, but still not work.

As the root case seems to be -
*In procedure dynamic-link: file: "libgnc-html", message: "The specified
module could not be found."*

I find out GUILE_EXTENSIONS_PATH
is
not set in the cmake guile compile command, So just append this
GUILE_EXTENSIONS_PATH
in 
gcdev64\gnucash\stable\src\gnucash-git\common\cmake_modules\GncAddSchemeTargets.cmake.

And now, when the build runs, the cmake command is -

*C:\WINDOWS\system32\cmd.exe /C "cd /D
C:\gcdev64\gnucash\stable\build\gnucash-git\gnucash\html &&
C:\gcdev64\msys2\mingw32\bin\cmake.exe -E env
PATH=C:/gcdev64/gnucash/stable/build/gnucash-git/bin\;C:/gcdev64/gnucash/stable/inst/bin\;C:/gcdev64/msys2/opt/miniconda3/envs/venv-py3/bin\;C:/gcdev64/scripts\;C:/gcdev64/msys2/mingw32/bin\;C:/gcdev64/msys2/usr/local/bin\;C:/gcdev64/msys2/usr/bin\;C:/gcdev64/msys2/usr/bin\;C:/Windows/System32\;C:/Windows\;C:/Windows/System32/Wbem\;C:/Windows/System32/WindowsPowerShell/v1.0\;C:/gcdev64/msys2/usr/bin/site_perl\;C:/gcdev64/msys2/usr/bin/vendor_perl\;C:/gcdev64/msys2/usr/bin/core_perl\;C:/gcdev64/msys2/mingw64/bin
GNC_UNINSTALLED=YES
GNC_BUILDDIR=C:/gcdev64/gnucash/stable/build/gnucash-git
GUILE_LOAD_PATH=C:/gcdev64/gnucash/stable/src/gnucash-git/gnucash/html\;C:/gcdev64/gnucash/stable/build/gnucash-git/gnucash/html\;C:/gcdev64/gnucash/stable/build/gnucash-git/gnucash/html/deprecated\;C:/gcdev64/gnucash/stable/inst/share/guile/2.2\;C:/gcdev64/gnucash/stable/build/gnucash-git/share/guile/site/2.2
GUILE_LOAD_COMPILED_PATH=C:/gcdev64/gnucash/stable/build/gnucash-git/gnucash/html\;C:/gcdev64/gnucash/stable/inst/lib/guile/2.2/ccache\;C:/gcdev64/gnucash/stable/build/gnucash-git/lib/guile/2.2/site-ccache\;C:/gcdev64/gnucash/stable/build/gnucash-git/lib/guile/2.2/site-ccache/gnucash/deprecated
GNC_MODULE_PATH=C:/gcdev64/gnucash/stable/build/gnucash-git/bin
GUILE_EXTENSIONS_PATH=C:/gcdev64/gnucash/stable/build/gnucash-git/bin
C:/gcdev64/gnucash/stable/inst/bin/guile -e "(@@ (guild) main)" -s
C:/gcdev64/gnucash/stable/inst/bin/guild compile -o
C:/gcdev64/gnucash/stable/build/gnucash-git/lib/guile/2.2/site-ccache/gnucash/html.go
C:/gcdev64/gnucash/stable/src/gnucash-git/gnucash/html/html.scm"*
---

But the same error happens.
Look forward for some help, thanks.

Full log is attached.

Cheers.
Hai Liang W.


On Wed, Aug 14, 2024 at 2:29 PM Hai Liang Wang 
wrote:

> hi, folks
>
> During build gnucash-git with `TARGET=gnucash-stable jhbuild -f jhbuildrc
> build`, come to a problem.
> Error trace below -
>
> *In unknown file:*
>
> *   1 (load-extension "libgnc-html" "scm_init_sw_gnc_html_mod�")*
>
> *In ice-9/boot-9.scm:*
>
> *   752:25  0 (dispatch-exception _ _ _)*
>
>
>
> *ice-9/boot-9.scm:752:25: In procedure dispatch-exception:*
>
> *In procedure dynamic-link: file: "libgnc-html", message: "The specified
> module could not be found."*
>
> *[39/333] Building C object
> gnucash/gnome/CMakeFiles/gnc-gnome.dir/assistant-acct-period.c.obj*
>
> ---
>
> Now, I can find the module* libgnc-html.dll *
> in C:\gcdev64\gnucash\stable\build\gnucash-git\bin
> And *libgnc-html.dll.a*
> in C:\gcdev64\gnucash\stable\build\gnucash-git\gnucash\html
>
> How to fix this `*The specified module could not be found.*` ?
>
> Please help, thanks.
>
> Attached the full log.
>
>
>
> Cheers.
> Hai Liang W.
>


build.202408141558.log
Description: Binary data
___
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.


[GNC] two instances on different books

2024-08-14 Thread Brook Milligan via gnucash-user
Is it safe for a single user to run simultaneously two different instances of 
GC on two different books?

If so, what settings are shared between them and therefore must be the same?  I 
can think of all the general settings, which mostly seem to be preferences 
about overall features like whether or not to use formal or informal names.  I 
would expect no conflict as these are preferences of the individual GC user and 
stored within a user-specific directory. Have I missed anything here or 
misinterpreted this?

However, I can think of one preference that is not like that: the root 
directory for associated documents.  I believe this is also a user-specific 
setting not a book-specific one (please correct me if that has been changed, 
which I eagerly wish for).  If so, then the two instances are forced to have 
documents in the same directory, something that might or might not be 
appropriate.  Are there any other settings like this that would interact 
(possibly poorly) between two distinct instances of GC?

Thanks for your help.

Cheers,
Brook

___
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] two instances on different books

2024-08-14 Thread Michael or Penny Novack via gnucash-user

On 8/14/2024 8:46 AM, Brook Milligan via gnucash-user wrote:

Is it safe for a single user to run simultaneously two different instances of 
GC on two different books?

There is also a work flow/error consideration. I  think working with two 
sets of books open would be a very bad idea because of the possible 
error of entering a transaction into the wrong set of books.


Michael D Novack


___
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] two instances on different books

2024-08-14 Thread Brook Milligan via gnucash-user


> On Aug 14, 2024, at 7:58 AM, Michael or Penny Novack via gnucash-user 
>  wrote:
> 
> On 8/14/2024 8:46 AM, Brook Milligan via gnucash-user wrote:
>> Is it safe for a single user to run simultaneously two different instances 
>> of GC on two different books?
>> 
> There is also a work flow/error consideration. I  think working with two
> sets of books open would be a very bad idea because of the possible
> error of entering a transaction into the wrong set of books.

Yes, I agree.  However, there are always potential human mistakes that can 
occur, even with a single book.  Many of those can be mitigated in various ways.

For the moment, I am wondering if there are any technical reasons that simply 
preclude the option and make all those possible challenges moot.

Cheers,
Brook

___
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] two instances on different books

2024-08-14 Thread Ken Pyzik
Just out of curiosity, what is the difference between what you are wanting to 
do and just doing a FILE - OPEN - BOOK2 from a single instance?

Seems to me that the only real difference is that when GnuCash opens, it 
automatically opens the last book it was working from.  So, that being the 
case, what you are suggesting is to make sure then when you open any specific 
instance of GnuCash - that it is opening the specific book you want (e.g., 
instance 1 opens Book 1 and Instance 2 opens Book 2).  Other than that, I 
cannot see what purpose having two instances does.

Ken


From: gnucash-user  on 
behalf of Brook Milligan via gnucash-user 
Sent: Wednesday, August 14, 2024 8:10 AM
To: stepbystepf...@comcast.net 
Cc: gnucash-user@gnucash.org 
Subject: Re: [GNC] two instances on different books


> On Aug 14, 2024, at 7:58 AM, Michael or Penny Novack via gnucash-user 
>  wrote:
>
> On 8/14/2024 8:46 AM, Brook Milligan via gnucash-user wrote:
>> Is it safe for a single user to run simultaneously two different instances 
>> of GC on two different books?
>>
> There is also a work flow/error consideration. I  think working with two
> sets of books open would be a very bad idea because of the possible
> error of entering a transaction into the wrong set of books.

Yes, I agree.  However, there are always potential human mistakes that can 
occur, even with a single book.  Many of those can be mitigated in various ways.

For the moment, I am wondering if there are any technical reasons that simply 
preclude the option and make all those possible challenges moot.

Cheers,
Brook

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


Re: [GNC] two instances on different books

2024-08-14 Thread Brook Milligan via gnucash-user


> On Aug 14, 2024, at 9:29 AM, Ken Pyzik  wrote:
> 
> Just out of curiosity, what is the difference between what you are wanting to 
> do and just doing a FILE - OPEN - BOOK2 from a single instance?  
> 
> Seems to me that the only real difference is that when GnuCash opens, it 
> automatically opens the last book it was working from.  So, that being the 
> case, what you are suggesting is to make sure then when you open any specific 
> instance of GnuCash - that it is opening the specific book you want (e.g., 
> instance 1 opens Book 1 and Instance 2 opens Book 2).  Other than that, I 
> cannot see what purpose having two instances does. 

Fair question.

I have a situation in which I have to manage a pair of books, one from the 
perspective of each side of some of the transactions.  An example would be if I 
am managing books for both a company and a customer, but in my case the two 
entities are much more closely coupled than suggested by that example.  Because 
some (many) of the transactions must be entered in both books yet refer to the 
same activity, I was thinking that having both open at once would allow 
immediate checking that transactions match, simply by looking from one window 
to the other.

If I cannot see (and work with) both at once, then the data entry/validation 
process would be much more cumbersome.  (And yes, I fully understand the need 
to know which window is which.)

Other solutions are welcome, of course, but this one seemed pretty 
straightforward, at least barring any technical blocks.

Cheers,
Brook

___
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] two instances on different books

2024-08-14 Thread Stan Brown (using GC 4.14)
FSVO "safe", yes it is, at least in Windows.

Caution: reports, preferences, and most-recently used (with geometry of
the window) are per user and not per book(*). Therefore,  depending on
the sequence in which you make changes and close files, you may find
that some or all of the changes you made get lost. The actual data would
not be lost, as far as I'm aware.

I echo Ken's question: Why do you want to do this?

(*)There's also File » Properties, which _is_ per book. Some of the
preferences would more logically be properties, but there isn't general
agreement on which ones should change.

I don't see why you think "the two instances are forced to have
documents in the same directory". Just specify absolute paths for your
documents, not relative paths. That's what I did, and it works just fine
without even setting a path head.

Stan Brown
Tehachapi, CA, USA
https://BrownMath.com

On 2024-08-14 05:46, Brook Milligan via gnucash-user wrote:
> Is it safe for a single user to run simultaneously two different instances of 
> GC on two different books?
> 
> If so, what settings are shared between them and therefore must be the same?  
> I can think of all the general settings, which mostly seem to be preferences 
> about overall features like whether or not to use formal or informal names.  
> I would expect no conflict as these are preferences of the individual GC user 
> and stored within a user-specific directory. Have I missed anything here or 
> misinterpreted this?
> 
> However, I can think of one preference that is not like that: the root 
> directory for associated documents.  I believe this is also a user-specific 
> setting not a book-specific one (please correct me if that has been changed, 
> which I eagerly wish for).  If so, then the two instances are forced to have 
> documents in the same directory, something that might or might not be 
> appropriate.  Are there any other settings like this that would interact 
> (possibly poorly) between two distinct instances of GC?
___
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] two instances on different books

2024-08-14 Thread Stan Brown (using GC 4.14)
On 2024-08-14 08:35, Brook Milligan via gnucash-user wrote:
> I have a situation in which I have to manage a pair of books, one from the 
> perspective of each side of some of the transactions.  An example would be if 
> I am managing books for both a company and a customer, but in my case the two 
> entities are much more closely coupled than suggested by that example.  
> Because some (many) of the transactions must be entered in both books yet 
> refer to the same activity, I was thinking that having both open at once 
> would allow immediate checking that transactions match, simply by looking 
> from one window to the other.

If these two entities are all that "closely coupled", why have them in
separate books? If they're in the same book, it is much easier to make
sure that both sides of a transaction between them are entered correctly.

The paragraph below is just off the top of my head. The subject of two
entities in one book has been discussed here before, and others' ideas
on that are probably better than mine.

You can set up a single chart of accounts in one book, with some sort of
unique short tag in each account name to show which entity it belongs
to. (XX and YY are possible choices, since they are certain never to
occur in account names in English.) You would create and save report
configurations that select only the Entity 1 tag or only the Entity 2
tag. Or you could create two top-level accounts, Entity 1 and Entity 2,
with Entity 1 Assets, Entity 1 Liabilities, and so on under Entity 1,
and similarly (but not necessarily all the same subaccounts) under Entity 2.

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] Keybinding to find txn by Value?

2024-08-14 Thread Stan Brown (using GC 4.14)
On 2024-08-07 18:54, Mike Morrison wrote:
> I frequently want to find a transaction by its value amount, for example
> "find all transactions having a credit or debit equal to $2.50". Currently
> I do this by typing Ctrl-F and then some keyboard and/or mouse actions to
> change "Description" in the dropdown menu to "Value". Is it possible for me
> to set a custom keybinding or keyboard shortcut to make the Find
> Transactions window come up already set to "Value"?

If this can be done, I too would like to know how. (Well, in my case it
would be "Description, Notes, or Memo" rather than "Value".) I didn't
see any response to Mike's query -- possibly I overlooked it, or it got
lost in the DNS kerfuffle.

I don't know about Mike, but I'm using GC in Windows 10 and 11.

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] two instances on different books

2024-08-14 Thread Brook Milligan via gnucash-user


> On Aug 14, 2024, at 9:58 AM, Stan Brown (using GC 4.14)  
> wrote:
> 
> On 2024-08-14 08:35, Brook Milligan via gnucash-user wrote:
>> I have a situation in which I have to manage a pair of books, one from the 
>> perspective of each side of some of the transactions.  An example would be 
>> if I am managing books for both a company and a customer, but in my case the 
>> two entities are much more closely coupled than suggested by that example.  
>> Because some (many) of the transactions must be entered in both books yet 
>> refer to the same activity, I was thinking that having both open at once 
>> would allow immediate checking that transactions match, simply by looking 
>> from one window to the other.
> 
> If these two entities are all that "closely coupled", why have them in
> separate books? If they're in the same book, it is much easier to make
> sure that both sides of a transaction between them are entered correctly.
> 
> The paragraph below is just off the top of my head. The subject of two
> entities in one book has been discussed here before, and others' ideas
> on that are probably better than mine.
> 
> You can set up a single chart of accounts in one book, with some sort of
> unique short tag in each account name to show which entity it belongs
> to. (XX and YY are possible choices, since they are certain never to
> occur in account names in English.) You would create and save report
> configurations that select only the Entity 1 tag or only the Entity 2
> tag. Or you could create two top-level accounts, Entity 1 and Entity 2,
> with Entity 1 Assets, Entity 1 Liabilities, and so on under Entity 1,
> and similarly (but not necessarily all the same subaccounts) under Entity 2.

Thanks for the suggestion.  I have already been doing something like that, but 
ran into problems handling the transactions consistently.

Mainly, that was because I was not aware that I could create new top level 
accounts to differentiate the entities; I appreciate knowing that is possible.  
This, I think, will solve all the issues I can think of now.

Nevertheless, if anyone has other suggestions, I would greatly appreciate 
knowing.

Thanks a lot for your help.  Once again, this list is a great resource.

Cheers,
Brook

___
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] Python bindings issue

2024-08-14 Thread Gere Kiss Zsolt
Thanks, Nate. I don't want to purge the `python3-gnucash` package for fear
that it will remove my GnuCash settings.

Python 3.11.2 (main, May  2 2024, 11:59:08) [GCC 12.2.0] on linux
> Type "help", "copyright", "credits" or "license" for more information.
> >>> import gnucash
> >>> dir()
> ['__annotations__', '__builtins__', '__doc__', '__loader__', '__name__',
> '__package__', '__spec__', 'gnucash']


This is important, as it indicates that the bindings work with Python
3.11.2 (I have 3.10). This solved my issue. I'll follow up with another
email explaining that.

Cheers,
Zsolt


On Wed, 14 Aug 2024 at 02:12, Nate Bargmann  wrote:

> * On 2024 13 Aug 12:29 -0500, Gere Kiss Zsolt wrote:
> > Python 3.10.12 (main, Jul 29 2024, 16:56:48) [GCC 11.4.0] on linux
> > Type "help", "copyright", "credits" or "license" for more information.
> > >>> import gnucash
> > * 11:41:04 ERROR  g_variant_unref: assertion 'value != NULL' failed
> >
> > Can somebody give me a clue about what I can do about it?
>
> Perhaps your only recourse are the Ubuntu support forums, but 22.04 is
> an LTS release and should have almost three more years of support so
> filing a bug report may be useful.
>
> OTOH, purging (not just removing) the python3-gnucash package may
> resolve the issue.  This package is a "recommends" dependency so it is
> not strictly necessary.  Unfortunately, if your apt is configured to
> install recommended packages automatically, then apt will want to remove
> the main gnucash package as well.
>
> I'd never tried it before, but on my Debian 12 system there are no
> errors:
>
> Python 3.11.2 (main, May  2 2024, 11:59:08) [GCC 12.2.0] on linux
> Type "help", "copyright", "credits" or "license" for more information.
> >>> import gnucash
> >>> dir()
> ['__annotations__', '__builtins__', '__doc__', '__loader__', '__name__',
> '__package__', '__spec__', 'gnucash']
>
> - Nate
>
> --
> "The optimist proclaims that we live in the best of all
> possible worlds.  The pessimist fears this is true."
> Web: https://www.n0nb.us
> Projects: https://github.com/N0NB
> GPG fingerprint: 82D6 4F6B 0E67 CD41 F689 BBA6 FB2C 5130 D55A 8819
>
> ___
> 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.
>


-- 
Üdvözlettel,

   Zsolt

---
„We have two lives, and the second begins when we realize we only have one.”
-- Confucius
___
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] Python bindings issue

2024-08-14 Thread Gere Kiss Zsolt
Hi Jim,

Did you succeed to import the Python bindings with  `import gnucash`?
> That has succeeded sometimes, and failed sometimes, but presently it
> succeeds.


Could this happen because the book was sometimes locked ? (just a question)

Thanks for the code bits. You helped me in the way that it made clear that
gnucash bindings work with Python 3.11. So I decided to give it a try.

As I said, I have Ubuntu 22.04 on my system. This did not seem old to me,
but it is ~2 years old, and the last LTS version is 24.04. That comes with
Python 3.12 and packaged with GnuCash 5.5. I tried those and voila: *it
worked*!

For those interested, I did not upgrade my system (yet). I used an app
called `distrobox`, which allowed me to use the other distribution inside
the terminal, and to run the graphical version of GnuCash as well (it is
kind of a docker container, but more tightly integrated with the host).
Cool stuff! I also succeeded in doing transactions with Python.

So thank you for all your help. I am happy now :)

Cheers,
 Zsolt

On Wed, 14 Aug 2024 at 02:16, Jim DeLaHunt  wrote:

>
> On 2024-08-13 15:14, Gere Kiss Zsolt wrote:
>
> Hi Jim,
>
> and thanks for the response.
>
> > I too am someone who has used GnuCash from the UI from several years,
> and is now starting to try using the Python bindings. I am on macOS
> rather than Linux.
>
> Did you succeed to import the Python bindings with  `import gnucash`?
>
> That has succeeded sometimes, and failed sometimes, but presently it
> succeeds. (Using the MacPorts distribution of gnucash @5.8_1+docs on macOS.)
>
> I can also, for example, add a security to a book file by using the
> GncCommodity() class. This sample code worked for me:
>
> >>> import gnucash
> >>> FILE = "file://./test_book_1.gnucash"
> >>> session = gnucash.gnucash_core.Session(FILE)
> >>> book = session.book
> >>> comms = book.get_table()
> >>> qqq = gnucash.gnucash_core.GncCommodity(book, 'QQQ_fullname', 
> >>> 'MySecurityType', 'QQQ', 'QQQ_qsip', 100)
> >>> comms.insert(qqq)
> >>> session.end()
> >>> session.destroy()
> >>> quit()
>
>
> >  Suggestion 1: is the OS package python3-gnucash installed on your
> system?
>
> Sure, as I mentioned:
>
> Other gnucash related OS packages:
>>
>>- gnucash-common
>>- gnucash-docs
>>- *python3-gnucash*
>>
>> Sorry, I guess I did not follow your meaning. I read you as saying that
> those packages, but not that those packages were actually installed on your
> system.
>
>
> > Suggestion 2: what info about python3-gnucash does the apt system
> display (in the same way it displayed information about the package
> gnucash)?
>
> Package: python3-gnucash
> Version: 1:4.8-1build2
> State: installed
> Section: universe/python
> Maintainer: Ubuntu Developers 
> Architecture: amd64
> Depends: libc6 (>= 2.14), libglib2.0-0 (>= 2.12.0), libpython3.10 (>=
> 3.10.0), python3 (< 3.11), python3 (>= 3.10~), python3:any
>
> As you can see from Depends, it installs bindings for python3 >= 3.10~ <
> 3.11.
> 3.10.12 is the version of Python3 installed on my OS, so this should
> conform (no wonder, since it is an OS package). Maybe some other libraries
> (like libc6?, etc.) are incompatible between gnucash and python3-gnucash?
>
> You have reached the limit of my knowledge, especially concerning GnuCash
> on Linux. Sorry.
>
> Can you do `import gnucash` from a Python REPL?
>
> Again, yes.  Thus you can be confident that it has worked for someone
> somewhere at some time.
>
> Best regards,
>  —Jim DeLaHunt
>


-- 
Üdvözlettel,

   Zsolt

---
„We have two lives, and the second begins when we realize we only have one.”
-- Confucius
___
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] Python bindings issue

2024-08-14 Thread Jim DeLaHunt


On 2024-08-14 10:56, Gere Kiss Zsolt wrote:

Hi Jim,

Did you succeed to import the Python bindings with  `import gnucash`?

On Wed, 14 Aug 2024 at 02:16, Jim DeLaHunt  wrote:

That has succeeded sometimes, and failed sometimes, but presently it
succeeds.


Could this happen because the book was sometimes locked ? (just a question)


Not that I observed. When it failed, I think it was because of bugs in 
the GnuCash build process, either in MacPorts or when I built GnuCash 
from source.



Thanks for the code bits. You helped me in the way that it made clear that
gnucash bindings work with Python 3.11. So I decided to give it a try.

As I said, I have Ubuntu 22.04 on my system. This did not seem old to me,
but it is ~2 years old, and the last LTS version is 24.04. That comes with
Python 3.12 and packaged with GnuCash 5.5. I tried those and voila: *it
worked*!


The obvious next question: when you installed the `python3-gnucash` 
package on your system, where exactly did it install its .py files?


On MacPorts, I can find out where the `gnucash` port installed its 
Python files by means of:


% port contents gnucash | grep Python
  
/opt/local/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/gnucash/__init__.py
  ...[other paths elided]...

The `Versions/3.11` part of the path is a clue that the `gnucash` port 
installed its Python files in Python 3.11, rather than the other several 
versions of Python on my system.


Maybe there is a similar command you can use on your system to find out 
a) if you have multiple copies of the Python interpreter on your 
computer, b) if you have multiple locations where Python modules could 
be installed, and c) into which location the `python3-gnucash` package 
actually installed its Python modules.


I'm glad to hear that you found a combination which worked.

Best regards,
 —Jim DeLaHunt

___
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] two instances on different books

2024-08-14 Thread G R Hewitt
I agree with Stan's scenario. In a former life, the company I was working
for had two companies in the same set of books.
One was to do with running a holiday park, the other the entertainment side
- there was a tax advantage to this.
So I had separate nominals for the entertainment part with their own
department number and reports were built
so that separate P&L/BS etc., could be run. This was done using Sage Line
50 and worked very well.
The core process of GnuCash is similar to that of Sage, if you exclude
inventory etc., that Sage has, and so it would not be difficult to do this
with GnuCash.

It is certainly a lot easier than trying to run two books that have to have
the same transactions, this is just doubling up your work load
and prone to error.

GRH

On Wed, 14 Aug 2024 at 16:59, Stan Brown (using GC 4.14) <
stan...@fastmail.fm> wrote:

> On 2024-08-14 08:35, Brook Milligan via gnucash-user wrote:
> > I have a situation in which I have to manage a pair of books, one from
> the perspective of each side of some of the transactions.  An example would
> be if I am managing books for both a company and a customer, but in my case
> the two entities are much more closely coupled than suggested by that
> example.  Because some (many) of the transactions must be entered in both
> books yet refer to the same activity, I was thinking that having both open
> at once would allow immediate checking that transactions match, simply by
> looking from one window to the other.
>
> If these two entities are all that "closely coupled", why have them in
> separate books? If they're in the same book, it is much easier to make
> sure that both sides of a transaction between them are entered correctly.
>
> The paragraph below is just off the top of my head. The subject of two
> entities in one book has been discussed here before, and others' ideas
> on that are probably better than mine.
>
> You can set up a single chart of accounts in one book, with some sort of
> unique short tag in each account name to show which entity it belongs
> to. (XX and YY are possible choices, since they are certain never to
> occur in account names in English.) You would create and save report
> configurations that select only the Entity 1 tag or only the Entity 2
> tag. Or you could create two top-level accounts, Entity 1 and Entity 2,
> with Entity 1 Assets, Entity 1 Liabilities, and so on under Entity 1,
> and similarly (but not necessarily all the same subaccounts) under Entity
> 2.
>
> 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.
>
___
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] two instances on different books

2024-08-14 Thread Michael or Penny Novack via gnucash-user




Yes, I agree.  However, there are always potential human mistakes that can 
occur, even with a single book.  Many of those can be mitigated in various ways.

For the moment, I am wondering if there are any technical reasons that simply 
preclude the option and make all those possible challenges moot.

Cheers,
Brook

Absolutely possible to make an error in a single set of books, 
Especially those of us who learned in the days of pen and ink on paper 
had lots of tricks to locate errors.


BUT none of those of any use to find a error of the type "transaction 
should have been entered for entity 1 was mistakenly entered for entity 
2". Finding THAT sort of error requires "full audit" where somebody 
checks every transaction has a supporting (paper, etc?) record, in some 
cases needing to go to where the record (supposedly) came from. I don't 
recommend maybe needing the tools of forensic accounting to find errors. 
We go there only if we suspect the error was somebody's hand in the 
cookie jar.


Michael D Novack

--
There is no possibility of social justice on a dead planet except the equality 
of the grave.

___
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] two instances on different books

2024-08-14 Thread Fred Tydeman
On Wed, Aug 14, 2024 at 7:47 AM Brook Milligan via gnucash-user <
gnucash-user@gnucash.org> wrote:

> Is it safe for a single user to run simultaneously two different instances
> of GC on two different books?
>

How about this case:
  Run the command line interface to get stock quotes for one book
  Run the GUI interface on another book at the same time
Is that safe?
___
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] two instances on different books

2024-08-14 Thread David Cousens
Brook,

I have in the past run multiple instances on different books with no
major problems apart from the workflow issues Michael bought up. 

All sets of books are then subject to the same set of user preferences
and changing them for one changes them for all. 

The other way is to run multiple users and switch between the users
when you need to use a different set of books. Then the user
preferences are unique to each user and therefor each set of books.
Requires a logoff/login as the new user.

At the moment and for the forseeable future you can't have multiple
users accessing the same set of books without conflicts. Possibly in
future with dtatabase only storage

of course if you can afford multiple computers and network storgae then
you can run a different set of books on each computer.

David 

On Wed, 2024-08-14 at 06:46 -0600, Brook Milligan via gnucash-user
wrote:
> Is it safe for a single user to run simultaneously two different
> instances of GC on two different books?
> 
> If so, what settings are shared between them and therefore must be
> the same?  I can think of all the general settings, which mostly seem
> to be preferences about overall features like whether or not to use
> formal or informal names.  I would expect no conflict as these are
> preferences of the individual GC user and stored within a user-
> specific directory. Have I missed anything here or misinterpreted
> this?
> 
> However, I can think of one preference that is not like that: the
> root directory for associated documents.  I believe this is also a
> user-specific setting not a book-specific one (please correct me if
> that has been changed, which I eagerly wish for).  If so, then the
> two instances are forced to have documents in the same directory,
> something that might or might not be appropriate.  Are there any
> other settings like this that would interact (possibly poorly)
> between two distinct instances of GC?
> 
> Thanks for your help.
> 
> Cheers,
> Brook
> 
> ___
> 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.


Re: [GNC] two instances on different books

2024-08-14 Thread John Layman via gnucash-user
There is no problem with having multiple instances of GnuCash running at the
same time.  I do so rather frequently for personal and business books.  My
wife and I are self-employed and transactions such as capital contributions
and draws or guaranteed distributions have related entries in both books.
Note, too, that it is a simple matter in Windows to create "shortcuts" that
launch GnuCash and specify the book to be opened.  And BTW, I don't believe
GnuCash restricts you to keeping all data files in one directory.  I happen
to do so, but frankly find all the complaining about clutter to be
ludicrous.  GnuCash names logs and backup files such that it is simple
matter to distinguish the wheat from the chaff (so to speak).  The amount of
backup to be retained is configurable, and DIY solutions to ostensible
clutter are trivial.

-Original Message-
From: gnucash-user 
On Behalf Of Brook Milligan via gnucash-user
Sent: Wednesday, August 14, 2024 11:36 AM
To: Ken Pyzik 
Cc: gnucash-user@gnucash.org
Subject: Re: [GNC] two instances on different books


> On Aug 14, 2024, at 9:29 AM, Ken Pyzik  wrote:
>
> Just out of curiosity, what is the difference between what you are wanting
to do and just doing a FILE - OPEN - BOOK2 from a single instance?
>
> Seems to me that the only real difference is that when GnuCash opens, it
automatically opens the last book it was working from.  So, that being the
case, what you are suggesting is to make sure then when you open any
specific instance of GnuCash - that it is opening the specific book you want
(e.g., instance 1 opens Book 1 and Instance 2 opens Book 2).  Other than
that, I cannot see what purpose having two instances does.

Fair question.

I have a situation in which I have to manage a pair of books, one from the
perspective of each side of some of the transactions.  An example would be
if I am managing books for both a company and a customer, but in my case the
two entities are much more closely coupled than suggested by that example.
Because some (many) of the transactions must be entered in both books yet
refer to the same activity, I was thinking that having both open at once
would allow immediate checking that transactions match, simply by looking
from one window to the other.

If I cannot see (and work with) both at once, then the data entry/validation
process would be much more cumbersome.  (And yes, I fully understand the
need to know which window is which.)

Other solutions are welcome, of course, but this one seemed pretty
straightforward, at least barring any technical blocks.

Cheers,
Brook

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


Re: [GNC] two instances on different books

2024-08-14 Thread Michael or Penny Novack via gnucash-user

The other way is to run multiple users and switch between the users
when you need to use a different set of books. Then the user
preferences are unique to each user and therefor each set of books.
Requires a logoff/login as the new user.
.
of course if you can afford multiple computers and network storgae then
you can run a different set of books on each computer.

David


Well  separate computers not strictly speaking necessary if our 
OS supports multiple simultaneous users (logins). We are just too 
accustomed these days to have personal computers. In other words, we 
don't use our hardware that way (the device in front of us acting as a 
terminal for a login session on a different machine.


Let's ask  anybody on our list using their 'nix OS that way 
(supporting multiple simultaneous users, each with their own 
screen/keyboard/mouse? Bear in mind not all that many decades ago this 
is how we all worked.


Michael D Novack


___
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] two instances on different books

2024-08-14 Thread Liz
On Wed, 14 Aug 2024 09:58:17 -0400
Michael or Penny Novack via gnucash-user 
wrote:

> On 8/14/2024 8:46 AM, Brook Milligan via gnucash-user wrote:
> > Is it safe for a single user to run simultaneously two different
> > instances of GC on two different books? 
> There is also a work flow/error consideration. I  think working with
> two sets of books open would be a very bad idea because of the
> possible error of entering a transaction into the wrong set of books.
> 
> Michael D Novack
> 

I have four sets of books. Each has their own corner of the screen to
which it belongs, so I have a visual reminder to work in the correct
set.
Yes, I have occasionally put something in the wrong books, but more
often I put things in wrong accounts. 
The errors are able to be fixed.

Liz
___
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] two instances on different books

2024-08-14 Thread Liz
On Wed, 14 Aug 2024 09:35:39 -0600
Brook Milligan via gnucash-user  wrote:

> 
> Fair question.
> 
> I have a situation in which I have to manage a pair of books, one
> from the perspective of each side of some of the transactions.  An
> example would be if I am managing books for both a company and a
> customer, but in my case the two entities are much more closely
> coupled than suggested by that example.  Because some (many) of the
> transactions must be entered in both books yet refer to the same
> activity, I was thinking that having both open at once would allow
> immediate checking that transactions match, simply by looking from
> one window to the other.

Here is a simple example
I buy something for the company but use my private credit card which
has low international fees.
I put the entry both in the private book [Credit Card & Company
Owes Me accounts]
and in the company book [Owe Private, Expense Account and Tax Accounts]


Liz

___
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] two instances on different books

2024-08-14 Thread Liz
On Wed, 14 Aug 2024 08:47:46 -0700
"Stan Brown (using GC 4.14)"  wrote:

> I echo Ken's question: Why do you want to do this?

If your jurisdiction's tax agency says you keep the books separately
that would be a very powerful reason.

Liz
___
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] two instances on different books

2024-08-14 Thread David Cousens

Brook 
Where you may possibly encounter problems in having two related
entities within the one set of books will be with the business features
which AFAIK are designed with only a single entity in mind.

I keep my and my wife's personal finances in one set of books but use
subaccounts to keep our individual assets separate for example, but
while we were both operating businesses, the businesses were always in
separate books even though our personal finances were in the one set of
books (a reporting requirement as my business was a company structure
while my wife's was a sole trader). I often had the three sets of books
open simultaneously. Just had to check the filename at the top of the
window to be clear which set I was working on.  

Gnucash has a pretty good separation of the book preferences from what
are user preferences but there will always be cases where you want
different display preferenceson different books.

David

On Wed, 2024-08-14 at 10:07 -0600, Brook Milligan via gnucash-user
wrote:
> 
> > On Aug 14, 2024, at 9:58 AM, Stan Brown (using GC 4.14)
> >  wrote:
> > 
> > On 2024-08-14 08:35, Brook Milligan via gnucash-user wrote:
> > > I have a situation in which I have to manage a pair of books, one
> > > from the perspective of each side of some of the transactions. 
> > > An example would be if I am managing books for both a company and
> > > a customer, but in my case the two entities are much more closely
> > > coupled than suggested by that example.  Because some (many) of
> > > the transactions must be entered in both books yet refer to the
> > > same activity, I was thinking that having both open at once would
> > > allow immediate checking that transactions match, simply by
> > > looking from one window to the other.
> > 
> > If these two entities are all that "closely coupled", why have them
> > in
> > separate books? If they're in the same book, it is much easier to
> > make
> > sure that both sides of a transaction between them are entered
> > correctly.
> > 
> > The paragraph below is just off the top of my head. The subject of
> > two
> > entities in one book has been discussed here before, and others'
> > ideas
> > on that are probably better than mine.
> > 
> > You can set up a single chart of accounts in one book, with some
> > sort of
> > unique short tag in each account name to show which entity it
> > belongs
> > to. (XX and YY are possible choices, since they are certain never
> > to
> > occur in account names in English.) You would create and save
> > report
> > configurations that select only the Entity 1 tag or only the Entity
> > 2
> > tag. Or you could create two top-level accounts, Entity 1 and
> > Entity 2,
> > with Entity 1 Assets, Entity 1 Liabilities, and so on under Entity
> > 1,
> > and similarly (but not necessarily all the same subaccounts) under
> > Entity 2.
> 
> Thanks for the suggestion.  I have already been doing something like
> that, but ran into problems handling the transactions consistently.
> 
> Mainly, that was because I was not aware that I could create new top
> level accounts to differentiate the entities; I appreciate knowing
> that is possible.  This, I think, will solve all the issues I can
> think of now.
> 
> Nevertheless, if anyone has other suggestions, I would greatly
> appreciate knowing.
> 
> Thanks a lot for your help.  Once again, this list is a great
> resource.
> 
> Cheers,
> Brook
> 
> ___
> 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.


Re: [GNC] two instances on different books

2024-08-14 Thread David Cousens
 I was being a bit facetious with the comment about multiple computers.

 I have used my laptop as a terminal to my desktop with reflection of
the display of what was running on the desktop to the laptop (both
Linux)  although I no longer have any real need to do so. It was many
years ago now and involved exporting the xwindows display over the
network and setup of appropriate permissions to do so.

These days I might just use TeamViewer which I use to help maintain a
non-computer literate friend's system remotely, but I haven't tried it
from the laptop to the desktop over the LAN. Will have to give it a go
although I see no reason why it won't work.

Linux is still a multiuser system under the hood. I can ssh to my
laptop which is logged in as one user form the desktop and login as a
separate user with no problem and I can run GnuCash on the laptop as
another user displaying on my desktop, while logged in as myself on the
laptop and also running GnuCash natively on the laptop.

ssh -X user@ipaddress xterm
login then run gnucash in the xterm window works fine.


David

On Wed, 2024-08-14 at 18:48 -0400, Michael or Penny Novack via gnucash-
user wrote:
> > The other way is to run multiple users and switch between the users
> > when you need to use a different set of books. Then the user
> > preferences are unique to each user and therefor each set of books.
> > Requires a logoff/login as the new user.
> > .
> > of course if you can afford multiple computers and network storgae
> > then
> > you can run a different set of books on each computer.
> > 
> > David
> 
> Well  separate computers not strictly speaking necessary if
> our 
> OS supports multiple simultaneous users (logins). We are just too 
> accustomed these days to have personal computers. In other words, we 
> don't use our hardware that way (the device in front of us acting as
> a 
> terminal for a login session on a different machine.
> 
> Let's ask  anybody on our list using their 'nix OS that way 
> (supporting multiple simultaneous users, each with their own 
> screen/keyboard/mouse? Bear in mind not all that many decades ago
> this 
> is how we all worked.
> 
> Michael D Novack
> 
> 
> ___
> 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.


Re: [GNC] installer build failure, libgnc-html The specified module could not be found, on MINGW32

2024-08-14 Thread Hai Liang Wang
Problem solved, fixed by adjust file:
gnucash\stable\src\gnucash-git\common\cmake_modules\GncAddSchemeTargets.cmake.

*  if(NOT MINGW64 OR ${GUILE_EFFECTIVE_VERSION} VERSION_LESS 2.2)*
*make_unix_path_list(_GUILE_LOAD_PATH)*
*make_unix_path_list(_GUILE_LOAD_COMPILED_PATH)*
*  elseif(MINGW64)*
*make_unix_path_list(_GUILE_LOAD_PATH)*
*make_unix_path_list(_GUILE_LOAD_COMPILED_PATH)*
*  endif()*


Previously, using `make_win32_path_list` make the paths are join with `;`,
but in the guile offical doc, it says,  *GUILE_LOAD_PATH's value should be
a colon-separated list of directories. *
https://www.gnu.org/software/guile/docs/docs-2.2/guile-ref/Environment-Variables.html#

Cheers.
Hai Liang W.


On Wed, Aug 14, 2024 at 3:58 PM Hai Liang Wang 
wrote:

> Try to set GUILE_EXTENSIONS_PATH, but still not work.
>
> As the root case seems to be -
> *In procedure dynamic-link: file: "libgnc-html", message: "The specified
> module could not be found."*
>
> I find out GUILE_EXTENSIONS_PATH
> is
> not set in the cmake guile compile command, So just append this
> GUILE_EXTENSIONS_PATH
> in 
> gcdev64\gnucash\stable\src\gnucash-git\common\cmake_modules\GncAddSchemeTargets.cmake.
>
> And now, when the build runs, the cmake command is -
>
> *C:\WINDOWS\system32\cmd.exe /C "cd /D
> C:\gcdev64\gnucash\stable\build\gnucash-git\gnucash\html &&
> C:\gcdev64\msys2\mingw32\bin\cmake.exe -E env
> PATH=C:/gcdev64/gnucash/stable/build/gnucash-git/bin\;C:/gcdev64/gnucash/stable/inst/bin\;C:/gcdev64/msys2/opt/miniconda3/envs/venv-py3/bin\;C:/gcdev64/scripts\;C:/gcdev64/msys2/mingw32/bin\;C:/gcdev64/msys2/usr/local/bin\;C:/gcdev64/msys2/usr/bin\;C:/gcdev64/msys2/usr/bin\;C:/Windows/System32\;C:/Windows\;C:/Windows/System32/Wbem\;C:/Windows/System32/WindowsPowerShell/v1.0\;C:/gcdev64/msys2/usr/bin/site_perl\;C:/gcdev64/msys2/usr/bin/vendor_perl\;C:/gcdev64/msys2/usr/bin/core_perl\;C:/gcdev64/msys2/mingw64/bin
> GNC_UNINSTALLED=YES
> GNC_BUILDDIR=C:/gcdev64/gnucash/stable/build/gnucash-git
> GUILE_LOAD_PATH=C:/gcdev64/gnucash/stable/src/gnucash-git/gnucash/html\;C:/gcdev64/gnucash/stable/build/gnucash-git/gnucash/html\;C:/gcdev64/gnucash/stable/build/gnucash-git/gnucash/html/deprecated\;C:/gcdev64/gnucash/stable/inst/share/guile/2.2\;C:/gcdev64/gnucash/stable/build/gnucash-git/share/guile/site/2.2
> GUILE_LOAD_COMPILED_PATH=C:/gcdev64/gnucash/stable/build/gnucash-git/gnucash/html\;C:/gcdev64/gnucash/stable/inst/lib/guile/2.2/ccache\;C:/gcdev64/gnucash/stable/build/gnucash-git/lib/guile/2.2/site-ccache\;C:/gcdev64/gnucash/stable/build/gnucash-git/lib/guile/2.2/site-ccache/gnucash/deprecated
> GNC_MODULE_PATH=C:/gcdev64/gnucash/stable/build/gnucash-git/bin
> GUILE_EXTENSIONS_PATH=C:/gcdev64/gnucash/stable/build/gnucash-git/bin
> C:/gcdev64/gnucash/stable/inst/bin/guile -e "(@@ (guild) main)" -s
> C:/gcdev64/gnucash/stable/inst/bin/guild compile -o
> C:/gcdev64/gnucash/stable/build/gnucash-git/lib/guile/2.2/site-ccache/gnucash/html.go
> C:/gcdev64/gnucash/stable/src/gnucash-git/gnucash/html/html.scm"*
> ---
>
> But the same error happens.
> Look forward for some help, thanks.
>
> Full log is attached.
>
> Cheers.
> Hai Liang W.
>
>
> On Wed, Aug 14, 2024 at 2:29 PM Hai Liang Wang 
> wrote:
>
>> hi, folks
>>
>> During build gnucash-git with `TARGET=gnucash-stable jhbuild -f jhbuildrc
>> build`, come to a problem.
>> Error trace below -
>>
>> *In unknown file:*
>>
>> *   1 (load-extension "libgnc-html" "scm_init_sw_gnc_html_mod�")*
>>
>> *In ice-9/boot-9.scm:*
>>
>> *   752:25  0 (dispatch-exception _ _ _)*
>>
>>
>>
>> *ice-9/boot-9.scm:752:25: In procedure dispatch-exception:*
>>
>> *In procedure dynamic-link: file: "libgnc-html", message: "The specified
>> module could not be found."*
>>
>> *[39/333] Building C object
>> gnucash/gnome/CMakeFiles/gnc-gnome.dir/assistant-acct-period.c.obj*
>>
>> ---
>>
>> Now, I can find the module* libgnc-html.dll *
>> in C:\gcdev64\gnucash\stable\build\gnucash-git\bin
>> And *libgnc-html.dll.a*
>> in C:\gcdev64\gnucash\stable\build\gnucash-git\gnucash\html
>>
>> How to fix this `*The specified module could not be found.*` ?
>>
>> Please help, thanks.
>>
>> Attached the full log.
>>
>>
>>
>> Cheers.
>> Hai Liang W.
>>
>
___
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] Error during phase build of gnucash-git: # Error running ninja, build on MINGW32

2024-08-14 Thread John Ralls
The actual error is 
[286/875] Generating gnucash.appdata.xml.in
FAILED: gnucash/gnome/gnucash.appdata.xml.in 
C:/gcdev64/gnucash/stable/build/gnucash-git/gnucash/gnome/gnucash.appdata.xml.in
 
C:\WINDOWS\system32\cmd.exe /C "cd /D 
C:\gcdev64\gnucash\stable\build\gnucash-git\gnucash\gnome && 
C:\gcdev64\msys2\usr\bin\msgfmt.exe --xml --template 
C:/gcdev64/gnucash/stable/src/gnucash-git/gnucash/gnome/gnucash.appdata.xml.in.in
 -d C:/gcdev64/gnucash/stable/src/gnucash-git/po -o 
C:/gcdev64/gnucash/stable/build/gnucash-git/gnucash/gnome/gnucash.appdata.xml.in"
/usr/bin/msgfmt: cannot locate ITS rules for 
C:/gcdev64/gnucash/stable/src/gnucash-git/gnucash/gnome/gnucash.appdata.xml.in.in

That’s a gettext problem, so make sure that you have both 
mingw-w64-i686-gettext-runtime and mingw-w64-i686-gettext-tools installed and 
that your path isn’t screwed up.

As a general note I’ve found that it’s more reliable to run 
buildserver\build_package.ps1 from a powershell window than jhbuild from a 
mingw32 terminal window.

Regards,
John Ralls


> On Aug 13, 2024, at 21:30, Hai Liang Wang  wrote:
> 
> hi, Folks
> 
> During running `TARGET=gnucash-stable jhbuild -f jhbuildrc build `, an
> error occurs and break the build.
> 
> Trace is in below.
> 
> *[298/875] Generating gnucash.desktop.in *
> *[299/875] Building CXX object
> libgnucash/backend/dbi/CMakeFiles/gncmod-backend-dbi.dir/gnc-backend-dbi.cpp.obj*
> *[300/875] Building CXX object
> common/test-core/CMakeFiles/gtest.dir/C_/gcdev64/gnucash/stable/src/googletest/googletest/src/gtest-all.cc.obj*
> *[301/875] Building CXX object
> libgnucash/engine/CMakeFiles/gnc-engine.dir/gnc-option.cpp.obj*
> *[302/875] Building CXX object
> bindings/guile/CMakeFiles/gnucash-guile.dir/swig-engine.cpp.obj*
> *[303/875] Building CXX object
> libgnucash/app-utils/CMakeFiles/gnc-app-utils.dir/gnc-quotes.cpp.obj*
> *ninja: build stopped: subcommand failed.*
> * [1m*** Error during phase build of gnucash-git: ## Error running
> ninja   *** [11/13] [m *
> 
> *  [1] Rerun phase build*
> 
> It seems near the last step to generate the installer.
> Hope some hints to fix it, thanks.
> 
> Full log is attached.
> 
> 
> Cheers.
> Hai Liang W.
> ___
> 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.


Re: [GNC] Error during phase build of gnucash-git: # Error running ninja, build on MINGW32

2024-08-14 Thread Hai Liang Wang
Yep, gettext package of x86_64 version is installed,  need to remove it
manually.
Thanks, I also nailed down to this clue yesterday and provided the solution
in this thread.

Cheers.
Hai Liang W.


On Thu, Aug 15, 2024 at 10:54 AM John Ralls  wrote:

> The actual error is
> [286/875] Generating gnucash.appdata.xml.in
> FAILED: gnucash/gnome/gnucash.appdata.xml.in
> C:/gcdev64/gnucash/stable/build/gnucash-git/gnucash/gnome/
> gnucash.appdata.xml.in
> C:\WINDOWS\system32\cmd.exe /C "cd /D
> C:\gcdev64\gnucash\stable\build\gnucash-git\gnucash\gnome &&
> C:\gcdev64\msys2\usr\bin\msgfmt.exe --xml --template
> C:/gcdev64/gnucash/stable/src/gnucash-git/gnucash/gnome/
> gnucash.appdata.xml.in.in -d C:/gcdev64/gnucash/stable/src/gnucash-git/po
> -o C:/gcdev64/gnucash/stable/build/gnucash-git/gnucash/gnome/
> gnucash.appdata.xml.in"
> /usr/bin/msgfmt: cannot locate ITS rules for
> C:/gcdev64/gnucash/stable/src/gnucash-git/gnucash/gnome/
> gnucash.appdata.xml.in.in
>
> That’s a gettext problem, so make sure that you have both
> mingw-w64-i686-gettext-runtime and mingw-w64-i686-gettext-tools installed
> and that your path isn’t screwed up.
>
> As a general note I’ve found that it’s more reliable to run
> buildserver\build_package.ps1 from a powershell window than jhbuild from a
> mingw32 terminal window.
>
> Regards,
> John Ralls
>
>
> > On Aug 13, 2024, at 21:30, Hai Liang Wang 
> wrote:
> >
> > hi, Folks
> >
> > During running `TARGET=gnucash-stable jhbuild -f jhbuildrc build `, an
> > error occurs and break the build.
> >
> > Trace is in below.
> >
> > *[298/875] Generating gnucash.desktop.in *
> > *[299/875] Building CXX object
> >
> libgnucash/backend/dbi/CMakeFiles/gncmod-backend-dbi.dir/gnc-backend-dbi.cpp.obj*
> > *[300/875] Building CXX object
> >
> common/test-core/CMakeFiles/gtest.dir/C_/gcdev64/gnucash/stable/src/googletest/googletest/src/gtest-all.cc.obj*
> > *[301/875] Building CXX object
> > libgnucash/engine/CMakeFiles/gnc-engine.dir/gnc-option.cpp.obj*
> > *[302/875] Building CXX object
> > bindings/guile/CMakeFiles/gnucash-guile.dir/swig-engine.cpp.obj*
> > *[303/875] Building CXX object
> > libgnucash/app-utils/CMakeFiles/gnc-app-utils.dir/gnc-quotes.cpp.obj*
> > *ninja: build stopped: subcommand failed.*
> > * [1m*** Error during phase build of gnucash-git: ## Error
> running
> > ninja   *** [11/13] [m *
> >
> > *  [1] Rerun phase build*
> >
> > It seems near the last step to generate the installer.
> > Hope some hints to fix it, thanks.
> >
> > Full log is attached.
> >
> >
> > Cheers.
> > Hai Liang W.
> > ___
> > 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.


[GNC] Windows installer build failure, cmath error: 'copysign' has not been declared in '::' on MINGW32

2024-08-14 Thread Hai Liang Wang
hi, folks

Run script `TARGET=gnucash-stable jhbuild -f jhbuildrc build` to build
windows installer, come to an error -

*gnucash.dir/gnucash-core-app.cpp.obj -c
C:/gcdev64/gnucash/stable/src/gnucash-git/gnucash/gnucash-core-app.cpp*
*In file included from
C:/gcdev64/msys2/mingw32/include/boost/core/cmath.hpp:19,*
* from
C:/gcdev64/msys2/mingw32/include/boost/lexical_cast/detail/converter_numeric.hpp:26,*
* from
C:/gcdev64/msys2/mingw32/include/boost/lexical_cast/try_lexical_convert.hpp:31,*
* from
C:/gcdev64/msys2/mingw32/include/boost/lexical_cast.hpp:33,*
* from
C:/gcdev64/msys2/mingw32/include/boost/program_options/value_semantic.hpp:14,*
* from
C:/gcdev64/msys2/mingw32/include/boost/program_options/options_description.hpp:13,*
* from
C:/gcdev64/msys2/mingw32/include/boost/program_options.hpp:15,*
* from
C:/gcdev64/gnucash/stable/src/gnucash-git/gnucash/gnucash-core-app.hpp:31,*
* from
C:/gcdev64/gnucash/stable/src/gnucash-git/gnucash/gnucash-core-app.cpp:32:*
*C:/gcdev64/msys2/mingw32/include/c++/14.2.0/cmath:2106:11: error:
'copysign' has not been declared in '::'*
* 2106 |   using ::copysign;*
*  |   ^~~~*
*[124/131] Building CXX object
gnucash/CMakeFiles/gnucash.dir/gnucash.cpp.obj*
*FAILED: gnucash/CMakeFiles/gnucash.dir/gnucash.cpp.obj *

How to fix it?
Any suggestion is apprecaited.

Other version info:

*# g++ --version*
g++.exe (Rev1, Built by MSYS2 project) 14.2.0
Copyright (C) 2024 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

*# pacman -Q|grep c++*
mingw-w64-i686-libc++ 18.1.8-1

*# pacman -Q|grep boost*
mingw-w64-i686-boost 1.85.0-4


Attached the full log.

Cheers.
Hai Liang W.


build.202408151120.log
Description: Binary data
___
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] Windows installer build failure, cmath error: 'copysign' has not been declared in '::' on MINGW32

2024-08-14 Thread Hai Liang Wang
So far, I know more about the problem, but haven't find a solution yet.

`cmath:2106:11: error: 'copysign' has not been declared in '::'`, this link
explain the error cause -
https://stackoverflow.com/questions/1216878/cmath-functions-generating-compiler-error

And in, `gnucash\stable\src\gnucash-git\gnucash\gnucash-core-app.hpp`, it
has

*#ifdef __MINGW32__*
*#undef _GLIBCXX_USE_C99_MATH_TR1 // Avoid cmath missing function decl.*
*#endif*

What happens in my machine, is that cmath's functions are missing, like
*copysign.*

So, how to get rid of it?
Need help, thanks.

Cheers.
Hai Liang W.


On Thu, Aug 15, 2024 at 11:32 AM Hai Liang Wang 
wrote:

> hi, folks
>
> Run script `TARGET=gnucash-stable jhbuild -f jhbuildrc build` to build
> windows installer, come to an error -
>
> *gnucash.dir/gnucash-core-app.cpp.obj -c
> C:/gcdev64/gnucash/stable/src/gnucash-git/gnucash/gnucash-core-app.cpp*
> *In file included from
> C:/gcdev64/msys2/mingw32/include/boost/core/cmath.hpp:19,*
> * from
> C:/gcdev64/msys2/mingw32/include/boost/lexical_cast/detail/converter_numeric.hpp:26,*
> * from
> C:/gcdev64/msys2/mingw32/include/boost/lexical_cast/try_lexical_convert.hpp:31,*
> * from
> C:/gcdev64/msys2/mingw32/include/boost/lexical_cast.hpp:33,*
> * from
> C:/gcdev64/msys2/mingw32/include/boost/program_options/value_semantic.hpp:14,*
> * from
> C:/gcdev64/msys2/mingw32/include/boost/program_options/options_description.hpp:13,*
> * from
> C:/gcdev64/msys2/mingw32/include/boost/program_options.hpp:15,*
> * from
> C:/gcdev64/gnucash/stable/src/gnucash-git/gnucash/gnucash-core-app.hpp:31,*
> * from
> C:/gcdev64/gnucash/stable/src/gnucash-git/gnucash/gnucash-core-app.cpp:32:*
> *C:/gcdev64/msys2/mingw32/include/c++/14.2.0/cmath:2106:11: error:
> 'copysign' has not been declared in '::'*
> * 2106 |   using ::copysign;*
> *  |   ^~~~*
> *[124/131] Building CXX object
> gnucash/CMakeFiles/gnucash.dir/gnucash.cpp.obj*
> *FAILED: gnucash/CMakeFiles/gnucash.dir/gnucash.cpp.obj *
>
> How to fix it?
> Any suggestion is apprecaited.
>
> Other version info:
>
> *# g++ --version*
> g++.exe (Rev1, Built by MSYS2 project) 14.2.0
> Copyright (C) 2024 Free Software Foundation, Inc.
> This is free software; see the source for copying conditions.  There is NO
> warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
>
> *# pacman -Q|grep c++*
> mingw-w64-i686-libc++ 18.1.8-1
>
> *# pacman -Q|grep boost*
> mingw-w64-i686-boost 1.85.0-4
>
>
> Attached the full log.
>
> Cheers.
> Hai Liang W.
>
___
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.