Re: [GNC-dev] Windows Build VM

2023-11-22 Thread Manfred Usselmann




Am 2023-11-20 06:23, schrieb john:

On Nov 19, 2023, at 10:23, Manfred Usselmann  
wrote:


Am 2023-11-19 18:26, schrieb john:

On Nov 19, 2023, at 08:02, Manfred Usselmann  
wrote:


Am 2023-11-18 20:32, schrieb john:

On Nov 17, 2023, at 17:23, Manfred Usselmann  
wrote:


Am 2023-11-17 05:58, schrieb john:

On Nov 16, 2023, at 14:25, Manfred Usselmann  
wrote:


Am 2023-11-16 18:41, schrieb john:

On Nov 16, 2023, at 03:50, Manfred Usselmann  
wrote:


Hi,

Am 2023-11-07 04:53, schrieb john:

On Nov 6, 2023, at 16:12, Manfred Usselmann  
wrote:

Hi John,

Am 2023-11-06 19:31, schrieb john:
On Nov 6, 2023, at 05:11, Manfred Usselmann  
wrote:

Hi,
Am 2023-10-01 17:47, schrieb john:
On Oct 1, 2023, at 06:00, Derek Atkins  wrote:
On Sun, October 1, 2023 12:00 am, flywire wrote:
https://lists.gnucash.org/pipermail/gnucash-user/2023-April/106619.html
John wrote:
we don't have a Windows CI action, the nightly builds are done with the
https://github.com/gnucash/GnuCash-on-windows powershell scripts on a
Windows VM in Derek's basement.
 The nightly builds are those on 
https://code.gnucash.org/builds/win32/stable/, right?
Would it be possible to additonally provide a version there which 
includes the Python bindings? No, there's no way to make that work with 
an installed package.


Since there already exists a working build environment, I would hope 
that it's not too much work?
 That depends on what you want to use for your Python. If you can use 
the MSYS2 environment from Powershell (some MSYS2 things work directly 
in Powershell, others need a Bash shell) then you can simply add 
-DWITH_PYTHON=ON to the CMakeArgs in jhbuild and build it. Don't run the 
installer, just add 
c:\gcdev64\gnucash\stable\inst\lib\python3.11\site-packages to 
PYTHONPATH and run your scripts.


After starting from scratch I'm now able to run a successful build 
including the Python bindings.


After adding
C:\Users\mu\Entwicklung\GnuCash\gcdev64\gnucash\stable\inst\lib\python3.11\site-packages
to PYTHONPATH my script now starts and does no longer complain about the 
gnucash imports.


