Thanks Bob, this was very helpful.

I encountered all of the same issues that you described during my setup as well.

The "maximum file size exceeded" for the sig file, the frozen "Updating trust 
database...", etc.

Running "pacman -S python-setuptools" fixed the distutils error for me.

Also as you described, I ran into the missing libmariadbclient and postresql 
packages during the initial setup.
And now it complains of missing gcrypt and boost on jhbuild.

In your post you mentioned copying packages and sig files from your backup 
because they are no longer available for Msys2.
I suppose now I need to try and source these from somewhere.

Thanks,
Kevin



________________________________
From: Robert Fewell <14ubo...@gmail.com>
Sent: Thursday, November 7, 2024 3:17 PM
To: Kevin Sanders <kbsand...@hotmail.com>
Cc: GnuCash Development <gnucash-devel@gnucash.org>
Subject: Re: GnuCash Windows Build Help

Kevin,

You may find my earlier post of use in building on windows, hopefully I will 
get round to creating a PR to update procedure, see link below...
https://lists.gnucash.org/pipermail/gnucash-devel/2024-September/046961.html

Regards,
Bob


On Thu, 7 Nov 2024 at 19:00, Kevin Sanders 
<kbsand...@hotmail.com<mailto:kbsand...@hotmail.com>> wrote:
Thanks John, I have joined the mailing list as suggested.

I installed the recommended distutils extra package and it completed 
successfully but the error remains.

Do you know what controls the version of python MinGW32 is using? Latest stable 
or something like that?
The word "python" appears only once in the PowerShell setup script and is sans 
version.

Perhaps this could be a PATH or environment issue where installed modules 
cannot be resolved?

Console Output:

Kevin@Kevin-PC MINGW32 /c/gcdev64/src/gnucash-on-windows.git
$ pacman -S mingw-w64-i686-python-distutils-extra
resolving dependencies...
looking for conflicting packages...

Packages (1) mingw-w64-i686-python-distutils-extra-2.39-4

Total Download Size:   0.04 MiB
Total Installed Size:  0.11 MiB

:: Proceed with installation? [Y/n] y
:: Retrieving packages...
 mingw-w64-i686-python-dist...    36.5 KiB  39.1 KiB/s 00:01 
[###############################] 100%
(1/1) checking keys in keyring                               
[###############################] 100%
(1/1) checking package integrity                             
[###############################] 100%
(1/1) loading package files                                  
[###############################] 100%
(1/1) checking for file conflicts                            
[###############################] 100%
(1/1) checking available disk space                          
[###############################] 100%
:: Processing package changes...
(1/1) installing mingw-w64-i686-python-distutils-extra       
[###############################] 100%

Kevin@Kevin-PC MINGW32 /c/gcdev64/src/gnucash-on-windows.git
$ TARGET=gnucash-stable jhbuild -f jhbuildrc build
Traceback (most recent call last):
  File "/usr/bin/jhbuild", line 22, in <module>
    import jhbuild.main
  File "/c/gcdev64/src/jhbuild.git/jhbuild/main.py", line 26, in <module>
    import jhbuild.config
  File "/c/gcdev64/src/jhbuild.git/jhbuild/config.py", line 31, in <module>
    from jhbuild.environment import setup_env, setup_env_defaults, addpath
  File "/c/gcdev64/src/jhbuild.git/jhbuild/environment.py", line 24, in <module>
    from distutils.sysconfig import get_python_lib
ModuleNotFoundError: No module named 'distutils'

________________________________
From: John Ralls <jra...@ceridwen.us<mailto:jra...@ceridwen.us>>
Sent: Thursday, November 7, 2024 12:24 PM
To: Kevin Sanders <kbsand...@hotmail.com<mailto:kbsand...@hotmail.com>>
Cc: GnuCash Development 
<gnucash-devel@gnucash.org<mailto:gnucash-devel@gnucash.org>>
Subject: Re: GnuCash Windows Build Help

Kevin,

Welcome to GnuCash. Please don’t contact the developers directly; always use 
one of the mailing lists (https://wiki.gnucash.org/wiki/Mailing_Lists). You can 
pick whether user or devel is appropriate for a particular conversation, the 
developers monitor both. For this conversation I’ve picked devel and cc’d it 
for your convenience. You’ll need to subscribe to it to reply.

That sounds like a Mingw64 problem, as Python officially didn’t remove 
distutils until 3.12.  OTOH distutils has been deprecated for years and the 
jhbuild maintainers have been ignoring the problem. They still are: 
https://gitlab.gnome.org/GNOME/jhbuild/-/issues/291. Anyway, it looks like 
Mingw64 has provided a workaround called ming-w64-python-distutils-extra 
(https://github.com/msys2/MINGW-packages/tree/master/mingw-w64-python-distutils-extra).
 You can install it from a Mingw32 terminal window by saying

  pacman -S mingw-w64-i686-python-distutils-extra

Regards,
John Ralls


On Nov 7, 2024, at 08:47, Kevin Sanders 
<kbsand...@hotmail.com<mailto:kbsand...@hotmail.com>> wrote:

Hi John, my name is Kevin Sanders.

I'm a new user of GnuCash and I'm trying to get setup to do some development 
work with GnuCash on Windows.

I'm sorry to bother you but I've run into an issue that I'm not sure how to 
resolve.

I have ran the setup-mingw.ps1 PowerShell script.
I have launched a MSYS2 MingGW 32-bit terminal window and cd into the 
repository directory.
I run jhbuild and it fails with ModuleNotFoundError: No module named 
'distutils'.

I believe this to be a python issue, but I'm not really sure.
Python version is showing as 3.11.10.

Any help would be greatly appreciated.

-Kevin

Console Output:

Kevin@Kevin-PC MINGW32 /c/gcdev64/src/gnucash-on-windows.git
$ TARGET=gnucash-stable jhbuild -f jhbuildrc build
Traceback (most recent call last):
  File "/usr/bin/jhbuild", line 22, in <module>
    import jhbuild.main
  File "/c/gcdev64/src/jhbuild.git/jhbuild/main.py", line 26, in <module>
    import jhbuild.config
  File "/c/gcdev64/src/jhbuild.git/jhbuild/config.py", line 31, in <module>
    from jhbuild.environment import setup_env, setup_env_defaults, addpath
  File "/c/gcdev64/src/jhbuild.git/jhbuild/environment.py", line 24, in <module>
    from distutils.sysconfig import get_python_lib
ModuleNotFoundError: No module named 'distutils'

Kevin@Kevin-PC MINGW32 /c/gcdev64/src/gnucash-on-windows.git
$ python --version
Python 3.11.10

_______________________________________________
gnucash-devel mailing list
gnucash-devel@gnucash.org<mailto:gnucash-devel@gnucash.org>
https://lists.gnucash.org/mailman/listinfo/gnucash-devel
_______________________________________________
gnucash-devel mailing list
gnucash-devel@gnucash.org
https://lists.gnucash.org/mailman/listinfo/gnucash-devel

Reply via email to