But the script aborts and it looks like Python does not find 
_gnucash_core_c.dll in this folder. :-(


I also added 
C:\Users\mu\Entwicklung\GnuCash\gcdev64\gnucash\stable\inst\lib\python3.11\site-packages\gnucash 
to the Windows Path, but this does not help.


Traceback (most recent call last):
  File 
"C:\Users\mu\Entwicklung\GnuCash\gcdev64\gnucash\stable\inst\lib\python3.11\site-packages\gnucash\gnucash_core_c.py", 
line 14, in swig_import_helper

return importlib.import_module(mname)
   ^^
  File 
"C:\Users\mu\AppData\Local\Programs\Python\Python312\Lib\importlib\__init__.py", 
line 90, in import_module

return _bootstrap._gcd_import(name[level:], package, level)
   
  File "", line 1381, in _gcd_import
  File "", line 1354, in _find_and_load
  File "", line 1318, in 
_find_and_load_unlocked

ModuleNotFoundError: No module named 'gnucash._gnucash_core_c'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\mu\Documents\Nextcloud_Manfred\Manfred 
Entwicklung\USS\Projects\GCToolbox\GCImport\gcimport.py", line 18, in 

from gnucash import Session, Account, Transaction, Split, 
GncNumeric, GUID, GUIDString, gnucash_core_c
  File 
"C:\Users\mu\Entwicklung\GnuCash\gcdev64\gnucash\stable\inst\lib\python3.11\site-packages\gnucash\__init__.py", 
line 6, in 

from gnucash.gnucash_core import *
  File 
"C:\Users\mu\Entwicklung\GnuCash\gcdev64\gnucash\stable\inst\lib\python3.11\site-packages\gnucash\gnucash_core.py", 
line 36, in 

from gnucash import gnucash_core_c
  File 
"C:\Users\mu\Entwicklung\GnuCash\gcdev64\gnucash\stable\inst\lib\python3.11\site-packages\gnucash\gnucash_core_c.py", 
line 17, in 

_gnucash_core_c = swig_import_helper()
  
  File 
"C:\Users\mu\Entwicklung\GnuCash\gcdev64\gnucash\stable\inst\lib\python3.11\site-packages\gnucash\gnucash_core_c.py", 
line 16, in swig_import_helper

return importlib.import_module('_gnucash_core_c')
   ^^
  File 
"C:\Users\mu\AppData\Local\Programs\Python\Python312\Lib\importlib\__init__.py", 
line 90, in import_module

return _bootstrap._gcd_import(name[level:], package, level)
   
ModuleNotFoundError: No module named '_gnucash_core_c'

Process finished with exit code 1
Do you also have 
C:\Users\mu\Entwicklung\GnuCash\gcdev64\gnucash\stable\inst\lib and 
C:\Users\mu\Entwicklung\GnuCash\gcdev64\gnucash\stable\inst\lib\gnucash 
in %PATH% ?


I've added them now, but it makes no difference.

Does 
C:\Users\mu\Entwicklung\GnuCash\gcdev64\gnucash\stable\inst\lib\python3.11\site-packages\gnucash\_gnucash_core_c.dll 
exist?


BTW the bindings also need 

Re: [GNC-dev] Windows Build VM

2023-11-19 Thread john



> On Nov 19, 2023, at 10:23, Manfred Usselmann  wrote:
> 
> Am 2023-11-19 18:26, schrieb john:
> 
>> 
>> 
>>> On Nov 19, 2023, at 08:02, Manfred Usselmann  wrote:
>>> 
>>> Am 2023-11-18 20:32, schrieb john:
>>> 
>>> 
>>> 
>>> On Nov 17, 2023, at 17:23, Manfred Usselmann  wrote:
>>> 
>>> Am 2023-11-17 05:58, schrieb john:
>>> 
>>> 
>>> 
>>> On Nov 16, 2023, at 14:25, Manfred Usselmann  wrote:
>>> 
>>> Am 2023-11-16 18:41, schrieb john:
>>> 
>>> 
>>> 
>>> On Nov 16, 2023, at 03:50, Manfred Usselmann  wrote:
>>> 
>>> Hi,
>>> 
>>> Am 2023-11-07 04:53, schrieb john:
>>> 
>>> 
>>> 
>>> On Nov 6, 2023, at 16:12, Manfred Usselmann  wrote:
>>> 
>>> Hi John,
>>> 
>>> Am 2023-11-06 19:31, schrieb john:
>>> On Nov 6, 2023, at 05:11, Manfred Usselmann  wrote:
>>> Hi,
>>> Am 2023-10-01 17:47, schrieb john:
>>> On Oct 1, 2023, at 06:00, Derek Atkins  wrote:
>>> On Sun, October 1, 2023 12:00 am, flywire wrote:
>>> https://lists.gnucash.org/pipermail/gnucash-user/2023-April/106619.html
>>> John wrote:
>>> we don't have a Windows CI action, the nightly builds are done with the
>>> https://github.com/gnucash/GnuCash-on-windows powershell scripts on a
>>> Windows VM in Derek's basement.
>>> The nightly builds are those on 
>>> https://code.gnucash.org/builds/win32/stable/, right?
>>> Would it be possible to additonally provide a version there which includes 
>>> the Python bindings?
>>> No, there's no way to make that work with an installed package.
>>> Since there already exists a working build environment, I would hope that 
>>> it's not too much work?
>>> That depends on what you want to use for your Python. If you can use the 
>>> MSYS2 environment from Powershell (some MSYS2 things work directly in 
>>> Powershell, others need a Bash shell) then you can simply add 
>>> -DWITH_PYTHON=ON to the CMakeArgs in jhbuild and build it. Don't run the 
>>> installer, just add 
>>> c:\gcdev64\gnucash\stable\inst\lib\python3.11\site-packages to PYTHONPATH 
>>> and run your scripts.
>>>  
>>> After starting from scratch I'm now able to run a successful build 
>>> including the Python bindings.
>>>  
>>> After adding
>>> C:\Users\mu\Entwicklung\GnuCash\gcdev64\gnucash\stable\inst\lib\python3.11\site-packages
>>> to PYTHONPATH my script now starts and does no longer complain about the 
>>> gnucash imports.
>>>  
>>> But the script aborts and it looks like Python does not find 
>>> _gnucash_core_c.dll in this folder. :-(
>>>  
>>> I also added 
>>> C:\Users\mu\Entwicklung\GnuCash\gcdev64\gnucash\stable\inst\lib\python3.11\site-packages\gnucash
>>>  to the Windows Path, but this does not help.
>>> Traceback (most recent call last):
>>>   File 
>>> "C:\Users\mu\Entwicklung\GnuCash\gcdev64\gnucash\stable\inst\lib\python3.11\site-packages\gnucash\gnucash_core_c.py",
>>>  line 14, in swig_import_helper
>>> return importlib.import_module(mname)
>>>^^
>>>   File 
>>> "C:\Users\mu\AppData\Local\Programs\Python\Python312\Lib\importlib\__init__.py",
>>>  line 90, in import_module
>>> return _bootstrap._gcd_import(name[level:], package, level)
>>>
>>>   File "", line 1381, in _gcd_import
>>>   File "", line 1354, in _find_and_load
>>>   File "", line 1318, in 
>>> _find_and_load_unlocked
>>> ModuleNotFoundError: No module named 'gnucash._gnucash_core_c'
>>> 
>>> During handling of the above exception, another exception occurred:
>>> 
>>> Traceback (most recent call last):
>>>   File "C:\Users\mu\Documents\Nextcloud_Manfred\Manfred 
>>> Entwicklung\USS\Projects\GCToolbox\GCImport\gcimport.py", line 18, in 
>>> 
>>> from gnucash import Session, Account, Transaction, Split, GncNumeric, 
>>> GUID, GUIDString, gnucash_core_c
>>>   File 
>>> "C:\Users\mu\Entwicklung\GnuCash\gcdev64\gnucash\stable\inst\lib\python3.11\site-packages\gnucash\__init__.py",
>>>  line 6, in 
>>> from gnucash.gnucash_core import *
>>>   File 
>>> "C:\Users\mu\Entwicklung\GnuCash\gcdev64\gnucash\stable\inst\lib\python3.11\site-packages\gnucash\gnucash_core.py",
>>>  line 36, in 
>>> from gnucash import gnucash_core_c
>>>   File 
>>> "C:\Users\mu\Entwicklung\GnuCash\gcdev64\gnucash\stable\inst\lib\python3.11\site-packages\gnucash\gnucash_core_c.py",
>>>  line 17, in 
>>> _gnucash_core_c = swig_import_helper()
>>>   
>>>   File 
>>> "C:\Users\mu\Entwicklung\GnuCash\gcdev64\gnucash\stable\inst\lib\python3.11\site-packages\gnucash\gnucash_core_c.py",
>>>  line 16, in swig_import_helper
>>> return importlib.import_module('_gnucash_core_c')
>>>^^
>>>   File 
>>> "C:\Users\mu\AppData\Local\Programs\Python\Python312\Lib\importlib\__init__.py",
>>>  line 90, in import_module
>>> return _bootstrap._gcd_import(name[level:], package, level)
>>>
>>> ModuleNotFoundError: No module named 

Re: [GNC-dev] Windows Build VM

2023-11-19 Thread john



> On Nov 19, 2023, at 08:02, Manfred Usselmann  wrote:
> 
> Am 2023-11-18 20:32, schrieb john:
> 
>> 
>> 
>>> On Nov 17, 2023, at 17:23, Manfred Usselmann  wrote:
>>> 
>>> Am 2023-11-17 05:58, schrieb john:
>>> 
>>> 
>>> 
>>> On Nov 16, 2023, at 14:25, Manfred Usselmann  wrote:
>>> 
>>> Am 2023-11-16 18:41, schrieb john:
>>> 
>>> 
>>> 
>>> On Nov 16, 2023, at 03:50, Manfred Usselmann  wrote:
>>> 
>>> Hi,
>>> 
>>> Am 2023-11-07 04:53, schrieb john:
>>> 
>>> 
>>> 
>>> On Nov 6, 2023, at 16:12, Manfred Usselmann  wrote:
>>> 
>>> Hi John,
>>> 
>>> Am 2023-11-06 19:31, schrieb john:
>>> On Nov 6, 2023, at 05:11, Manfred Usselmann  wrote:
>>> Hi,
>>> Am 2023-10-01 17:47, schrieb john:
>>> On Oct 1, 2023, at 06:00, Derek Atkins  wrote:
>>> On Sun, October 1, 2023 12:00 am, flywire wrote:
>>> https://lists.gnucash.org/pipermail/gnucash-user/2023-April/106619.html
>>> John wrote:
>>> we don't have a Windows CI action, the nightly builds are done with the
>>> https://github.com/gnucash/GnuCash-on-windows powershell scripts on a
>>> Windows VM in Derek's basement.
>>> The nightly builds are those on 
>>> https://code.gnucash.org/builds/win32/stable/, right?
>>> Would it be possible to additonally provide a version there which includes 
>>> the Python bindings?
>>> No, there's no way to make that work with an installed package.
>>> Since there already exists a working build environment, I would hope that 
>>> it's not too much work?
>>> That depends on what you want to use for your Python. If you can use the 
>>> MSYS2 environment from Powershell (some MSYS2 things work directly in 
>>> Powershell, others need a Bash shell) then you can simply add 
>>> -DWITH_PYTHON=ON to the CMakeArgs in jhbuild and build it. Don't run the 
>>> installer, just add 
>>> c:\gcdev64\gnucash\stable\inst\lib\python3.11\site-packages to PYTHONPATH 
>>> and run your scripts.
>>>  
>>> After starting from scratch I'm now able to run a successful build 
>>> including the Python bindings.
>>>  
>>> After adding
>>> C:\Users\mu\Entwicklung\GnuCash\gcdev64\gnucash\stable\inst\lib\python3.11\site-packages
>>> to PYTHONPATH my script now starts and does no longer complain about the 
>>> gnucash imports.
>>>  
>>> But the script aborts and it looks like Python does not find 
>>> _gnucash_core_c.dll in this folder. :-(
>>>  
>>> I also added 
>>> C:\Users\mu\Entwicklung\GnuCash\gcdev64\gnucash\stable\inst\lib\python3.11\site-packages\gnucash
>>>  to the Windows Path, but this does not help.
>>> Traceback (most recent call last):
>>>   File 
>>> "C:\Users\mu\Entwicklung\GnuCash\gcdev64\gnucash\stable\inst\lib\python3.11\site-packages\gnucash\gnucash_core_c.py",
>>>  line 14, in swig_import_helper
>>> return importlib.import_module(mname)
>>>^^
>>>   File 
>>> "C:\Users\mu\AppData\Local\Programs\Python\Python312\Lib\importlib\__init__.py",
>>>  line 90, in import_module
>>> return _bootstrap._gcd_import(name[level:], package, level)
>>>
>>>   File "", line 1381, in _gcd_import
>>>   File "", line 1354, in _find_and_load
>>>   File "", line 1318, in 
>>> _find_and_load_unlocked
>>> ModuleNotFoundError: No module named 'gnucash._gnucash_core_c'
>>> 
>>> During handling of the above exception, another exception occurred:
>>> 
>>> Traceback (most recent call last):
>>>   File "C:\Users\mu\Documents\Nextcloud_Manfred\Manfred 
>>> Entwicklung\USS\Projects\GCToolbox\GCImport\gcimport.py", line 18, in 
>>> 
>>> from gnucash import Session, Account, Transaction, Split, GncNumeric, 
>>> GUID, GUIDString, gnucash_core_c
>>>   File 
>>> "C:\Users\mu\Entwicklung\GnuCash\gcdev64\gnucash\stable\inst\lib\python3.11\site-packages\gnucash\__init__.py",
>>>  line 6, in 
>>> from gnucash.gnucash_core import *
>>>   File 
>>> "C:\Users\mu\Entwicklung\GnuCash\gcdev64\gnucash\stable\inst\lib\python3.11\site-packages\gnucash\gnucash_core.py",
>>>  line 36, in 
>>> from gnucash import gnucash_core_c
>>>   File 
>>> "C:\Users\mu\Entwicklung\GnuCash\gcdev64\gnucash\stable\inst\lib\python3.11\site-packages\gnucash\gnucash_core_c.py",
>>>  line 17, in 
>>> _gnucash_core_c = swig_import_helper()
>>>   
>>>   File 
>>> "C:\Users\mu\Entwicklung\GnuCash\gcdev64\gnucash\stable\inst\lib\python3.11\site-packages\gnucash\gnucash_core_c.py",
>>>  line 16, in swig_import_helper
>>> return importlib.import_module('_gnucash_core_c')
>>>^^
>>>   File 
>>> "C:\Users\mu\AppData\Local\Programs\Python\Python312\Lib\importlib\__init__.py",
>>>  line 90, in import_module
>>> return _bootstrap._gcd_import(name[level:], package, level)
>>>
>>> ModuleNotFoundError: No module named '_gnucash_core_c'
>>> 
>>> Process finished with exit code 1
>>> 
>>> Do you also have 
>>> 

Re: [GNC-dev] Windows Build VM

2023-11-19 Thread Manfred Usselmann




Am 2023-11-18 20:32, schrieb john:

On Nov 17, 2023, at 17:23, Manfred Usselmann  
wrote:


Am 2023-11-17 05:58, schrieb john:

On Nov 16, 2023, at 14:25, Manfred Usselmann  
wrote:


Am 2023-11-16 18:41, schrieb john:

On Nov 16, 2023, at 03:50, Manfred Usselmann  
wrote:


Hi,

Am 2023-11-07 04:53, schrieb john:

On Nov 6, 2023, at 16:12, Manfred Usselmann  
wrote:

Hi John,

Am 2023-11-06 19:31, schrieb john:
On Nov 6, 2023, at 05:11, Manfred Usselmann  
wrote:

Hi,
Am 2023-10-01 17:47, schrieb john:
On Oct 1, 2023, at 06:00, Derek Atkins  wrote:
On Sun, October 1, 2023 12:00 am, flywire wrote:
https://lists.gnucash.org/pipermail/gnucash-user/2023-April/106619.html
John wrote:
we don't have a Windows CI action, the nightly builds are done with the
https://github.com/gnucash/GnuCash-on-windows powershell scripts on a
Windows VM in Derek's basement.
 The nightly builds are those on 
https://code.gnucash.org/builds/win32/stable/, right?
Would it be possible to additonally provide a version there which 
includes the Python bindings? No, there's no way to make that work with 
an installed package.


Since there already exists a working build environment, I would hope 
that it's not too much work?
 That depends on what you want to use for your Python. If you can use 
the MSYS2 environment from Powershell (some MSYS2 things work directly 
in Powershell, others need a Bash shell) then you can simply add 
-DWITH_PYTHON=ON to the CMakeArgs in jhbuild and build it. Don't run the 
installer, just add 
c:\gcdev64\gnucash\stable\inst\lib\python3.11\site-packages to 
PYTHONPATH and run your scripts.


After starting from scratch I'm now able to run a successful build 
including the Python bindings.


After adding
C:\Users\mu\Entwicklung\GnuCash\gcdev64\gnucash\stable\inst\lib\python3.11\site-packages
to PYTHONPATH my script now starts and does no longer complain about the 
gnucash imports.


But the script aborts and it looks like Python does not find 
_gnucash_core_c.dll in this folder. :-(


I also added 
C:\Users\mu\Entwicklung\GnuCash\gcdev64\gnucash\stable\inst\lib\python3.11\site-packages\gnucash 
to the Windows Path, but this does not help.


Traceback (most recent call last):
  File 
"C:\Users\mu\Entwicklung\GnuCash\gcdev64\gnucash\stable\inst\lib\python3.11\site-packages\gnucash\gnucash_core_c.py", 
line 14, in swig_import_helper

return importlib.import_module(mname)
   ^^
  File 
"C:\Users\mu\AppData\Local\Programs\Python\Python312\Lib\importlib\__init__.py", 
line 90, in import_module

return _bootstrap._gcd_import(name[level:], package, level)
   
  File "", line 1381, in _gcd_import
  File "", line 1354, in _find_and_load
  File "", line 1318, in 
_find_and_load_unlocked

ModuleNotFoundError: No module named 'gnucash._gnucash_core_c'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\mu\Documents\Nextcloud_Manfred\Manfred 
Entwicklung\USS\Projects\GCToolbox\GCImport\gcimport.py", line 18, in 

from gnucash import Session, Account, Transaction, Split, 
GncNumeric, GUID, GUIDString, gnucash_core_c
  File 
"C:\Users\mu\Entwicklung\GnuCash\gcdev64\gnucash\stable\inst\lib\python3.11\site-packages\gnucash\__init__.py", 
line 6, in 

from gnucash.gnucash_core import *
  File 
"C:\Users\mu\Entwicklung\GnuCash\gcdev64\gnucash\stable\inst\lib\python3.11\site-packages\gnucash\gnucash_core.py", 
line 36, in 

from gnucash import gnucash_core_c
  File 
"C:\Users\mu\Entwicklung\GnuCash\gcdev64\gnucash\stable\inst\lib\python3.11\site-packages\gnucash\gnucash_core_c.py", 
line 17, in 

_gnucash_core_c = swig_import_helper()
  
  File 
"C:\Users\mu\Entwicklung\GnuCash\gcdev64\gnucash\stable\inst\lib\python3.11\site-packages\gnucash\gnucash_core_c.py", 
line 16, in swig_import_helper

return importlib.import_module('_gnucash_core_c')
   ^^
  File 
"C:\Users\mu\AppData\Local\Programs\Python\Python312\Lib\importlib\__init__.py", 
line 90, in import_module

return _bootstrap._gcd_import(name[level:], package, level)
   
ModuleNotFoundError: No module named '_gnucash_core_c'

Process finished with exit code 1
Do you also have 
C:\Users\mu\Entwicklung\GnuCash\gcdev64\gnucash\stable\inst\lib and 
C:\Users\mu\Entwicklung\GnuCash\gcdev64\gnucash\stable\inst\lib\gnucash 
in %PATH% ?


I've added them now, but it makes no difference.

Does 
C:\Users\mu\Entwicklung\GnuCash\gcdev64\gnucash\stable\inst\lib\python3.11\site-packages\gnucash\_gnucash_core_c.dll 
exist?


BTW the bindings also need _sw_app_utils.dll and _sw_core_utils.dll in 
that directory along with _gnucash_core_c.dll and various python files.


Yes, they are there the following files:

__init__.py
_gnucash_core_c.dll

Re: [GNC-dev] Windows Build VM

2023-11-18 Thread john



> On Nov 17, 2023, at 17:23, Manfred Usselmann  wrote:
> 
> Am 2023-11-17 05:58, schrieb john:
> 
>> 
>> 
>>> On Nov 16, 2023, at 14:25, Manfred Usselmann  wrote:
>>> 
>>> Am 2023-11-16 18:41, schrieb john:
>>> 
>>> 
>>> 
>>> On Nov 16, 2023, at 03:50, Manfred Usselmann  wrote:
>>> 
>>> Hi,
>>> 
>>> Am 2023-11-07 04:53, schrieb john:
>>> 
>>> 
>>> 
>>> On Nov 6, 2023, at 16:12, Manfred Usselmann  wrote:
>>> 
>>> Hi John,
>>> 
>>> Am 2023-11-06 19:31, schrieb john:
>>> On Nov 6, 2023, at 05:11, Manfred Usselmann  wrote:
>>> Hi,
>>> Am 2023-10-01 17:47, schrieb john:
>>> On Oct 1, 2023, at 06:00, Derek Atkins  wrote:
>>> On Sun, October 1, 2023 12:00 am, flywire wrote:
>>> https://lists.gnucash.org/pipermail/gnucash-user/2023-April/106619.html
>>> John wrote:
>>> we don't have a Windows CI action, the nightly builds are done with the
>>> https://github.com/gnucash/GnuCash-on-windows powershell scripts on a
>>> Windows VM in Derek's basement.
>>> The nightly builds are those on 
>>> https://code.gnucash.org/builds/win32/stable/, right?
>>> Would it be possible to additonally provide a version there which includes 
>>> the Python bindings?
>>> No, there's no way to make that work with an installed package.
>>> Since there already exists a working build environment, I would hope that 
>>> it's not too much work?
>>> That depends on what you want to use for your Python. If you can use the 
>>> MSYS2 environment from Powershell (some MSYS2 things work directly in 
>>> Powershell, others need a Bash shell) then you can simply add 
>>> -DWITH_PYTHON=ON to the CMakeArgs in jhbuild and build it. Don't run the 
>>> installer, just add 
>>> c:\gcdev64\gnucash\stable\inst\lib\python3.11\site-packages to PYTHONPATH 
>>> and run your scripts.
>>>  
>>> After starting from scratch I'm now able to run a successful build 
>>> including the Python bindings.
>>>  
>>> After adding
>>> C:\Users\mu\Entwicklung\GnuCash\gcdev64\gnucash\stable\inst\lib\python3.11\site-packages
>>> to PYTHONPATH my script now starts and does no longer complain about the 
>>> gnucash imports.
>>>  
>>> But the script aborts and it looks like Python does not find 
>>> _gnucash_core_c.dll in this folder. :-(
>>>  
>>> I also added 
>>> C:\Users\mu\Entwicklung\GnuCash\gcdev64\gnucash\stable\inst\lib\python3.11\site-packages\gnucash
>>>  to the Windows Path, but this does not help.
>>> Traceback (most recent call last):
>>>   File 
>>> "C:\Users\mu\Entwicklung\GnuCash\gcdev64\gnucash\stable\inst\lib\python3.11\site-packages\gnucash\gnucash_core_c.py",
>>>  line 14, in swig_import_helper
>>> return importlib.import_module(mname)
>>>^^
>>>   File 
>>> "C:\Users\mu\AppData\Local\Programs\Python\Python312\Lib\importlib\__init__.py",
>>>  line 90, in import_module
>>> return _bootstrap._gcd_import(name[level:], package, level)
>>>
>>>   File "", line 1381, in _gcd_import
>>>   File "", line 1354, in _find_and_load
>>>   File "", line 1318, in 
>>> _find_and_load_unlocked
>>> ModuleNotFoundError: No module named 'gnucash._gnucash_core_c'
>>> 
>>> During handling of the above exception, another exception occurred:
>>> 
>>> Traceback (most recent call last):
>>>   File "C:\Users\mu\Documents\Nextcloud_Manfred\Manfred 
>>> Entwicklung\USS\Projects\GCToolbox\GCImport\gcimport.py", line 18, in 
>>> 
>>> from gnucash import Session, Account, Transaction, Split, GncNumeric, 
>>> GUID, GUIDString, gnucash_core_c
>>>   File 
>>> "C:\Users\mu\Entwicklung\GnuCash\gcdev64\gnucash\stable\inst\lib\python3.11\site-packages\gnucash\__init__.py",
>>>  line 6, in 
>>> from gnucash.gnucash_core import *
>>>   File 
>>> "C:\Users\mu\Entwicklung\GnuCash\gcdev64\gnucash\stable\inst\lib\python3.11\site-packages\gnucash\gnucash_core.py",
>>>  line 36, in 
>>> from gnucash import gnucash_core_c
>>>   File 
>>> "C:\Users\mu\Entwicklung\GnuCash\gcdev64\gnucash\stable\inst\lib\python3.11\site-packages\gnucash\gnucash_core_c.py",
>>>  line 17, in 
>>> _gnucash_core_c = swig_import_helper()
>>>   
>>>   File 
>>> "C:\Users\mu\Entwicklung\GnuCash\gcdev64\gnucash\stable\inst\lib\python3.11\site-packages\gnucash\gnucash_core_c.py",
>>>  line 16, in swig_import_helper
>>> return importlib.import_module('_gnucash_core_c')
>>>^^
>>>   File 
>>> "C:\Users\mu\AppData\Local\Programs\Python\Python312\Lib\importlib\__init__.py",
>>>  line 90, in import_module
>>> return _bootstrap._gcd_import(name[level:], package, level)
>>>
>>> ModuleNotFoundError: No module named '_gnucash_core_c'
>>> 
>>> Process finished with exit code 1
>>> 
>>> Do you also have 
>>> C:\Users\mu\Entwicklung\GnuCash\gcdev64\gnucash\stable\inst\lib and 
>>> C:\Users\mu\Entwicklung\GnuCash\gcdev64\gnucash\stable\inst\lib\gnucash in 
>>> 

Re: [GNC-dev] Windows Build VM

2023-11-17 Thread Manfred Usselmann




Am 2023-11-17 05:58, schrieb john:

On Nov 16, 2023, at 14:25, Manfred Usselmann  
wrote:


Am 2023-11-16 18:41, schrieb john:

On Nov 16, 2023, at 03:50, Manfred Usselmann  
wrote:


Hi,

Am 2023-11-07 04:53, schrieb john:

On Nov 6, 2023, at 16:12, Manfred Usselmann  
wrote:

Hi John,

Am 2023-11-06 19:31, schrieb john:
On Nov 6, 2023, at 05:11, Manfred Usselmann  
wrote:

Hi,
Am 2023-10-01 17:47, schrieb john:
On Oct 1, 2023, at 06:00, Derek Atkins  wrote:
On Sun, October 1, 2023 12:00 am, flywire wrote:
https://lists.gnucash.org/pipermail/gnucash-user/2023-April/106619.html
John wrote:
we don't have a Windows CI action, the nightly builds are done with the
https://github.com/gnucash/GnuCash-on-windows powershell scripts on a
Windows VM in Derek's basement.
 The nightly builds are those on 
https://code.gnucash.org/builds/win32/stable/, right?
Would it be possible to additonally provide a version there which 
includes the Python bindings? No, there's no way to make that work with 
an installed package.


Since there already exists a working build environment, I would hope 
that it's not too much work?
 That depends on what you want to use for your Python. If you can use 
the MSYS2 environment from Powershell (some MSYS2 things work directly 
in Powershell, others need a Bash shell) then you can simply add 
-DWITH_PYTHON=ON to the CMakeArgs in jhbuild and build it. Don't run the 
installer, just add 
c:\gcdev64\gnucash\stable\inst\lib\python3.11\site-packages to 
PYTHONPATH and run your scripts.


After starting from scratch I'm now able to run a successful build 
including the Python bindings.


After adding
C:\Users\mu\Entwicklung\GnuCash\gcdev64\gnucash\stable\inst\lib\python3.11\site-packages
to PYTHONPATH my script now starts and does no longer complain about the 
gnucash imports.


But the script aborts and it looks like Python does not find 
_gnucash_core_c.dll in this folder. :-(


I also added 
C:\Users\mu\Entwicklung\GnuCash\gcdev64\gnucash\stable\inst\lib\python3.11\site-packages\gnucash 
to the Windows Path, but this does not help.


Traceback (most recent call last):
  File 
"C:\Users\mu\Entwicklung\GnuCash\gcdev64\gnucash\stable\inst\lib\python3.11\site-packages\gnucash\gnucash_core_c.py", 
line 14, in swig_import_helper

return importlib.import_module(mname)
   ^^
  File 
"C:\Users\mu\AppData\Local\Programs\Python\Python312\Lib\importlib\__init__.py", 
line 90, in import_module

return _bootstrap._gcd_import(name[level:], package, level)
   
  File "", line 1381, in _gcd_import
  File "", line 1354, in _find_and_load
  File "", line 1318, in 
_find_and_load_unlocked

ModuleNotFoundError: No module named 'gnucash._gnucash_core_c'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\mu\Documents\Nextcloud_Manfred\Manfred 
Entwicklung\USS\Projects\GCToolbox\GCImport\gcimport.py", line 18, in 

from gnucash import Session, Account, Transaction, Split, 
GncNumeric, GUID, GUIDString, gnucash_core_c
  File 
"C:\Users\mu\Entwicklung\GnuCash\gcdev64\gnucash\stable\inst\lib\python3.11\site-packages\gnucash\__init__.py", 
line 6, in 

from gnucash.gnucash_core import *
  File 
"C:\Users\mu\Entwicklung\GnuCash\gcdev64\gnucash\stable\inst\lib\python3.11\site-packages\gnucash\gnucash_core.py", 
line 36, in 

from gnucash import gnucash_core_c
  File 
"C:\Users\mu\Entwicklung\GnuCash\gcdev64\gnucash\stable\inst\lib\python3.11\site-packages\gnucash\gnucash_core_c.py", 
line 17, in 

_gnucash_core_c = swig_import_helper()
  
  File 
"C:\Users\mu\Entwicklung\GnuCash\gcdev64\gnucash\stable\inst\lib\python3.11\site-packages\gnucash\gnucash_core_c.py", 
line 16, in swig_import_helper

return importlib.import_module('_gnucash_core_c')
   ^^
  File 
"C:\Users\mu\AppData\Local\Programs\Python\Python312\Lib\importlib\__init__.py", 
line 90, in import_module

return _bootstrap._gcd_import(name[level:], package, level)
   
ModuleNotFoundError: No module named '_gnucash_core_c'

Process finished with exit code 1
Do you also have 
C:\Users\mu\Entwicklung\GnuCash\gcdev64\gnucash\stable\inst\lib and 
C:\Users\mu\Entwicklung\GnuCash\gcdev64\gnucash\stable\inst\lib\gnucash 
in %PATH% ?


I've added them now, but it makes no difference.

Does 
C:\Users\mu\Entwicklung\GnuCash\gcdev64\gnucash\stable\inst\lib\python3.11\site-packages\gnucash\_gnucash_core_c.dll 
exist?


BTW the bindings also need _sw_app_utils.dll and _sw_core_utils.dll in 
that directory along with _gnucash_core_c.dll and various python files.


Yes, they are there the following files:

__init__.py
_gnucash_core_c.dll
_sw_app_utils.dll
_sw_core_utils.dll
app_utils.py
deprecation.py
function_class.py

Re: [GNC-dev] Windows Build VM

2023-11-17 Thread Manfred Usselmann




Am 2023-11-17 05:58, schrieb john:

On Nov 16, 2023, at 14:25, Manfred Usselmann  
wrote:


Am 2023-11-16 18:41, schrieb john:

On Nov 16, 2023, at 03:50, Manfred Usselmann  
wrote:


Hi,

Am 2023-11-07 04:53, schrieb john:

On Nov 6, 2023, at 16:12, Manfred Usselmann  
wrote:

Hi John,

Am 2023-11-06 19:31, schrieb john:
On Nov 6, 2023, at 05:11, Manfred Usselmann  
wrote:

Hi,
Am 2023-10-01 17:47, schrieb john:
On Oct 1, 2023, at 06:00, Derek Atkins  wrote:
On Sun, October 1, 2023 12:00 am, flywire wrote:
https://lists.gnucash.org/pipermail/gnucash-user/2023-April/106619.html
John wrote:
we don't have a Windows CI action, the nightly builds are done with the
https://github.com/gnucash/GnuCash-on-windows powershell scripts on a
Windows VM in Derek's basement.
 The nightly builds are those on 
https://code.gnucash.org/builds/win32/stable/, right?
Would it be possible to additonally provide a version there which 
includes the Python bindings? No, there's no way to make that work with 
an installed package.


Since there already exists a working build environment, I would hope 
that it's not too much work?
 That depends on what you want to use for your Python. If you can use 
the MSYS2 environment from Powershell (some MSYS2 things work directly 
in Powershell, others need a Bash shell) then you can simply add 
-DWITH_PYTHON=ON to the CMakeArgs in jhbuild and build it. Don't run the 
installer, just add 
c:\gcdev64\gnucash\stable\inst\lib\python3.11\site-packages to 
PYTHONPATH and run your scripts.


After starting from scratch I'm now able to run a successful build 
including the Python bindings.


After adding
C:\Users\mu\Entwicklung\GnuCash\gcdev64\gnucash\stable\inst\lib\python3.11\site-packages
to PYTHONPATH my script now starts and does no longer complain about the 
gnucash imports.


But the script aborts and it looks like Python does not find 
_gnucash_core_c.dll in this folder. :-(


I also added 
C:\Users\mu\Entwicklung\GnuCash\gcdev64\gnucash\stable\inst\lib\python3.11\site-packages\gnucash 
to the Windows Path, but this does not help.


Traceback (most recent call last):
  File 
"C:\Users\mu\Entwicklung\GnuCash\gcdev64\gnucash\stable\inst\lib\python3.11\site-packages\gnucash\gnucash_core_c.py", 
line 14, in swig_import_helper

return importlib.import_module(mname)
   ^^
  File 
"C:\Users\mu\AppData\Local\Programs\Python\Python312\Lib\importlib\__init__.py", 
line 90, in import_module

return _bootstrap._gcd_import(name[level:], package, level)
   
  File "", line 1381, in _gcd_import
  File "", line 1354, in _find_and_load
  File "", line 1318, in 
_find_and_load_unlocked

ModuleNotFoundError: No module named 'gnucash._gnucash_core_c'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\mu\Documents\Nextcloud_Manfred\Manfred 
Entwicklung\USS\Projects\GCToolbox\GCImport\gcimport.py", line 18, in 

from gnucash import Session, Account, Transaction, Split, 
GncNumeric, GUID, GUIDString, gnucash_core_c
  File 
"C:\Users\mu\Entwicklung\GnuCash\gcdev64\gnucash\stable\inst\lib\python3.11\site-packages\gnucash\__init__.py", 
line 6, in 

from gnucash.gnucash_core import *
  File 
"C:\Users\mu\Entwicklung\GnuCash\gcdev64\gnucash\stable\inst\lib\python3.11\site-packages\gnucash\gnucash_core.py", 
line 36, in 

from gnucash import gnucash_core_c
  File 
"C:\Users\mu\Entwicklung\GnuCash\gcdev64\gnucash\stable\inst\lib\python3.11\site-packages\gnucash\gnucash_core_c.py", 
line 17, in 

_gnucash_core_c = swig_import_helper()
  
  File 
"C:\Users\mu\Entwicklung\GnuCash\gcdev64\gnucash\stable\inst\lib\python3.11\site-packages\gnucash\gnucash_core_c.py", 
line 16, in swig_import_helper

return importlib.import_module('_gnucash_core_c')
   ^^
  File 
"C:\Users\mu\AppData\Local\Programs\Python\Python312\Lib\importlib\__init__.py", 
line 90, in import_module

return _bootstrap._gcd_import(name[level:], package, level)
   
ModuleNotFoundError: No module named '_gnucash_core_c'

Process finished with exit code 1
Do you also have 
C:\Users\mu\Entwicklung\GnuCash\gcdev64\gnucash\stable\inst\lib and 
C:\Users\mu\Entwicklung\GnuCash\gcdev64\gnucash\stable\inst\lib\gnucash 
in %PATH% ?


I've added them now, but it makes no difference.

Does 
C:\Users\mu\Entwicklung\GnuCash\gcdev64\gnucash\stable\inst\lib\python3.11\site-packages\gnucash\_gnucash_core_c.dll 
exist?


BTW the bindings also need _sw_app_utils.dll and _sw_core_utils.dll in 
that directory along with _gnucash_core_c.dll and various python files.


Yes, they are there the following files:

__init__.py
_gnucash_core_c.dll
_sw_app_utils.dll
_sw_core_utils.dll
app_utils.py
deprecation.py
function_class.py

Re: [GNC-dev] Windows Build VM

2023-11-16 Thread flywire
Thank you for the post below and copy of PM from Manfred advising of his
successful Windows compile. Clearly, the instructions don't work as
published and this information is important.

1. Did you set-executionpolicy Unrestricted (ie set-executionpolicy
-executionpolicy Unrestricted -scope LocalMachine )?
2. Can you confirm you just run everything listed in points 1-3 below after
https://github.com/Gnucash/gnucash-on-windows#setup-mingw64-options and
before https://github.com/Gnucash/gnucash-on-windows#building-gnucash ?
3. Can you explain "apply the manifest patch and a rename patch to jhbuild.
as well as a packaging patch" ?

https://lists.gnucash.org/pipermail/gnucash-devel/2023-November/046820.html
On Sat Nov 11 19:19:42 EST 2023 Sherlock wrote:
>
> For what it may be worth, I have been successful building and packaging
GnuCash 5.4 on Windows 10 with mingw-w64-i686-webkitgtk3-2.4.11-999.5-any
in a recent (2023-07-18) MSYS2 MINGW32 environment.
>
> 1. Missing gcrypt
>
> pacman -S mingw-w64-i686-libgcrypt --noconfirm --needed
>
>
> 2. Missing xmlsec1
>
> pacman -S mingw-w64-i686-xmlsec --noconfirm --needed
>
>
> 3. Install the latest mingw-w64-i686-webkitgtk3 and the versions of it's
dependencies:
>
> cd /c/gcdev64/msys2/var/cache/pacman/pkg/
> wget
https://downloads.sourceforge.net/gnucash/Dependencies/jralls_public_signing_key.asc
> pacman-key --add jralls_public_signing_key.asc
> pacman-key --lsign C1F4DE993CF5835F
> wget
https://sourceforge.net/projects/gnucash/files/Dependencies/mingw-w64-i686-webkitgtk3-2.4.11-999.5-any.pkg.tar.zst
> wget
https://sourceforge.net/projects/gnucash/files/Dependencies/mingw-w64-i686-webkitgtk3-2.4.11-999.5-any.pkg.tar.zst.sig
> pacman -U
https://sourceforge.net/projects/gnucash/files/Dependencies/mingw-w64-i686-webkitgtk3-2.4.11-999.5-any.pkg.tar.zst
--noconfirm --needed
> wget
https://repo.msys2.org/mingw/mingw32/mingw-w64-i686-icu-69.1-1-any.pkg.tar.zst
> wget
https://repo.msys2.org/mingw/mingw32/mingw-w64-i686-gcc-libs-12.2.0-10-any.pkg.tar.zst
> cd /c/gcdev64/msys2
> zstdcat
/c/gcdev64/msys2/var/cache/pacman/pkg/mingw-w64-i686-icu-69.1-1-any.pkg.tar.zst
| tar xf - mingw32/bin/libicudt69.dll mingw32/bin/libicuin69.dll
mingw32/bin/libicuuc69.dll
> zstdcat
/c/gcdev64/msys2/var/cache/pacman/pkg/mingw-w64-i686-gcc-libs-12.2.0-10-any.pkg.tar.zst
| tar xf - mingw32/bin/libssp-0.dll
>
> In addition to including these dependencies in the build environment, I
found it necessary to apply the manifest patch and a rename patch to
jhbuild. as well as a packaging patch.
>
> Sherlock

Regards
___
gnucash-devel mailing list
gnucash-devel@gnucash.org
https://lists.gnucash.org/mailman/listinfo/gnucash-devel


Re: [GNC-dev] Windows Build VM

2023-11-16 Thread john



> On Nov 16, 2023, at 14:25, Manfred Usselmann  wrote:
> 
> Am 2023-11-16 18:41, schrieb john:
> 
>> 
>> 
>>> On Nov 16, 2023, at 03:50, Manfred Usselmann  wrote:
>>> 
>>> Hi,
>>> 
>>> Am 2023-11-07 04:53, schrieb john:
>>> 
>>> 
>>> 
>>> On Nov 6, 2023, at 16:12, Manfred Usselmann  wrote:
>>> 
>>> Hi John,
>>> 
>>> Am 2023-11-06 19:31, schrieb john:
>>> On Nov 6, 2023, at 05:11, Manfred Usselmann  wrote:
>>> Hi,
>>> Am 2023-10-01 17:47, schrieb john:
>>> On Oct 1, 2023, at 06:00, Derek Atkins  wrote:
>>> On Sun, October 1, 2023 12:00 am, flywire wrote:
>>> https://lists.gnucash.org/pipermail/gnucash-user/2023-April/106619.html
>>> John wrote:
>>> we don't have a Windows CI action, the nightly builds are done with the
>>> https://github.com/gnucash/GnuCash-on-windows powershell scripts on a
>>> Windows VM in Derek's basement.
>>> The nightly builds are those on 
>>> https://code.gnucash.org/builds/win32/stable/, right?
>>> Would it be possible to additonally provide a version there which includes 
>>> the Python bindings?
>>> No, there's no way to make that work with an installed package.
>>> Since there already exists a working build environment, I would hope that 
>>> it's not too much work?
>>> That depends on what you want to use for your Python. If you can use the 
>>> MSYS2 environment from Powershell (some MSYS2 things work directly in 
>>> Powershell, others need a Bash shell) then you can simply add 
>>> -DWITH_PYTHON=ON to the CMakeArgs in jhbuild and build it. Don't run the 
>>> installer, just add 
>>> c:\gcdev64\gnucash\stable\inst\lib\python3.11\site-packages to PYTHONPATH 
>>> and run your scripts.
>>>  
>>> After starting from scratch I'm now able to run a successful build 
>>> including the Python bindings.
>>>  
>>> After adding
>>> C:\Users\mu\Entwicklung\GnuCash\gcdev64\gnucash\stable\inst\lib\python3.11\site-packages
>>> to PYTHONPATH my script now starts and does no longer complain about the 
>>> gnucash imports.
>>>  
>>> But the script aborts and it looks like Python does not find 
>>> _gnucash_core_c.dll in this folder. :-(
>>>  
>>> I also added 
>>> C:\Users\mu\Entwicklung\GnuCash\gcdev64\gnucash\stable\inst\lib\python3.11\site-packages\gnucash
>>>  to the Windows Path, but this does not help.
>>> Traceback (most recent call last):
>>>   File 
>>> "C:\Users\mu\Entwicklung\GnuCash\gcdev64\gnucash\stable\inst\lib\python3.11\site-packages\gnucash\gnucash_core_c.py",
>>>  line 14, in swig_import_helper
>>> return importlib.import_module(mname)
>>>^^
>>>   File 
>>> "C:\Users\mu\AppData\Local\Programs\Python\Python312\Lib\importlib\__init__.py",
>>>  line 90, in import_module
>>> return _bootstrap._gcd_import(name[level:], package, level)
>>>
>>>   File "", line 1381, in _gcd_import
>>>   File "", line 1354, in _find_and_load
>>>   File "", line 1318, in 
>>> _find_and_load_unlocked
>>> ModuleNotFoundError: No module named 'gnucash._gnucash_core_c'
>>> 
>>> During handling of the above exception, another exception occurred:
>>> 
>>> Traceback (most recent call last):
>>>   File "C:\Users\mu\Documents\Nextcloud_Manfred\Manfred 
>>> Entwicklung\USS\Projects\GCToolbox\GCImport\gcimport.py", line 18, in 
>>> 
>>> from gnucash import Session, Account, Transaction, Split, GncNumeric, 
>>> GUID, GUIDString, gnucash_core_c
>>>   File 
>>> "C:\Users\mu\Entwicklung\GnuCash\gcdev64\gnucash\stable\inst\lib\python3.11\site-packages\gnucash\__init__.py",
>>>  line 6, in 
>>> from gnucash.gnucash_core import *
>>>   File 
>>> "C:\Users\mu\Entwicklung\GnuCash\gcdev64\gnucash\stable\inst\lib\python3.11\site-packages\gnucash\gnucash_core.py",
>>>  line 36, in 
>>> from gnucash import gnucash_core_c
>>>   File 
>>> "C:\Users\mu\Entwicklung\GnuCash\gcdev64\gnucash\stable\inst\lib\python3.11\site-packages\gnucash\gnucash_core_c.py",
>>>  line 17, in 
>>> _gnucash_core_c = swig_import_helper()
>>>   
>>>   File 
>>> "C:\Users\mu\Entwicklung\GnuCash\gcdev64\gnucash\stable\inst\lib\python3.11\site-packages\gnucash\gnucash_core_c.py",
>>>  line 16, in swig_import_helper
>>> return importlib.import_module('_gnucash_core_c')
>>>^^
>>>   File 
>>> "C:\Users\mu\AppData\Local\Programs\Python\Python312\Lib\importlib\__init__.py",
>>>  line 90, in import_module
>>> return _bootstrap._gcd_import(name[level:], package, level)
>>>
>>> ModuleNotFoundError: No module named '_gnucash_core_c'
>>> 
>>> Process finished with exit code 1
>>> 
>> 
>> Do you also have 
>> C:\Users\mu\Entwicklung\GnuCash\gcdev64\gnucash\stable\inst\lib and 
>> C:\Users\mu\Entwicklung\GnuCash\gcdev64\gnucash\stable\inst\lib\gnucash in 
>> %PATH% ? 
>  
> I've added them now, but it makes no difference.
>  
>  
>> Does 
>> 

Re: [GNC-dev] Windows Build VM

2023-11-16 Thread Manfred Usselmann




Am 2023-11-16 18:41, schrieb john:

On Nov 16, 2023, at 03:50, Manfred Usselmann  
wrote:


Hi,

Am 2023-11-07 04:53, schrieb john:

On Nov 6, 2023, at 16:12, Manfred Usselmann  
wrote:

Hi John,

Am 2023-11-06 19:31, schrieb john:
On Nov 6, 2023, at 05:11, Manfred Usselmann  
wrote:

Hi,
Am 2023-10-01 17:47, schrieb john:
On Oct 1, 2023, at 06:00, Derek Atkins  wrote:
On Sun, October 1, 2023 12:00 am, flywire wrote:
https://lists.gnucash.org/pipermail/gnucash-user/2023-April/106619.html
John wrote:
we don't have a Windows CI action, the nightly builds are done with the
https://github.com/gnucash/GnuCash-on-windows powershell scripts on a
Windows VM in Derek's basement.
 The nightly builds are those on 
https://code.gnucash.org/builds/win32/stable/, right?
Would it be possible to additonally provide a version there which 
includes the Python bindings? No, there's no way to make that work with 
an installed package.


Since there already exists a working build environment, I would hope 
that it's not too much work?
 That depends on what you want to use for your Python. If you can use 
the MSYS2 environment from Powershell (some MSYS2 things work directly 
in Powershell, others need a Bash shell) then you can simply add 
-DWITH_PYTHON=ON to the CMakeArgs in jhbuild and build it. Don't run the 
installer, just add 
c:\gcdev64\gnucash\stable\inst\lib\python3.11\site-packages to 
PYTHONPATH and run your scripts.


After starting from scratch I'm now able to run a successful build 
including the Python bindings.


After adding
C:\Users\mu\Entwicklung\GnuCash\gcdev64\gnucash\stable\inst\lib\python3.11\site-packages
to PYTHONPATH my script now starts and does no longer complain about the 
gnucash imports.


But the script aborts and it looks like Python does not find 
_gnucash_core_c.dll in this folder. :-(


I also added 
C:\Users\mu\Entwicklung\GnuCash\gcdev64\gnucash\stable\inst\lib\python3.11\site-packages\gnucash 
to the Windows Path, but this does not help.


Traceback (most recent call last):
  File 
"C:\Users\mu\Entwicklung\GnuCash\gcdev64\gnucash\stable\inst\lib\python3.11\site-packages\gnucash\gnucash_core_c.py", 
line 14, in swig_import_helper

return importlib.import_module(mname)
   ^^
  File 
"C:\Users\mu\AppData\Local\Programs\Python\Python312\Lib\importlib\__init__.py", 
line 90, in import_module

return _bootstrap._gcd_import(name[level:], package, level)
   
  File "", line 1381, in _gcd_import
  File "", line 1354, in _find_and_load
  File "", line 1318, in 
_find_and_load_unlocked

ModuleNotFoundError: No module named 'gnucash._gnucash_core_c'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\mu\Documents\Nextcloud_Manfred\Manfred 
Entwicklung\USS\Projects\GCToolbox\GCImport\gcimport.py", line 18, in 

from gnucash import Session, Account, Transaction, Split, 
GncNumeric, GUID, GUIDString, gnucash_core_c
  File 
"C:\Users\mu\Entwicklung\GnuCash\gcdev64\gnucash\stable\inst\lib\python3.11\site-packages\gnucash\__init__.py", 
line 6, in 

from gnucash.gnucash_core import *
  File 
"C:\Users\mu\Entwicklung\GnuCash\gcdev64\gnucash\stable\inst\lib\python3.11\site-packages\gnucash\gnucash_core.py", 
line 36, in 

from gnucash import gnucash_core_c
  File 
"C:\Users\mu\Entwicklung\GnuCash\gcdev64\gnucash\stable\inst\lib\python3.11\site-packages\gnucash\gnucash_core_c.py", 
line 17, in 

_gnucash_core_c = swig_import_helper()
  
  File 
"C:\Users\mu\Entwicklung\GnuCash\gcdev64\gnucash\stable\inst\lib\python3.11\site-packages\gnucash\gnucash_core_c.py", 
line 16, in swig_import_helper

return importlib.import_module('_gnucash_core_c')
   ^^
  File 
"C:\Users\mu\AppData\Local\Programs\Python\Python312\Lib\importlib\__init__.py", 
line 90, in import_module

return _bootstrap._gcd_import(name[level:], package, level)
   
ModuleNotFoundError: No module named '_gnucash_core_c'

Process finished with exit code 1
Do you also have 
C:\Users\mu\Entwicklung\GnuCash\gcdev64\gnucash\stable\inst\lib and 
C:\Users\mu\Entwicklung\GnuCash\gcdev64\gnucash\stable\inst\lib\gnucash 
in %PATH% ?


I've added them now, but it makes no difference.

Does 
C:\Users\mu\Entwicklung\GnuCash\gcdev64\gnucash\stable\inst\lib\python3.11\site-packages\gnucash\_gnucash_core_c.dll 
exist?


BTW the bindings also need _sw_app_utils.dll and _sw_core_utils.dll in 
that directory along with _gnucash_core_c.dll and various python files.


Yes, they are there the following files:

__init__.py
_gnucash_core_c.dll
_sw_app_utils.dll
_sw_core_utils.dll
app_utils.py
deprecation.py
function_class.py
gnucash_business.py
gnucash_core.py
gnucash_core_c.py

folder __pycache__

Some of these files are 

Re: [GNC-dev] Windows Build VM

2023-11-16 Thread john



> On Nov 16, 2023, at 03:50, Manfred Usselmann  wrote:
> 
> Hi,
> 
> Am 2023-11-07 04:53, schrieb john:
> 
>> 
>> 
>>> On Nov 6, 2023, at 16:12, Manfred Usselmann  wrote:
>>> 
>>> Hi John,
>>> 
>>> Am 2023-11-06 19:31, schrieb john:
 On Nov 6, 2023, at 05:11, Manfred Usselmann  wrote:
 Hi,
 Am 2023-10-01 17:47, schrieb john:
>> On Oct 1, 2023, at 06:00, Derek Atkins  wrote:
>> On Sun, October 1, 2023 12:00 am, flywire wrote:
>>> https://lists.gnucash.org/pipermail/gnucash-user/2023-April/106619.html
>>> John wrote:
 we don't have a Windows CI action, the nightly builds are done with the
 https://github.com/gnucash/GnuCash-on-windows powershell scripts on a
 Windows VM in Derek's basement.
 The nightly builds are those on 
 https://code.gnucash.org/builds/win32/stable/, right?
 Would it be possible to additonally provide a version there which includes 
 the Python bindings?
>>> No, there's no way to make that work with an installed package.
 Since there already exists a working build environment, I would hope that 
 it's not too much work?
>>> That depends on what you want to use for your Python. If you can use the 
>>> MSYS2 environment from Powershell (some MSYS2 things work directly in 
>>> Powershell, others need a Bash shell) then you can simply add 
>>> -DWITH_PYTHON=ON to the CMakeArgs in jhbuild and build it. Don't run the 
>>> installer, just add 
>>> c:\gcdev64\gnucash\stable\inst\lib\python3.11\site-packages to PYTHONPATH 
>>> and run your scripts.
>  
> After starting from scratch I'm now able to run a successful build including 
> the Python bindings.
>  
> After adding
> C:\Users\mu\Entwicklung\GnuCash\gcdev64\gnucash\stable\inst\lib\python3.11\site-packages
> to PYTHONPATH my script now starts and does no longer complain about the 
> gnucash imports.
>  
> But the script aborts and it looks like Python does not find 
> _gnucash_core_c.dll in this folder. :-(
>  
> I also added 
> C:\Users\mu\Entwicklung\GnuCash\gcdev64\gnucash\stable\inst\lib\python3.11\site-packages\gnucash
>  to the Windows Path, but this does not help.
> Traceback (most recent call last):
>   File 
> "C:\Users\mu\Entwicklung\GnuCash\gcdev64\gnucash\stable\inst\lib\python3.11\site-packages\gnucash\gnucash_core_c.py",
>  line 14, in swig_import_helper
> return importlib.import_module(mname)
>^^
>   File 
> "C:\Users\mu\AppData\Local\Programs\Python\Python312\Lib\importlib\__init__.py",
>  line 90, in import_module
> return _bootstrap._gcd_import(name[level:], package, level)
>
>   File "", line 1381, in _gcd_import
>   File "", line 1354, in _find_and_load
>   File "", line 1318, in _find_and_load_unlocked
> ModuleNotFoundError: No module named 'gnucash._gnucash_core_c'
> 
> During handling of the above exception, another exception occurred:
> 
> Traceback (most recent call last):
>   File "C:\Users\mu\Documents\Nextcloud_Manfred\Manfred 
> Entwicklung\USS\Projects\GCToolbox\GCImport\gcimport.py", line 18, in 
> from gnucash import Session, Account, Transaction, Split, GncNumeric, 
> GUID, GUIDString, gnucash_core_c
>   File 
> "C:\Users\mu\Entwicklung\GnuCash\gcdev64\gnucash\stable\inst\lib\python3.11\site-packages\gnucash\__init__.py",
>  line 6, in 
> from gnucash.gnucash_core import *
>   File 
> "C:\Users\mu\Entwicklung\GnuCash\gcdev64\gnucash\stable\inst\lib\python3.11\site-packages\gnucash\gnucash_core.py",
>  line 36, in 
> from gnucash import gnucash_core_c
>   File 
> "C:\Users\mu\Entwicklung\GnuCash\gcdev64\gnucash\stable\inst\lib\python3.11\site-packages\gnucash\gnucash_core_c.py",
>  line 17, in 
> _gnucash_core_c = swig_import_helper()
>   
>   File 
> "C:\Users\mu\Entwicklung\GnuCash\gcdev64\gnucash\stable\inst\lib\python3.11\site-packages\gnucash\gnucash_core_c.py",
>  line 16, in swig_import_helper
> return importlib.import_module('_gnucash_core_c')
>^^
>   File 
> "C:\Users\mu\AppData\Local\Programs\Python\Python312\Lib\importlib\__init__.py",
>  line 90, in import_module
> return _bootstrap._gcd_import(name[level:], package, level)
>
> ModuleNotFoundError: No module named '_gnucash_core_c'
> 
> Process finished with exit code 1
> 

Do you also have 
C:\Users\mu\Entwicklung\GnuCash\gcdev64\gnucash\stable\inst\lib and 
C:\Users\mu\Entwicklung\GnuCash\gcdev64\gnucash\stable\inst\lib\gnucash in 
%PATH% ? Does 
C:\Users\mu\Entwicklung\GnuCash\gcdev64\gnucash\stable\inst\lib\python3.11\site-packages\gnucash\_gnucash_core_c.dll
 exist? 

BTW the bindings also need _sw_app_utils.dll and _sw_core_utils.dll in that 
directory along with _gnucash_core_c.dll and various python files.

Regards,
John Ralls




Re: [GNC-dev] Windows Build VM

2023-11-16 Thread Manfred Usselmann




Am 2023-11-13 05:07, schrieb john:

On Nov 12, 2023, at 18:13, Manfred Usselmann  
wrote:

1) /mingw64/lib/pkgconfig
1) /mingw64/share/pkgconfig
2) 
/c/Users/mu/Entwicklung/GnuCash/gcdev64/gnucash/stable/inst/lib/pkgconfig

3) /c/Users/mu/Entwicklung/GnuCash/gcdev64/msys2/mingw32/lib/pkgconfig


1) indicates you've started a Mingw64 shell from the start menu while 
3) says that jhbuild thinks you're building for Mingw32. How'd that 
happen?


Indeed, the shortcut I used was wrong. I thought I had changed it after 
switching from 64-bit to 32-bit builds, but obviously I hadn't.


Thanks.

Regards,
Manfred
___
gnucash-devel mailing list
gnucash-devel@gnucash.org
https://lists.gnucash.org/mailman/listinfo/gnucash-devel


Re: [GNC-dev] Windows Build VM

2023-11-16 Thread Manfred Usselmann




Hi,

Am 2023-11-07 04:53, schrieb john:

On Nov 6, 2023, at 16:12, Manfred Usselmann  
wrote:

Hi John,

Am 2023-11-06 19:31, schrieb john:
On Nov 6, 2023, at 05:11, Manfred Usselmann  
wrote:

Hi,
Am 2023-10-01 17:47, schrieb john:
On Oct 1, 2023, at 06:00, Derek Atkins  wrote:
On Sun, October 1, 2023 12:00 am, flywire wrote:
https://lists.gnucash.org/pipermail/gnucash-user/2023-April/106619.html
John wrote:
we don't have a Windows CI action, the nightly builds are done with the
https://github.com/gnucash/GnuCash-on-windows powershell scripts on a
Windows VM in Derek's basement.
 The nightly builds are those on 
https://code.gnucash.org/builds/win32/stable/, right?
Would it be possible to additonally provide a version there which 
includes the Python bindings? No, there's no way to make that work with 
an installed package.


Since there already exists a working build environment, I would hope 
that it's not too much work?
 That depends on what you want to use for your Python. If you can use 
the MSYS2 environment from Powershell (some MSYS2 things work directly 
in Powershell, others need a Bash shell) then you can simply add 
-DWITH_PYTHON=ON to the CMakeArgs in jhbuild and build it. Don't run the 
installer, just add 
c:\gcdev64\gnucash\stable\inst\lib\python3.11\site-packages to 
PYTHONPATH and run your scripts.


After starting from scratch I'm now able to run a successful build 
including the Python bindings.


After adding
C:\Users\mu\Entwicklung\GnuCash\gcdev64\gnucash\stable\inst\lib\python3.11\site-packages
to PYTHONPATH my script now starts and does no longer complain about the 
gnucash imports.


But the script aborts and it looks like Python does not find 
_gnucash_core_c.dll in this folder. :-(


I also added 
C:\Users\mu\Entwicklung\GnuCash\gcdev64\gnucash\stable\inst\lib\python3.11\site-packages\gnucash 
to the Windows Path, but this does not help.


Traceback (most recent call last):
  File 
"C:\Users\mu\Entwicklung\GnuCash\gcdev64\gnucash\stable\inst\lib\python3.11\site-packages\gnucash\gnucash_core_c.py", 
line 14, in swig_import_helper

return importlib.import_module(mname)
   ^^
  File 
"C:\Users\mu\AppData\Local\Programs\Python\Python312\Lib\importlib\__init__.py", 
line 90, in import_module

return _bootstrap._gcd_import(name[level:], package, level)
   
  File "", line 1381, in _gcd_import
  File "", line 1354, in _find_and_load
  File "", line 1318, in 
_find_and_load_unlocked

ModuleNotFoundError: No module named 'gnucash._gnucash_core_c'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\mu\Documents\Nextcloud_Manfred\Manfred 
Entwicklung\USS\Projects\GCToolbox\GCImport\gcimport.py", line 18, in 

from gnucash import Session, Account, Transaction, Split, 
GncNumeric, GUID, GUIDString, gnucash_core_c
  File 
"C:\Users\mu\Entwicklung\GnuCash\gcdev64\gnucash\stable\inst\lib\python3.11\site-packages\gnucash\__init__.py", 
line 6, in 

from gnucash.gnucash_core import *
  File 
"C:\Users\mu\Entwicklung\GnuCash\gcdev64\gnucash\stable\inst\lib\python3.11\site-packages\gnucash\gnucash_core.py", 
line 36, in 

from gnucash import gnucash_core_c
  File 
"C:\Users\mu\Entwicklung\GnuCash\gcdev64\gnucash\stable\inst\lib\python3.11\site-packages\gnucash\gnucash_core_c.py", 
line 17, in 

_gnucash_core_c = swig_import_helper()
  
  File 
"C:\Users\mu\Entwicklung\GnuCash\gcdev64\gnucash\stable\inst\lib\python3.11\site-packages\gnucash\gnucash_core_c.py", 
line 16, in swig_import_helper

return importlib.import_module('_gnucash_core_c')
   ^^
  File 
"C:\Users\mu\AppData\Local\Programs\Python\Python312\Lib\importlib\__init__.py", 
line 90, in import_module

return _bootstrap._gcd_import(name[level:], package, level)
   
ModuleNotFoundError: No module named '_gnucash_core_c'

Process finished with exit code 1

If the MSYS2 python doesn't work for you then you'll need to fiddle 
with paths and such so that CMake finds the python libraries that you 
want it to. You must make sure that everything Python is linked to the 
same Python installation.

Thanks, this sounds promising.

Results so far:

- I had to set-executionpolicy Unrestricted.

- I had to add libgcrypt to setup-mngw54.ps1

- How do I add -DWITH_PYTHON=ON to jhbuildrc?
append_autogenargs("gnucash", "-DWITH_PYTHON=ON")  ?


  That will work.

For me it didn't. I also changed it to

append_autogenargs("gnucash-git", "-DWITH_PYTHON=ON")

since I believe this is getting build. Eventually I added it directly to 
gnucash.modules.


Regards,
Manfred
___
gnucash-devel mailing list
gnucash-devel@gnucash.org

Re: [GNC-dev] Windows Build VM

2023-11-15 Thread Sherlock


> On Nov 15, 2023, at 3:15 PM, Manfred Usselmann  wrote:
> 
> Hi,
> 
> Am 2023-11-12 01:19, schrieb Sherlock:
> 
>> For what it may be worth, I have been successful building and packaging 
>> GnuCash 5.4 on Windows 10 with mingw-w64-i686-webkitgtk3-2.4.11-999.5-any in 
>> a recent (2023-07-18) MSYS2 MINGW32 environment.
> 
> Did you include the Python bindings as well?

No. 

> 
>> 1. Missing gcrypt
>> pacman -S mingw-w64-i686-libgcrypt --noconfirm --needed
>> 2. Missing xmlsec1
>> pacman -S mingw-w64-i686-xmlsec --noconfirm --needed
>> 3. Install the latest mingw-w64-i686-webkitgtk3 and the versions of it's 
>> dependencies:
>> cd /c/gcdev64/msys2/var/cache/pacman/pkg/
>> wget 
>> https://downloads.sourceforge.net/gnucash/Dependencies/jralls_public_signing_key.asc
>> pacman-key --add jralls_public_signing_key.asc
>> pacman-key --lsign C1F4DE993CF5835F
>> wget 
>> https://sourceforge.net/projects/gnucash/files/Dependencies/mingw-w64-i686-webkitgtk3-2.4.11-999.5-any.pkg.tar.zst
>> wget 
>> https://sourceforge.net/projects/gnucash/files/Dependencies/mingw-w64-i686-webkitgtk3-2.4.11-999.5-any.pkg.tar.zst.sig
>> pacman -U 
>> https://sourceforge.net/projects/gnucash/files/Dependencies/mingw-w64-i686-webkitgtk3-2.4.11-999.5-any.pkg.tar.zst
>>  --noconfirm --needed
>> wget 
>> https://repo.msys2.org/mingw/mingw32/mingw-w64-i686-icu-69.1-1-any.pkg.tar.zst
>> wget 
>> https://repo.msys2.org/mingw/mingw32/mingw-w64-i686-gcc-libs-12.2.0-10-any.pkg.tar.zst
>> cd /c/gcdev64/msys2
>> zstdcat 
>> /c/gcdev64/msys2/var/cache/pacman/pkg/mingw-w64-i686-icu-69.1-1-any.pkg.tar.zst
>>  | tar xf - mingw32/bin/libicudt69.dll mingw32/bin/libicuin69.dll 
>> mingw32/bin/libicuuc69.dll
>> zstdcat 
>> /c/gcdev64/msys2/var/cache/pacman/pkg/mingw-w64-i686-gcc-libs-12.2.0-10-any.pkg.tar.zst
>>  | tar xf - mingw32/bin/libssp-0.dll
> 
> I executed your commands above and it did work for me as well. Thanks! :-)
> 
> Regards,
> Manfred

___
gnucash-devel mailing list
gnucash-devel@gnucash.org
https://lists.gnucash.org/mailman/listinfo/gnucash-devel


Re: [GNC-dev] Windows Build VM

2023-11-12 Thread john



> On Nov 12, 2023, at 18:13, Manfred Usselmann  wrote:
> 
> 1) /mingw64/lib/pkgconfig
> 1) /mingw64/share/pkgconfig
> 2) /c/Users/mu/Entwicklung/GnuCash/gcdev64/gnucash/stable/inst/lib/pkgconfig
> 3) /c/Users/mu/Entwicklung/GnuCash/gcdev64/msys2/mingw32/lib/pkgconfig

1) indicates you've started a Mingw64 shell from the start menu while 3) says 
that jhbuild thinks you're building for Mingw32. How'd that happen?

Regards,
John Ralls

___
gnucash-devel mailing list
gnucash-devel@gnucash.org
https://lists.gnucash.org/mailman/listinfo/gnucash-devel


Re: [GNC-dev] Windows Build VM

2023-11-12 Thread Manfred Usselmann

Am 2023-11-12 05:55, schrieb john:
On Nov 11, 2023, at 17:47, Manfred Usselmann  
wrote:


Am 2023-11-11 18:46, schrieb john:
On Nov 11, 2023, at 04:18, Manfred Usselmann  
wrote:

# Next issue:
# 
---

*** Checking out gnucash-git *** [12/14]
[...]
CMake Error at CMakeLists.txt:345 (message):
Neither guile 3.0, guile 2.2, nor guile 2.0 were found GnuCash can't 
run
without one of them.  Ensure that one is installed and can be found 
with

pkg-config.
-- Configuring incomplete, errors occurred!
*** Error during phase configure of gnucash-git: ## Error 
running cmake 
-DCMAKE_INSTALL_PREFIX=/C/users/mu/Entwicklung/GnuCash/gcdev64/gnucash/stable/inst 
-DCMAKE_INSTALL_LIBDIR=lib -G Ninja -DCMAKE_PREFIX_PATH=$MSYS2ROOT 
-DPERL_EXECUTABLE=/usr/bin/perl -DGNC_DBD_DIR=$PREFIX/lib/dbd 
-DGTEST_ROOT=$SRCROOT/googletest/ -DCMAKE_BUILD_TYPE=Debug  
/C/users/mu/Entwicklung/GnuCash/gcdev64/gnucash/stable/src/gnucash-git 
*** [12/14]
# 
---
Not sure what this one is. I believe there was already a long 
running build of guile2.

*** Checking out guile2 *** [10/14]
*** Skipping guile2 (package and dependencies not updated) *** 
[10/14]

Any hint for me?
You probably need at least 
mingw-w64-i686-webkitgtk3-2.4.11-999.5-any. WebKit is a long-running 
sore point. MSYS2 periodically updates one of the webkit dependencies 
and I have to build another one, a process that can take several 
days. Another wrinkle is that Derek's windows VM and my windows VM 
sometimes diverge. Getting them back is another manual process that I 
have to make time to do carefully so as not to break the nightly 
builds; keeping those working is the top priority for 
gnucash-on-windows.


Completely understandable.

With a new installation you're likely out of sync with both of those 
reference MSYS2 installations. Having a mismatch will cause link 
errors with libgnc-html.dll.


We'll see...


For guile, make sure that $PREFIX/lib/pkgconfig/guile-2.2.pc exists; 
if it does make sure that PKG_CONFIG_PATH contains 
$PREFIX/lib/pkgconfig.


It does.

$ pkg-config --list-all
aqbanking  AqBanking - A library for online 
banking functions and financial data import/export
atomic_ops The atomic_ops library - Atomic memory 
update operations portable implementation
bdw-gc Boehm-Demers-Weiser Conservative 
Garbage Collector - A garbage collector for C and C++
guile-2.2  GNU Guile - GNU's Ubiquitous 
Intelligent Language for Extension

[...]0

But for cmake / pkg_check_modules only the packages from 
gcdev64/msys2/mingw32/lib/pkgconfig are visible.


Strange...


Dunno if it's strange. jhbuildrc should add $PREFIX/lib/pkgconfig/ to 
PKG_CONFIG_PATH. Maybe that's gotten messed up?




PKG_CONFIG_PATH eventually contains 7 path elements.

4) 
/c/Users/mu/Entwicklung/GnuCash/gcdev64/gnucash/stable/inst/lib/pkgconfig
4) 
/c/Users/mu/Entwicklung/GnuCash/gcdev64/gnucash/stable/inst/share/pkgconfig

1) /mingw64/lib/pkgconfig
1) /mingw64/share/pkgconfig
2) 
/c/Users/mu/Entwicklung/GnuCash/gcdev64/gnucash/stable/inst/lib/pkgconfig

3) /c/Users/mu/Entwicklung/GnuCash/gcdev64/msys2/mingw32/lib/pkgconfig
4) 
/c/Users/mu/Entwicklung/GnuCash/gcdev64/gnucash/stable/inst/lib/pkgconfig


1) Set by msys2 in 
C:\Users\mu\Entwicklung\GnuCash\gcdev64\msys2\etc\profile (bash.bashrc: 
source /etc/profile)


   MINGW_MOUNT_POINT="${MINGW_PREFIX}"
   
PKG_CONFIG_PATH="${MINGW_MOUNT_POINT}/lib/pkgconfig:${MINGW_MOUNT_POINT}/share/pkgconfig"


2) I added it to 
C:\Users\mu\Entwicklung\GnuCash\gcdev64\msys2\home\Manfred\.bashrc


   export 
PKG_CONFIG_PATH=$PKG_CONFIG_PATH:/c/Users/mu/Entwicklung/GnuCash/gcdev64/gnucash/stable/inst/lib/pkgconfig


3) Set by jhbuildrc

   _mingw_base = os.path.join(_basedir, 'msys2', _arch)
   _mingw_libs = os.path.join(_mingw_base, 'lib')
   add_to_path_var('PKG_CONFIG_PATH', os.path.join(_mingw_libs, 
'pkgconfig'))


4) After jhbuildrc, but I didn't find where exactly. But makes 2) 
superfluous.


---
For testing purposes I extended CMakeLists.txt a little bit around the 
Guile check to see what is found and what not:

---

# guile library and include dir
message(STATUS "PKG_CONFIG_PATH=$ENV{PKG_CONFIG_PATH}")
pkg_check_modules (AQB_DUMMY_TEST aqbanking)
pkg_check_modules (GWGUI_DUMMY_TEST gwengui-gtk3)
pkg_check_modules (GOBJECT_DUMMY_TEST gobject-2.0)
pkg_check_modules (GMP_DUMMY_TEST gmp)
pkg_check_modules (GUILE3 guile-3.0)
pkg_check_modules (GUILE22 guile-2.2)
pkg_check_modules (GUILE2 guile-2.0>=2.0.9)
execute_process(
COMMAND pkg-config --path guile-3.0
OUTPUT_VARIABLE GUILE_PKG_RESULT
OUTPUT_STRIP_TRAILING_WHITESPACE
)

Re: [GNC-dev] Windows Build VM

2023-11-11 Thread john



> On Nov 11, 2023, at 17:47, Manfred Usselmann  wrote:
> 
> Am 2023-11-11 18:46, schrieb john:
>>> On Nov 11, 2023, at 04:18, Manfred Usselmann  wrote:
>>> # Next issue:
>>> # 
>>> ---
>>> *** Checking out gnucash-git *** [12/14]
>>> [...]
>>> CMake Error at CMakeLists.txt:345 (message):
>>> Neither guile 3.0, guile 2.2, nor guile 2.0 were found GnuCash can't run
>>> without one of them.  Ensure that one is installed and can be found with
>>> pkg-config.
>>> -- Configuring incomplete, errors occurred!
>>> *** Error during phase configure of gnucash-git: ## Error running 
>>> cmake 
>>> -DCMAKE_INSTALL_PREFIX=/C/users/mu/Entwicklung/GnuCash/gcdev64/gnucash/stable/inst
>>>  -DCMAKE_INSTALL_LIBDIR=lib -G Ninja -DCMAKE_PREFIX_PATH=$MSYS2ROOT 
>>> -DPERL_EXECUTABLE=/usr/bin/perl -DGNC_DBD_DIR=$PREFIX/lib/dbd 
>>> -DGTEST_ROOT=$SRCROOT/googletest/ -DCMAKE_BUILD_TYPE=Debug  
>>> /C/users/mu/Entwicklung/GnuCash/gcdev64/gnucash/stable/src/gnucash-git *** 
>>> [12/14]
>>> # 
>>> ---
>>> Not sure what this one is. I believe there was already a long running build 
>>> of guile2.
>>> *** Checking out guile2 *** [10/14]
>>> *** Skipping guile2 (package and dependencies not updated) *** [10/14]
>>> Any hint for me?
>> You probably need at least mingw-w64-i686-webkitgtk3-2.4.11-999.5-any. 
>> WebKit is a long-running sore point. MSYS2 periodically updates one of the 
>> webkit dependencies and I have to build another one, a process that can take 
>> several days. Another wrinkle is that Derek's windows VM and my windows VM 
>> sometimes diverge. Getting them back is another manual process that I have 
>> to make time to do carefully so as not to break the nightly builds; keeping 
>> those working is the top priority for gnucash-on-windows.
> 
> Completely understandable.
> 
>> With a new installation you're likely out of sync with both of those 
>> reference MSYS2 installations. Having a mismatch will cause link errors with 
>> libgnc-html.dll.
> 
> We'll see...
> 
> 
>> For guile, make sure that $PREFIX/lib/pkgconfig/guile-2.2.pc exists; if it 
>> does make sure that PKG_CONFIG_PATH contains $PREFIX/lib/pkgconfig.
> 
> It does.
> 
> $ pkg-config --list-all
> aqbanking  AqBanking - A library for online banking 
> functions and financial data import/export
> atomic_ops The atomic_ops library - Atomic memory update 
> operations portable implementation
> bdw-gc Boehm-Demers-Weiser Conservative Garbage 
> Collector - A garbage collector for C and C++
> guile-2.2  GNU Guile - GNU's Ubiquitous Intelligent 
> Language for Extension
> [...]0
> 
> But for cmake / pkg_check_modules only the packages from 
> gcdev64/msys2/mingw32/lib/pkgconfig are visible.
> 
> Strange...

Dunno if it's strange. jhbuildrc should add $PREFIX/lib/pkgconfig/ to 
PKG_CONFIG_PATH. Maybe that's gotten messed up?

Regards,
John Ralls

___
gnucash-devel mailing list
gnucash-devel@gnucash.org
https://lists.gnucash.org/mailman/listinfo/gnucash-devel


Re: [GNC-dev] Windows Build VM

2023-11-11 Thread Manfred Usselmann

Am 2023-11-11 18:46, schrieb john:
On Nov 11, 2023, at 04:18, Manfred Usselmann  
wrote:


# Next issue:
# 
---

*** Checking out gnucash-git *** [12/14]

[...]

CMake Error at CMakeLists.txt:345 (message):
 Neither guile 3.0, guile 2.2, nor guile 2.0 were found GnuCash can't 
run
 without one of them.  Ensure that one is installed and can be found 
with

 pkg-config.


-- Configuring incomplete, errors occurred!
*** Error during phase configure of gnucash-git: ## Error 
running cmake 
-DCMAKE_INSTALL_PREFIX=/C/users/mu/Entwicklung/GnuCash/gcdev64/gnucash/stable/inst 
-DCMAKE_INSTALL_LIBDIR=lib -G Ninja -DCMAKE_PREFIX_PATH=$MSYS2ROOT 
-DPERL_EXECUTABLE=/usr/bin/perl -DGNC_DBD_DIR=$PREFIX/lib/dbd 
-DGTEST_ROOT=$SRCROOT/googletest/ -DCMAKE_BUILD_TYPE=Debug  
/C/users/mu/Entwicklung/GnuCash/gcdev64/gnucash/stable/src/gnucash-git 
*** [12/14]
# 
---


Not sure what this one is. I believe there was already a long running 
build of guile2.


*** Checking out guile2 *** [10/14]
*** Skipping guile2 (package and dependencies not updated) *** [10/14]

Any hint for me?


You probably need at least mingw-w64-i686-webkitgtk3-2.4.11-999.5-any. 
WebKit is a long-running sore point. MSYS2 periodically updates one of 
the webkit dependencies and I have to build another one, a process that 
can take several days. Another wrinkle is that Derek's windows VM and 
my windows VM sometimes diverge. Getting them back is another manual 
process that I have to make time to do carefully so as not to break the 
nightly builds; keeping those working is the top priority for 
gnucash-on-windows.


Completely understandable.

With a new installation you're likely out of sync with both of those 
reference MSYS2 installations. Having a mismatch will cause link errors 
with libgnc-html.dll.


We'll see...




For guile, make sure that $PREFIX/lib/pkgconfig/guile-2.2.pc exists; if 
it does make sure that PKG_CONFIG_PATH contains $PREFIX/lib/pkgconfig.


It does.

$ pkg-config --list-all
aqbanking  AqBanking - A library for online banking 
functions and financial data import/export
atomic_ops The atomic_ops library - Atomic memory 
update operations portable implementation
bdw-gc Boehm-Demers-Weiser Conservative Garbage 
Collector - A garbage collector for C and C++
guile-2.2  GNU Guile - GNU's Ubiquitous Intelligent 
Language for Extension

[...]0

But for cmake / pkg_check_modules only the packages from 
gcdev64/msys2/mingw32/lib/pkgconfig are visible.


Strange...

Regards,
Manfred
___
gnucash-devel mailing list
gnucash-devel@gnucash.org
https://lists.gnucash.org/mailman/listinfo/gnucash-devel


Re: [GNC-dev] Windows Build VM

2023-11-11 Thread Sherlock
On Nov 11, 2023, at 12:46, John  wrote:
> 
>> 
>> On Nov 11, 2023, at 04:18, Manfred Usselmann  wrote:
>> 
>> Am 2023-11-10 10:26, schrieb Manfred Usselmann:
>>> Am 2023-11-10 08:40, schrieb Manfred Usselmann:
 I have opened a ticket since this looks like a jhbuild issue for me:
 https://gitlab.gnome.org/GNOME/jhbuild/-/issues/290
>>> It's just a simple typo, see 
>>> https://gitlab.gnome.org/GNOME/jhbuild/-/merge_requests/137
>> 
>> Still not finished with the build, fixing one issue after the other.
>> 
>> -- Package 'webkitgtk-3.0', required by 'virtual:world', not found
>> 
>> Reason: The provided webkitgtk3 package does not get installed:
>> 
>> # First run of setup-wingw64.ps1:
>> # 
>> ---
>> :: Retrieving packages...
>> mingw-w64-i686-webkitgtk3-2.4.11-999.4-any 8.1 MiB 475 KiB/s 00:17 
>> [###] 100%
>> error: failed retrieving file 
>> 'mingw-w64-i686-webkitgtk3-2.4.11-999.4-any.pkg.tar.zst.sig' from 
>> master.dl.sourceforge.net : Maximum file size exceeded
>> warning: failed to retrieve some files
>> # 
>> ---
>> 
>> # Second run:
>> # 
>> ---
>> loading packages...
>> error: 
>> '/var/cache/pacman/pkg/mingw-w64-i686-webkitgtk3-2.4.11-999.4-any.pkg.tar.zst':
>>  package missing required signature
>> # 
>> ---
>> 
>> I fixed this by manually downloading 
>> mingw-w64-i686-webkitgtk3-2.4.11-999.4-any.pkg.tar.zst.
>> 
>> I noticed there is also a -999.5 package. Should that be used instead of the 
>> -999.4 one?
>> 
>> # Next issue:
>> # 
>> ---
>> *** Checking out gnucash-git *** [12/14]
>> 
>> [...]
>> 
>> CMake Error at CMakeLists.txt:345 (message):
>> Neither guile 3.0, guile 2.2, nor guile 2.0 were found GnuCash can't run
>> without one of them. Ensure that one is installed and can be found with
>> pkg-config.
>> 
>> 
>> -- Configuring incomplete, errors occurred!
>> *** Error during phase configure of gnucash-git: ## Error running 
>> cmake 
>> -DCMAKE_INSTALL_PREFIX=/C/users/mu/Entwicklung/GnuCash/gcdev64/gnucash/stable/inst
>>  -DCMAKE_INSTALL_LIBDIR=lib -G Ninja -DCMAKE_PREFIX_PATH=$MSYS2ROOT 
>> -DPERL_EXECUTABLE=/usr/bin/perl -DGNC_DBD_DIR=$PREFIX/lib/dbd 
>> -DGTEST_ROOT=$SRCROOT/googletest/ -DCMAKE_BUILD_TYPE=Debug 
>> /C/users/mu/Entwicklung/GnuCash/gcdev64/gnucash/stable/src/gnucash-git *** 
>> [12/14]
>> # 
>> ---
>> 
>> Not sure what this one is. I believe there was already a long running build 
>> of guile2.
>> 
>> *** Checking out guile2 *** [10/14]
>> *** Skipping guile2 (package and dependencies not updated) *** [10/14]
>> 
>> Any hint for me?
> 
> You probably need at least mingw-w64-i686-webkitgtk3-2.4.11-999.5-any. WebKit 
> is a long-running sore point. MSYS2 periodically updates one of the webkit 
> dependencies and I have to build another one, a process that can take several 
> days. Another wrinkle is that Derek's windows VM and my windows VM sometimes 
> diverge. Getting them back is another manual process that I have to make time 
> to do carefully so as not to break the nightly builds; keeping those working 
> is the top priority for gnucash-on-windows. With a new installation you're 
> likely out of sync with both of those reference MSYS2 installations. Having a 
> mismatch will cause link errors with libgnc-html.dll.
> 
> For guile, make sure that $PREFIX/lib/pkgconfig/guile-2.2.pc exists; if it 
> does make sure that PKG_CONFIG_PATH contains $PREFIX/lib/pkgconfig.
> 
> Regards,
> John Ralls


For what it may be worth, I have been successful building and packaging GnuCash 
5.4 on Windows 10 with mingw-w64-i686-webkitgtk3-2.4.11-999.5-any in a recent 
(2023-07-18) MSYS2 MINGW32 environment. 

1. Missing gcrypt

pacman -S mingw-w64-i686-libgcrypt --noconfirm --needed


2. Missing xmlsec1

pacman -S mingw-w64-i686-xmlsec --noconfirm --needed


3. Install the latest mingw-w64-i686-webkitgtk3 and the versions of it's 
dependencies:

cd /c/gcdev64/msys2/var/cache/pacman/pkg/
wget 
https://downloads.sourceforge.net/gnucash/Dependencies/jralls_public_signing_key.asc
pacman-key --add jralls_public_signing_key.asc
pacman-key --lsign C1F4DE993CF5835F
wget 
https://sourceforge.net/projects/gnucash/files/Dependencies/mingw-w64-i686-webkitgtk3-2.4.11-999.5-any.pkg.tar.zst
wget 
https://sourceforge.net/projects/gnucash/files/Dependencies/mingw-w64-i686-webkitgtk3-2.4.11-999.5-any.pkg.tar.zst.sig
pacman -U 
https://sourceforge.net/projects/gnucash/files/Dependencies/mingw-w64-i686-webkitgtk3-2.4.11-999.5-any.pkg.tar.zst
 --noconfirm --needed
wget 

Re: [GNC-dev] Windows Build VM

2023-11-11 Thread john



> On Nov 11, 2023, at 04:18, Manfred Usselmann  wrote:
> 
> Am 2023-11-10 10:26, schrieb Manfred Usselmann:
>> Am 2023-11-10 08:40, schrieb Manfred Usselmann:
>>> I have opened a ticket since this looks like a jhbuild issue for me:
>>> https://gitlab.gnome.org/GNOME/jhbuild/-/issues/290
>> It's just a simple typo, see 
>> https://gitlab.gnome.org/GNOME/jhbuild/-/merge_requests/137
> 
> Still not finished with the build, fixing one issue after the other.
> 
> --   Package 'webkitgtk-3.0', required by 'virtual:world', not found
> 
> Reason: The provided webkitgtk3 package does not get installed:
> 
> # First run of setup-wingw64.ps1:
> # 
> ---
> :: Retrieving packages...
> mingw-w64-i686-webkitgtk3-2.4.11-999.4-any8.1 MiB   475 KiB/s 00:17 
> [###] 100%
> error: failed retrieving file 
> 'mingw-w64-i686-webkitgtk3-2.4.11-999.4-any.pkg.tar.zst.sig' from 
> master.dl.sourceforge.net : Maximum file size exceeded
> warning: failed to retrieve some files
> # 
> ---
> 
> # Second run:
> # 
> ---
> loading packages...
> error: 
> '/var/cache/pacman/pkg/mingw-w64-i686-webkitgtk3-2.4.11-999.4-any.pkg.tar.zst':
>  package missing required signature
> # 
> ---
> 
> I fixed this by manually downloading 
> mingw-w64-i686-webkitgtk3-2.4.11-999.4-any.pkg.tar.zst.
> 
> I noticed there is also a -999.5 package. Should that be used instead of the 
> -999.4 one?
> 
> # Next issue:
> # 
> ---
> *** Checking out gnucash-git *** [12/14]
> 
> [...]
> 
> CMake Error at CMakeLists.txt:345 (message):
>  Neither guile 3.0, guile 2.2, nor guile 2.0 were found GnuCash can't run
>  without one of them.  Ensure that one is installed and can be found with
>  pkg-config.
> 
> 
> -- Configuring incomplete, errors occurred!
> *** Error during phase configure of gnucash-git: ## Error running 
> cmake 
> -DCMAKE_INSTALL_PREFIX=/C/users/mu/Entwicklung/GnuCash/gcdev64/gnucash/stable/inst
>  -DCMAKE_INSTALL_LIBDIR=lib -G Ninja -DCMAKE_PREFIX_PATH=$MSYS2ROOT 
> -DPERL_EXECUTABLE=/usr/bin/perl -DGNC_DBD_DIR=$PREFIX/lib/dbd 
> -DGTEST_ROOT=$SRCROOT/googletest/ -DCMAKE_BUILD_TYPE=Debug  
> /C/users/mu/Entwicklung/GnuCash/gcdev64/gnucash/stable/src/gnucash-git *** 
> [12/14]
> # 
> ---
> 
> Not sure what this one is. I believe there was already a long running build 
> of guile2.
> 
> *** Checking out guile2 *** [10/14]
> *** Skipping guile2 (package and dependencies not updated) *** [10/14]
> 
> Any hint for me?

You probably need at least mingw-w64-i686-webkitgtk3-2.4.11-999.5-any. WebKit 
is a long-running sore point. MSYS2 periodically updates one of the webkit 
dependencies and I have to build another one, a process that can take several 
days. Another wrinkle is that Derek's windows VM and my windows VM sometimes 
diverge. Getting them back is another manual process that I have to make time 
to do carefully so as not to break the nightly builds; keeping those working is 
the top priority for gnucash-on-windows. With a new installation you're likely 
out of sync with both of those reference MSYS2 installations. Having a mismatch 
will cause link errors with libgnc-html.dll.

For guile, make sure that $PREFIX/lib/pkgconfig/guile-2.2.pc exists; if it does 
make sure that PKG_CONFIG_PATH contains $PREFIX/lib/pkgconfig.

Regards,
John Ralls



___
gnucash-devel mailing list
gnucash-devel@gnucash.org
https://lists.gnucash.org/mailman/listinfo/gnucash-devel


Re: [GNC-dev] Windows Build VM

2023-11-11 Thread Manfred Usselmann

Am 2023-11-10 10:26, schrieb Manfred Usselmann:

Am 2023-11-10 08:40, schrieb Manfred Usselmann:


I have opened a ticket since this looks like a jhbuild issue for me:

https://gitlab.gnome.org/GNOME/jhbuild/-/issues/290



It's just a simple typo, see 
https://gitlab.gnome.org/GNOME/jhbuild/-/merge_requests/137




Still not finished with the build, fixing one issue after the other.

--   Package 'webkitgtk-3.0', required by 'virtual:world', not found

Reason: The provided webkitgtk3 package does not get installed:

# First run of setup-wingw64.ps1:
# 
---

:: Retrieving packages...
 mingw-w64-i686-webkitgtk3-2.4.11-999.4-any8.1 MiB   475 KiB/s 00:17 
[###] 100%
error: failed retrieving file 
'mingw-w64-i686-webkitgtk3-2.4.11-999.4-any.pkg.tar.zst.sig' from 
master.dl.sourceforge.net : Maximum file size exceeded

warning: failed to retrieve some files
# 
---


# Second run:
# 
---

loading packages...
error: 
'/var/cache/pacman/pkg/mingw-w64-i686-webkitgtk3-2.4.11-999.4-any.pkg.tar.zst': 
package missing required signature
# 
---


I fixed this by manually downloading 
mingw-w64-i686-webkitgtk3-2.4.11-999.4-any.pkg.tar.zst.


I noticed there is also a -999.5 package. Should that be used instead of 
the -999.4 one?


# Next issue:
# 
---

*** Checking out gnucash-git *** [12/14]

[...]

CMake Error at CMakeLists.txt:345 (message):
  Neither guile 3.0, guile 2.2, nor guile 2.0 were found GnuCash can't 
run
  without one of them.  Ensure that one is installed and can be found 
with

  pkg-config.


-- Configuring incomplete, errors occurred!
*** Error during phase configure of gnucash-git: ## Error 
running cmake 
-DCMAKE_INSTALL_PREFIX=/C/users/mu/Entwicklung/GnuCash/gcdev64/gnucash/stable/inst 
-DCMAKE_INSTALL_LIBDIR=lib -G Ninja -DCMAKE_PREFIX_PATH=$MSYS2ROOT 
-DPERL_EXECUTABLE=/usr/bin/perl -DGNC_DBD_DIR=$PREFIX/lib/dbd 
-DGTEST_ROOT=$SRCROOT/googletest/ -DCMAKE_BUILD_TYPE=Debug  
/C/users/mu/Entwicklung/GnuCash/gcdev64/gnucash/stable/src/gnucash-git 
*** [12/14]
# 
---


Not sure what this one is. I believe there was already a long running 
build of guile2.


*** Checking out guile2 *** [10/14]
*** Skipping guile2 (package and dependencies not updated) *** [10/14]

Any hint for me?

Regards,
Manfred












___
gnucash-devel mailing list
gnucash-devel@gnucash.org
https://lists.gnucash.org/mailman/listinfo/gnucash-devel


Re: [GNC-dev] Windows Build VM

2023-11-10 Thread Manfred Usselmann

Am 2023-11-10 08:40, schrieb Manfred Usselmann:

Am 2023-11-10 01:21, schrieb Manfred Usselmann:

Am 2023-11-09 22:46, schrieb John Ralls:


Then do a mingw32 build like the distribution. We know that works.


Ok, this looks better but ends with

I: Deleting .la file: 
'/C/users/mu/Entwicklung/GnuCash/gcdev64/gnucash/stable/inst/_jhbuild/root-libofx/C/users/mu/Entwicklung/GnuCash/gcdev64/gnucash/stable/inst/lib/libofx.la'
I: Moving temporary DESTDIR 
'/C/users/mu/Entwicklung/GnuCash/gcdev64/gnucash/stable/inst/_jhbuild/root-libofx' 
into build prefix

Traceback (most recent call last):
  File "/usr/bin/jhbuild", line 23, in 
jhbuild.main.main(sys.argv[1:])
  File 
"/C/users/mu/Entwicklung/GnuCash/gcdev64/src/jhbuild.git/jhbuild/main.py", 
line 118, in main
rc = jhbuild.commands.run(command, config, args, help=lambda: 
print_help(parser))
 

  File 
"/C/users/mu/Entwicklung/GnuCash/gcdev64/src/jhbuild.git/jhbuild/commands/__init__.py", 
line 186, in run

return cmd.execute(config, args, help)
   ^^^
  File 
"/C/users/mu/Entwicklung/GnuCash/gcdev64/src/jhbuild.git/jhbuild/commands/__init__.py", 
line 53, in execute

return self.run(config, options, args, help)
   ^
  File 
"/C/users/mu/Entwicklung/GnuCash/gcdev64/src/jhbuild.git/jhbuild/commands/base.py", 
line 263, in run

return build.build()
   ^
  File 
"/C/users/mu/Entwicklung/GnuCash/gcdev64/src/jhbuild.git/jhbuild/frontends/buildscript.py", 
line 171, in build

error, altphases = module.run_phase(self, phase)
   ^
  File 
"/C/users/mu/Entwicklung/GnuCash/gcdev64/src/jhbuild.git/jhbuild/modtypes/__init__.py", 
line 422, in run_phase

method(buildscript)
  File 
"/C/users/mu/Entwicklung/GnuCash/gcdev64/src/jhbuild.git/jhbuild/modtypes/autotools.py", 
line 320, in do_install

self.process_install(buildscript, self.get_revision())
  File 
"/C/users/mu/Entwicklung/GnuCash/gcdev64/src/jhbuild.git/jhbuild/modtypes/__init__.py", 
line 389, in process_install

buildscript.moduleset.packagedb.add(self.name, revision or '',
  File 
"/C/users/mu/Entwicklung/GnuCash/gcdev64/src/jhbuild.git/jhbuild/utils/packagedb.py", 
line 176, in add

pkg.write()
  File 
"/C/users/mu/Entwicklung/GnuCash/gcdev64/src/jhbuild.git/jhbuild/utils/packagedb.py", 
line 79, in write
writer.fp.write('\n'.join(self.manifest).encode('utf-8', 
'backslashreplace') + b'\n')


TypeError: can only join an iterable




I have opened a ticket since this looks like a jhbuild issue for me:

https://gitlab.gnome.org/GNOME/jhbuild/-/issues/290



It's just a simple typo, see 
https://gitlab.gnome.org/GNOME/jhbuild/-/merge_requests/137


Regards,
Manfred
___
gnucash-devel mailing list
gnucash-devel@gnucash.org
https://lists.gnucash.org/mailman/listinfo/gnucash-devel


Re: [GNC-dev] Windows Build VM

2023-11-09 Thread Manfred Usselmann

Am 2023-11-10 01:21, schrieb Manfred Usselmann:

Am 2023-11-09 22:46, schrieb John Ralls:


Then do a mingw32 build like the distribution. We know that works.


Ok, this looks better but ends with

I: Deleting .la file: 
'/C/users/mu/Entwicklung/GnuCash/gcdev64/gnucash/stable/inst/_jhbuild/root-libofx/C/users/mu/Entwicklung/GnuCash/gcdev64/gnucash/stable/inst/lib/libofx.la'
I: Moving temporary DESTDIR 
'/C/users/mu/Entwicklung/GnuCash/gcdev64/gnucash/stable/inst/_jhbuild/root-libofx' 
into build prefix

Traceback (most recent call last):
  File "/usr/bin/jhbuild", line 23, in 
jhbuild.main.main(sys.argv[1:])
  File 
"/C/users/mu/Entwicklung/GnuCash/gcdev64/src/jhbuild.git/jhbuild/main.py", 
line 118, in main
rc = jhbuild.commands.run(command, config, args, help=lambda: 
print_help(parser))
 

  File 
"/C/users/mu/Entwicklung/GnuCash/gcdev64/src/jhbuild.git/jhbuild/commands/__init__.py", 
line 186, in run

return cmd.execute(config, args, help)
   ^^^
  File 
"/C/users/mu/Entwicklung/GnuCash/gcdev64/src/jhbuild.git/jhbuild/commands/__init__.py", 
line 53, in execute

return self.run(config, options, args, help)
   ^
  File 
"/C/users/mu/Entwicklung/GnuCash/gcdev64/src/jhbuild.git/jhbuild/commands/base.py", 
line 263, in run

return build.build()
   ^
  File 
"/C/users/mu/Entwicklung/GnuCash/gcdev64/src/jhbuild.git/jhbuild/frontends/buildscript.py", 
line 171, in build

error, altphases = module.run_phase(self, phase)
   ^
  File 
"/C/users/mu/Entwicklung/GnuCash/gcdev64/src/jhbuild.git/jhbuild/modtypes/__init__.py", 
line 422, in run_phase

method(buildscript)
  File 
"/C/users/mu/Entwicklung/GnuCash/gcdev64/src/jhbuild.git/jhbuild/modtypes/autotools.py", 
line 320, in do_install

self.process_install(buildscript, self.get_revision())
  File 
"/C/users/mu/Entwicklung/GnuCash/gcdev64/src/jhbuild.git/jhbuild/modtypes/__init__.py", 
line 389, in process_install

buildscript.moduleset.packagedb.add(self.name, revision or '',
  File 
"/C/users/mu/Entwicklung/GnuCash/gcdev64/src/jhbuild.git/jhbuild/utils/packagedb.py", 
line 176, in add

pkg.write()
  File 
"/C/users/mu/Entwicklung/GnuCash/gcdev64/src/jhbuild.git/jhbuild/utils/packagedb.py", 
line 79, in write
writer.fp.write('\n'.join(self.manifest).encode('utf-8', 
'backslashreplace') + b'\n')


TypeError: can only join an iterable




I have opened a ticket since this looks like a jhbuild issue for me:

https://gitlab.gnome.org/GNOME/jhbuild/-/issues/290

Regards,
Manfred
___
gnucash-devel mailing list
gnucash-devel@gnucash.org
https://lists.gnucash.org/mailman/listinfo/gnucash-devel


Re: [GNC-dev] Windows Build VM

2023-11-09 Thread Manfred Usselmann

Am 2023-11-09 22:46, schrieb John Ralls:
On Nov 9, 2023, at 1:38 PM, Manfred Usselmann  
wrote:

Am 2023-11-07 04:53, schrieb john:
On Nov 6, 2023, at 16:12, Manfred Usselmann  
wrote:

Am 2023-11-06 19:31, schrieb john:
On Nov 6, 2023, at 05:11, Manfred Usselmann  
wrote:

Am 2023-10-01 17:47, schrieb john:

On Oct 1, 2023, at 06:00, Derek Atkins  wrote:
On Sun, October 1, 2023 12:00 am, flywire wrote:

https://lists.gnucash.org/pipermail/gnucash-user/2023-April/106619.html
John wrote:
we don't have a Windows CI action, the nightly builds are done 
with the
https://github.com/gnucash/GnuCash-on-windows powershell 
scripts on a

Windows VM in Derek's basement.
The nightly builds are those on 
https://code.gnucash.org/builds/win32/stable/, right?
Would it be possible to additonally provide a version there which 
includes the Python bindings?

No, there's no way to make that work with an installed package.
Since there already exists a working build environment, I would 
hope that it's not too much work?
That depends on what you want to use for your Python. If you can use 
the MSYS2 environment from Powershell (some MSYS2 things work 
directly in Powershell, others need a Bash shell) then you can 
simply add -DWITH_PYTHON=ON to the CMakeArgs in jhbuild and build 
it. Don't run the installer, just add 
c:\gcdev64\gnucash\stable\inst\lib\python3.11\site-packages to 
PYTHONPATH and run your scripts.
If the MSYS2 python doesn't work for you then you'll need to fiddle 
with paths and such so that CMake finds the python libraries that 
you want it to. You must make sure that everything Python is linked 
to the same Python installation.


Thanks, this sounds promising.

Results so far:

- I had to set-executionpolicy Unrestricted.

- I had to add libgcrypt to setup-mngw54.ps1

- How do I add -DWITH_PYTHON=ON to jhbuildrc?
 append_autogenargs("gnucash", "-DWITH_PYTHON=ON")  ?


That will work.



Good, thanks.





- configure OpenSP fails:

checking build system type... Invalid configuration 
`x86_64-w64-mingw64': system `mingw64' not recognized
configure: error: /bin/sh 
/C/users/mu/Entwicklung/GnuCash/gcdev64/gnucash/stable/src/OpenSP-1.5.2/config.sub 
x86_64-w64-mingw64 failed
*** Error during phase configure of OpenSP: ## Error running 
/bin/bash -c "pushd 
/C/users/mu/Entwicklung/GnuCash/gcdev64/gnucash/stable/src/OpenSP-1.5.2 
&& ./autoinit.sh && popd && 
/C/users/mu/Entwicklung/GnuCash/gcdev64/gnucash/stable/src/OpenSP-1.5.2/configure 
--prefix /C/users/mu/Entwicklung/GnuCash/gcdev64/gnucash/stable/inst 
 --disable-Werror --disable-static --enable-shared 
--disable-doc-build --disable-nls --build=x86_64-w64-mingw64" *** 
[1/14]


That probably requires regenerating configure, which may or may not 
be as simple as running autoinit.sh.
Autoinit is already called for OpenSP in gnucash.modules. I'm afraid 
this is a bit over my head. :-(


Then do a mingw32 build like the distribution. We know that works.


Ok, this looks better but ends with

I: Deleting .la file: 
'/C/users/mu/Entwicklung/GnuCash/gcdev64/gnucash/stable/inst/_jhbuild/root-libofx/C/users/mu/Entwicklung/GnuCash/gcdev64/gnucash/stable/inst/lib/libofx.la'
I: Moving temporary DESTDIR 
'/C/users/mu/Entwicklung/GnuCash/gcdev64/gnucash/stable/inst/_jhbuild/root-libofx' 
into build prefix

Traceback (most recent call last):
  File "/usr/bin/jhbuild", line 23, in 
jhbuild.main.main(sys.argv[1:])
  File 
"/C/users/mu/Entwicklung/GnuCash/gcdev64/src/jhbuild.git/jhbuild/main.py", 
line 118, in main
rc = jhbuild.commands.run(command, config, args, help=lambda: 
print_help(parser))
 

  File 
"/C/users/mu/Entwicklung/GnuCash/gcdev64/src/jhbuild.git/jhbuild/commands/__init__.py", 
line 186, in run

return cmd.execute(config, args, help)
   ^^^
  File 
"/C/users/mu/Entwicklung/GnuCash/gcdev64/src/jhbuild.git/jhbuild/commands/__init__.py", 
line 53, in execute

return self.run(config, options, args, help)
   ^
  File 
"/C/users/mu/Entwicklung/GnuCash/gcdev64/src/jhbuild.git/jhbuild/commands/base.py", 
line 263, in run

return build.build()
   ^
  File 
"/C/users/mu/Entwicklung/GnuCash/gcdev64/src/jhbuild.git/jhbuild/frontends/buildscript.py", 
line 171, in build

error, altphases = module.run_phase(self, phase)
   ^
  File 
"/C/users/mu/Entwicklung/GnuCash/gcdev64/src/jhbuild.git/jhbuild/modtypes/__init__.py", 
line 422, in run_phase

method(buildscript)
  File 
"/C/users/mu/Entwicklung/GnuCash/gcdev64/src/jhbuild.git/jhbuild/modtypes/autotools.py", 
line 320, in do_install

self.process_install(buildscript, self.get_revision())
  File 
"/C/users/mu/Entwicklung/GnuCash/gcdev64/src/jhbuild.git/jhbuild/modtypes/__init__.py", 
line 389, in process_install


Re: [GNC-dev] Windows Build VM

2023-11-09 Thread John Ralls



> On Nov 9, 2023, at 1:38 PM, Manfred Usselmann  wrote:
> 
> Hi
> 
> Am 2023-11-07 04:53, schrieb john:
> 
>> 
>> 
>>> On Nov 6, 2023, at 16:12, Manfred Usselmann  wrote:
>>> 
>>> Hi John,
>>> 
>>> Am 2023-11-06 19:31, schrieb john:
 On Nov 6, 2023, at 05:11, Manfred Usselmann  wrote:
 Hi,
 Am 2023-10-01 17:47, schrieb john:
>> On Oct 1, 2023, at 06:00, Derek Atkins  wrote:
>> On Sun, October 1, 2023 12:00 am, flywire wrote:
>>> https://lists.gnucash.org/pipermail/gnucash-user/2023-April/106619.html
>>> John wrote:
 we don't have a Windows CI action, the nightly builds are done with the
 https://github.com/gnucash/GnuCash-on-windows powershell scripts on a
 Windows VM in Derek's basement.
 The nightly builds are those on 
 https://code.gnucash.org/builds/win32/stable/, right?
 Would it be possible to additonally provide a version there which includes 
 the Python bindings?
>>> No, there's no way to make that work with an installed package.
 Since there already exists a working build environment, I would hope that 
 it's not too much work?
>>> That depends on what you want to use for your Python. If you can use the 
>>> MSYS2 environment from Powershell (some MSYS2 things work directly in 
>>> Powershell, others need a Bash shell) then you can simply add 
>>> -DWITH_PYTHON=ON to the CMakeArgs in jhbuild and build it. Don't run the 
>>> installer, just add 
>>> c:\gcdev64\gnucash\stable\inst\lib\python3.11\site-packages to PYTHONPATH 
>>> and run your scripts.
>>> If the MSYS2 python doesn't work for you then you'll need to fiddle with 
>>> paths and such so that CMake finds the python libraries that you want it 
>>> to. You must make sure that everything Python is linked to the same Python 
>>> installation.
>>> 
>>> Thanks, this sounds promising.
>>> 
>>> Results so far:
>>> 
>>> - I had to set-executionpolicy Unrestricted.
>>> 
>>> - I had to add libgcrypt to setup-mngw54.ps1
>>> 
>>> - How do I add -DWITH_PYTHON=ON to jhbuildrc?
>>>  append_autogenargs("gnucash", "-DWITH_PYTHON=ON")  ?
>>  
>> That will work.
>>  
>  
> Good, thanks.
>  
>> 
>>> 
>>> - configure OpenSP fails:
>>> 
>>> checking build system type... Invalid configuration `x86_64-w64-mingw64': 
>>> system `mingw64' not recognized
>>> configure: error: /bin/sh 
>>> /C/users/mu/Entwicklung/GnuCash/gcdev64/gnucash/stable/src/OpenSP-1.5.2/config.sub
>>>  x86_64-w64-mingw64 failed
>>> *** Error during phase configure of OpenSP: ## Error running 
>>> /bin/bash -c "pushd 
>>> /C/users/mu/Entwicklung/GnuCash/gcdev64/gnucash/stable/src/OpenSP-1.5.2 && 
>>> ./autoinit.sh && popd && 
>>> /C/users/mu/Entwicklung/GnuCash/gcdev64/gnucash/stable/src/OpenSP-1.5.2/configure
>>>  --prefix /C/users/mu/Entwicklung/GnuCash/gcdev64/gnucash/stable/inst  
>>> --disable-Werror --disable-static --enable-shared --disable-doc-build 
>>> --disable-nls --build=x86_64-w64-mingw64" *** [1/14]
>>  
>> That probably requires regenerating configure, which may or may not be as 
>> simple as running autoinit.sh. 
> Autoinit is already called for OpenSP in gnucash.modules. I'm afraid this is 
> a bit over my head. :-(

Then do a mingw32 build like the distribution. We know that works.

Regards,
John Ralls

___
gnucash-devel mailing list
gnucash-devel@gnucash.org
https://lists.gnucash.org/mailman/listinfo/gnucash-devel


Re: [GNC-dev] Windows Build VM

2023-11-09 Thread Manfred Usselmann




Hi

Am 2023-11-07 04:53, schrieb john:

On Nov 6, 2023, at 16:12, Manfred Usselmann  
wrote:

Hi John,

Am 2023-11-06 19:31, schrieb john:
On Nov 6, 2023, at 05:11, Manfred Usselmann  
wrote:

Hi,
Am 2023-10-01 17:47, schrieb john:
On Oct 1, 2023, at 06:00, Derek Atkins  wrote:
On Sun, October 1, 2023 12:00 am, flywire wrote:
https://lists.gnucash.org/pipermail/gnucash-user/2023-April/106619.html
John wrote:
we don't have a Windows CI action, the nightly builds are done with the
https://github.com/gnucash/GnuCash-on-windows powershell scripts on a
Windows VM in Derek's basement.
 The nightly builds are those on 
https://code.gnucash.org/builds/win32/stable/, right?
Would it be possible to additonally provide a version there which 
includes the Python bindings? No, there's no way to make that work with 
an installed package.


Since there already exists a working build environment, I would hope 
that it's not too much work?
 That depends on what you want to use for your Python. If you can use 
the MSYS2 environment from Powershell (some MSYS2 things work directly 
in Powershell, others need a Bash shell) then you can simply add 
-DWITH_PYTHON=ON to the CMakeArgs in jhbuild and build it. Don't run the 
installer, just add 
c:\gcdev64\gnucash\stable\inst\lib\python3.11\site-packages to 
PYTHONPATH and run your scripts.
If the MSYS2 python doesn't work for you then you'll need to fiddle with 
paths and such so that CMake finds the python libraries that you want it 
to. You must make sure that everything Python is linked to the same 
Python installation.

Thanks, this sounds promising.

Results so far:

- I had to set-executionpolicy Unrestricted.

- I had to add libgcrypt to setup-mngw54.ps1

- How do I add -DWITH_PYTHON=ON to jhbuildrc?
 append_autogenargs("gnucash", "-DWITH_PYTHON=ON")  ?
  That will work.

Good, thanks.


- configure OpenSP fails:

checking build system type... Invalid configuration 
`x86_64-w64-mingw64': system `mingw64' not recognized
configure: error: /bin/sh 
/C/users/mu/Entwicklung/GnuCash/gcdev64/gnucash/stable/src/OpenSP-1.5.2/config.sub 
x86_64-w64-mingw64 failed
*** Error during phase configure of OpenSP: ## Error running 
/bin/bash -c "pushd 
/C/users/mu/Entwicklung/GnuCash/gcdev64/gnucash/stable/src/OpenSP-1.5.2 
&& ./autoinit.sh && popd && 
/C/users/mu/Entwicklung/GnuCash/gcdev64/gnucash/stable/src/OpenSP-1.5.2/configure 
--prefix /C/users/mu/Entwicklung/GnuCash/gcdev64/gnucash/stable/inst  
--disable-Werror --disable-static --enable-shared --disable-doc-build 
--disable-nls --build=x86_64-w64-mingw64" *** [1/14]


That probably requires regenerating configure, which may or may not be 
as simple as running autoinit.sh.


Autoinit is already called for OpenSP in gnucash.modules. I'm afraid 
this is a bit over my head. :-(


Regards,
Manfred
___
gnucash-devel mailing list
gnucash-devel@gnucash.org
https://lists.gnucash.org/mailman/listinfo/gnucash-devel


Re: [GNC-dev] Windows Build VM

2023-11-06 Thread john



> On Nov 6, 2023, at 16:12, Manfred Usselmann  wrote:
> 
> Hi John,
> 
> Am 2023-11-06 19:31, schrieb john:
>>> On Nov 6, 2023, at 05:11, Manfred Usselmann  wrote:
>>> Hi,
>>> Am 2023-10-01 17:47, schrieb john:
> On Oct 1, 2023, at 06:00, Derek Atkins  wrote:
> On Sun, October 1, 2023 12:00 am, flywire wrote:
>> https://lists.gnucash.org/pipermail/gnucash-user/2023-April/106619.html
>> John wrote:
>>> we don't have a Windows CI action, the nightly builds are done with the
>>> https://github.com/gnucash/GnuCash-on-windows powershell scripts on a
>>> Windows VM in Derek's basement.
>>> The nightly builds are those on 
>>> https://code.gnucash.org/builds/win32/stable/, right?
>>> Would it be possible to additonally provide a version there which includes 
>>> the Python bindings?
>> No, there's no way to make that work with an installed package.
>>> Since there already exists a working build environment, I would hope that 
>>> it's not too much work?
>> That depends on what you want to use for your Python. If you can use the 
>> MSYS2 environment from Powershell (some MSYS2 things work directly in 
>> Powershell, others need a Bash shell) then you can simply add 
>> -DWITH_PYTHON=ON to the CMakeArgs in jhbuild and build it. Don't run the 
>> installer, just add 
>> c:\gcdev64\gnucash\stable\inst\lib\python3.11\site-packages to PYTHONPATH 
>> and run your scripts.
>> If the MSYS2 python doesn't work for you then you'll need to fiddle with 
>> paths and such so that CMake finds the python libraries that you want it to. 
>> You must make sure that everything Python is linked to the same Python 
>> installation.
> 
> Thanks, this sounds promising.
> 
> Results so far:
> 
> - I had to set-executionpolicy Unrestricted.
> 
> - I had to add libgcrypt to setup-mngw54.ps1
> 
> - How do I add -DWITH_PYTHON=ON to jhbuildrc?
>  append_autogenargs("gnucash", "-DWITH_PYTHON=ON")  ?

That will work.

> 
> - configure OpenSP fails:
> 
> checking build system type... Invalid configuration `x86_64-w64-mingw64': 
> system `mingw64' not recognized
> configure: error: /bin/sh 
> /C/users/mu/Entwicklung/GnuCash/gcdev64/gnucash/stable/src/OpenSP-1.5.2/config.sub
>  x86_64-w64-mingw64 failed
> *** Error during phase configure of OpenSP: ## Error running 
> /bin/bash -c "pushd 
> /C/users/mu/Entwicklung/GnuCash/gcdev64/gnucash/stable/src/OpenSP-1.5.2 && 
> ./autoinit.sh && popd && 
> /C/users/mu/Entwicklung/GnuCash/gcdev64/gnucash/stable/src/OpenSP-1.5.2/configure
>  --prefix /C/users/mu/Entwicklung/GnuCash/gcdev64/gnucash/stable/inst  
> --disable-Werror --disable-static --enable-shared --disable-doc-build 
> --disable-nls --build=x86_64-w64-mingw64" *** [1/14]


That probably requires regenerating configure, which may or may not be as 
simple as running autoinit.sh. 

Regards,
John Ralls
___
gnucash-devel mailing list
gnucash-devel@gnucash.org
https://lists.gnucash.org/mailman/listinfo/gnucash-devel


Re: [GNC-dev] Windows Build VM

2023-11-06 Thread Manfred Usselmann via gnucash-devel

Hi John,

Am 2023-11-06 19:31, schrieb john:
On Nov 6, 2023, at 05:11, Manfred Usselmann  
wrote:


Hi,

Am 2023-10-01 17:47, schrieb john:

On Oct 1, 2023, at 06:00, Derek Atkins  wrote:
On Sun, October 1, 2023 12:00 am, flywire wrote:

https://lists.gnucash.org/pipermail/gnucash-user/2023-April/106619.html
John wrote:
we don't have a Windows CI action, the nightly builds are done 
with the
https://github.com/gnucash/GnuCash-on-windows powershell scripts 
on a

Windows VM in Derek's basement.


The nightly builds are those on 
https://code.gnucash.org/builds/win32/stable/, right?


Would it be possible to additonally provide a version there which 
includes the Python bindings?


No, there's no way to make that work with an installed package.



Since there already exists a working build environment, I would hope 
that it's not too much work?


That depends on what you want to use for your Python. If you can use 
the MSYS2 environment from Powershell (some MSYS2 things work directly 
in Powershell, others need a Bash shell) then you can simply add 
-DWITH_PYTHON=ON to the CMakeArgs in jhbuild and build it. Don't run 
the installer, just add 
c:\gcdev64\gnucash\stable\inst\lib\python3.11\site-packages to 
PYTHONPATH and run your scripts.


If the MSYS2 python doesn't work for you then you'll need to fiddle 
with paths and such so that CMake finds the python libraries that you 
want it to. You must make sure that everything Python is linked to the 
same Python installation.


Thanks, this sounds promising.

Results so far:

- I had to set-executionpolicy Unrestricted.

- I had to add libgcrypt to setup-mngw54.ps1

- How do I add -DWITH_PYTHON=ON to jhbuildrc?
  append_autogenargs("gnucash", "-DWITH_PYTHON=ON")  ?

- configure OpenSP fails:

checking build system type... Invalid configuration 
`x86_64-w64-mingw64': system `mingw64' not recognized
configure: error: /bin/sh 
/C/users/mu/Entwicklung/GnuCash/gcdev64/gnucash/stable/src/OpenSP-1.5.2/config.sub 
x86_64-w64-mingw64 failed
*** Error during phase configure of OpenSP: ## Error running 
/bin/bash -c "pushd 
/C/users/mu/Entwicklung/GnuCash/gcdev64/gnucash/stable/src/OpenSP-1.5.2 
&& ./autoinit.sh && popd && 
/C/users/mu/Entwicklung/GnuCash/gcdev64/gnucash/stable/src/OpenSP-1.5.2/configure 
--prefix /C/users/mu/Entwicklung/GnuCash/gcdev64/gnucash/stable/inst  
--disable-Werror --disable-static --enable-shared --disable-doc-build 
--disable-nls --build=x86_64-w64-mingw64" *** [1/14]


Regards,
Manfred


___
gnucash-devel mailing list
gnucash-devel@gnucash.org
https://lists.gnucash.org/mailman/listinfo/gnucash-devel


Re: [GNC-dev] Windows Build VM

2023-11-06 Thread john



> On Nov 6, 2023, at 05:11, Manfred Usselmann  wrote:
> 
> Hi,
> 
> Am 2023-10-01 17:47, schrieb john:
>>> On Oct 1, 2023, at 06:00, Derek Atkins  wrote:
>>> On Sun, October 1, 2023 12:00 am, flywire wrote:
 https://lists.gnucash.org/pipermail/gnucash-user/2023-April/106619.html
 John wrote:
> we don't have a Windows CI action, the nightly builds are done with the
> https://github.com/gnucash/GnuCash-on-windows powershell scripts on a
> Windows VM in Derek's basement.
> 
> The nightly builds are those on 
> https://code.gnucash.org/builds/win32/stable/, right?
> 
> Would it be possible to additonally provide a version there which includes 
> the Python bindings?

No, there's no way to make that work with an installed package.

> 
> Since there already exists a working build environment, I would hope that 
> it's not too much work?

That depends on what you want to use for your Python. If you can use the MSYS2 
environment from Powershell (some MSYS2 things work directly in Powershell, 
others need a Bash shell) then you can simply add -DWITH_PYTHON=ON to the 
CMakeArgs in jhbuild and build it. Don't run the installer, just add 
c:\gcdev64\gnucash\stable\inst\lib\python3.11\site-packages to PYTHONPATH and 
run your scripts.

If the MSYS2 python doesn't work for you then you'll need to fiddle with paths 
and such so that CMake finds the python libraries that you want it to. You must 
make sure that everything Python is linked to the same Python installation.

Regards,
John Ralls

___
gnucash-devel mailing list
gnucash-devel@gnucash.org
https://lists.gnucash.org/mailman/listinfo/gnucash-devel


Re: [GNC-dev] Windows Build VM

2023-11-06 Thread Manfred Usselmann via gnucash-devel

Hi,

Am 2023-10-01 17:47, schrieb john:

On Oct 1, 2023, at 06:00, Derek Atkins  wrote:

On Sun, October 1, 2023 12:00 am, flywire wrote:

https://lists.gnucash.org/pipermail/gnucash-user/2023-April/106619.html
John wrote:

we don't have a Windows CI action, the nightly builds are done with 
the
https://github.com/gnucash/GnuCash-on-windows powershell scripts on 
a

Windows VM in Derek's basement.




The nightly builds are those on 
https://code.gnucash.org/builds/win32/stable/, right?


Would it be possible to additonally provide a version there which 
includes the Python bindings?


Since there already exists a working build environment, I would hope 
that it's not too much work?


Regards,
Manfred

___
gnucash-devel mailing list
gnucash-devel@gnucash.org
https://lists.gnucash.org/mailman/listinfo/gnucash-devel


Re: [GNC-dev] Windows Build VM

2023-11-05 Thread flywire
That would be
https://lists.gnucash.org/pipermail/gnucash-devel/2020-May/045079.html  . I
put too much time into it and sought help a number of times (posts are in
dev over a long period) but nothing useful eventuated.

iirc I'm fairly sure I didn't get the first step configured for powershell.
I was working in much the same environment with other projects at the time,
with the exception of powershell, but I'm out of touch with the build
environment now. I intend to give it another go when I have a heap of spare
time.

A GitHub action would be handy to build it for Windows as required.

Regards

On Mon, 6 Nov 2023 at 12:53, Manfred Usselmann  wrote:

> Did you by any chance try this? I would also be interested to run the
> Python bindings under windows.
>
___
gnucash-devel mailing list
gnucash-devel@gnucash.org
https://lists.gnucash.org/mailman/listinfo/gnucash-devel


Re: [GNC-dev] Windows Build VM

2023-11-05 Thread Manfred Usselmann via gnucash-devel

Hi flywire,

Am 2023-10-01 17:47, schrieb john:

On Oct 1, 2023, at 06:00, Derek Atkins  wrote:

Hi,

On Sun, October 1, 2023 12:00 am, flywire wrote:

https://lists.gnucash.org/pipermail/gnucash-user/2023-April/106619.html
John wrote:

we don't have a Windows CI action, the nightly builds are done with 
the
https://github.com/gnucash/GnuCash-on-windows powershell scripts on 
a

Windows VM in Derek's basement.



Derek, Can you make that VM available so I can run it? I'd really 
like to

run Python bindings under Windows.


I'm not sure what you mean by "make that VM available".  It's just a 
Win10
VM with the GnuCash build tools installed.  This particular VM has 
access

keys on it that make it difficult to just send you the disk image, if
that's what you're asking.


You can set up the necessary environment yourself, see 
https://github.com/gnucash/gnucash-on-windows/. I'm not sure that the 
part of setup-mingw64.ps1 that fills in the installer data still works, 
but you can do that part yourself and then run setup-mingw64.ps1 to do 
the updating and install the dependencies. Beware, though, that the 
MSYS2 installer now installs the UCRT64 environment (see 
https://www.msys2.org/docs/environments/). I tested that last week and 
jhbuild doesn't like it one bit, so you' may need to also set up the 
MINGW64 (or MINGW32 if you have the 32-bit version of Windows) 
environment if setup-mingw64.psi fails.




Did you by any chance try this? I would also be interested to run the 
Python bindings under windows.


Regards,
Manfred
___
gnucash-devel mailing list
gnucash-devel@gnucash.org
https://lists.gnucash.org/mailman/listinfo/gnucash-devel


Re: [GNC-dev] Windows Build VM

2023-10-01 Thread john



> On Oct 1, 2023, at 06:00, Derek Atkins  wrote:
> 
> Hi,
> 
> On Sun, October 1, 2023 12:00 am, flywire wrote:
>> https://lists.gnucash.org/pipermail/gnucash-user/2023-April/106619.html
>> John wrote:
>> 
>>> we don't have a Windows CI action, the nightly builds are done with the
>>> https://github.com/gnucash/GnuCash-on-windows powershell scripts on a
>>> Windows VM in Derek's basement.
>> 
>> 
>> Derek, Can you make that VM available so I can run it? I'd really like to
>> run Python bindings under Windows.
> 
> I'm not sure what you mean by "make that VM available".  It's just a Win10
> VM with the GnuCash build tools installed.  This particular VM has access
> keys on it that make it difficult to just send you the disk image, if
> that's what you're asking.

You can set up the necessary environment yourself, see 
https://github.com/gnucash/gnucash-on-windows/. I'm not sure that the part of 
setup-mingw64.ps1 that fills in the installer data still works, but you can do 
that part yourself and then run setup-mingw64.ps1 to do the updating and 
install the dependencies. Beware, though, that the MSYS2 installer now installs 
the UCRT64 environment (see https://www.msys2.org/docs/environments/). I tested 
that last week and jhbuild doesn't like it one bit, so you' may need to also 
set up the MINGW64 (or MINGW32 if you have the 32-bit version of Windows) 
environment if setup-mingw64.psi fails. 

Regards,
John Ralls

___
gnucash-devel mailing list
gnucash-devel@gnucash.org
https://lists.gnucash.org/mailman/listinfo/gnucash-devel


Re: [GNC-dev] Windows Build VM

2023-10-01 Thread Derek Atkins
Hi,

On Sun, October 1, 2023 12:00 am, flywire wrote:
> https://lists.gnucash.org/pipermail/gnucash-user/2023-April/106619.html
> John wrote:
>
>> we don't have a Windows CI action, the nightly builds are done with the
>> https://github.com/gnucash/GnuCash-on-windows powershell scripts on a
>> Windows VM in Derek's basement.
>
>
> Derek, Can you make that VM available so I can run it? I'd really like to
> run Python bindings under Windows.

I'm not sure what you mean by "make that VM available".  It's just a Win10
VM with the GnuCash build tools installed.  This particular VM has access
keys on it that make it difficult to just send you the disk image, if
that's what you're asking.

-derek

-- 
   Derek Atkins 617-623-3745
   de...@ihtfp.com www.ihtfp.com
   Computer and Internet Security Consultant

___
gnucash-devel mailing list
gnucash-devel@gnucash.org
https://lists.gnucash.org/mailman/listinfo/gnucash-devel


[GNC-dev] Windows Build VM

2023-09-30 Thread flywire
https://lists.gnucash.org/pipermail/gnucash-user/2023-April/106619.html
John wrote:

> we don't have a Windows CI action, the nightly builds are done with the
> https://github.com/gnucash/GnuCash-on-windows powershell scripts on a
> Windows VM in Derek's basement.


Derek, Can you make that VM available so I can run it? I'd really like to
run Python bindings under Windows.
___
gnucash-devel mailing list
gnucash-devel@gnucash.org
https://lists.gnucash.org/mailman/listinfo/gnucash-devel