<div dir="ltr"><div>Kevin,</div><div><br></div><div>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...</div><div><a href="https://lists.gnucash.org/pipermail/gnucash-devel/2024-September/046961.html">https://lists.gnucash.org/pipermail/gnucash-devel/2024-September/046961.html</a></div><div><br></div><div>Regards,</div><div>Bob<br></div><div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, 7 Nov 2024 at 19:00, Kevin Sanders <<a href="mailto:kbsanders@hotmail.com">kbsanders@hotmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div class="msg-3760353357577722476">




<div dir="ltr">
<div style="font-family:Calibri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
Thanks John, I have joined the mailing list as suggested.</div>
<div style="font-family:Calibri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
<br>
</div>
<div style="font-family:Calibri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
I installed the recommended distutils extra package and it completed successfully but the error remains.</div>
<div style="font-family:Calibri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
<br>
</div>
<div style="font-family:Calibri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
Do you know what controls the version of python MinGW32 is using? Latest stable or something like that?</div>
<div style="font-family:Calibri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
The word "python" appears only once in the PowerShell setup script and is sans version.</div>
<div style="font-family:Calibri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
<br>
</div>
<div style="font-family:Calibri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
Perhaps this could be a PATH or environment issue where installed modules cannot be resolved?</div>
<div style="font-family:Calibri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
<br>
</div>
<div style="font-family:Calibri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
Console Output:</div>
<div style="font-family:Calibri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
<br>
</div>
<div style="font-family:Calibri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
Kevin@Kevin-PC MINGW32 /c/gcdev64/src/gnucash-on-windows.git</div>
<div style="font-family:Calibri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
$ pacman -S mingw-w64-i686-python-distutils-extra</div>
<div style="font-family:Calibri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
resolving dependencies...</div>
<div style="font-family:Calibri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
looking for conflicting packages...</div>
<div style="font-family:Calibri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
<br>
</div>
<div style="font-family:Calibri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
Packages (1) mingw-w64-i686-python-distutils-extra-2.39-4</div>
<div style="font-family:Calibri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
<br>
</div>
<div style="font-family:Calibri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
Total Download Size:   0.04 MiB</div>
<div style="font-family:Calibri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
Total Installed Size:  0.11 MiB</div>
<div style="font-family:Calibri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
<br>
</div>
<div style="font-family:Calibri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
:: Proceed with installation? [Y/n] y</div>
<div style="font-family:Calibri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
:: Retrieving packages...</div>
<div style="font-family:Calibri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
 mingw-w64-i686-python-dist...    36.5 KiB  39.1 KiB/s 00:01 [###############################] 100%</div>
<div style="font-family:Calibri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
(1/1) checking keys in keyring                               [###############################] 100%</div>
<div style="font-family:Calibri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
(1/1) checking package integrity                             [###############################] 100%</div>
<div style="font-family:Calibri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
(1/1) loading package files                                  [###############################] 100%</div>
<div style="font-family:Calibri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
(1/1) checking for file conflicts                            [###############################] 100%</div>
<div style="font-family:Calibri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
(1/1) checking available disk space                          [###############################] 100%</div>
<div style="font-family:Calibri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
:: Processing package changes...</div>
<div style="font-family:Calibri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
(1/1) installing mingw-w64-i686-python-distutils-extra       [###############################] 100%</div>
<div style="font-family:Calibri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
<br>
</div>
<div style="font-family:Calibri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
Kevin@Kevin-PC MINGW32 /c/gcdev64/src/gnucash-on-windows.git</div>
<div style="font-family:Calibri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
$ TARGET=gnucash-stable jhbuild -f jhbuildrc build</div>
<div style="font-family:Calibri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
Traceback (most recent call last):</div>
<div style="font-family:Calibri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
  File "/usr/bin/jhbuild", line 22, in <module></div>
<div style="font-family:Calibri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
    import jhbuild.main</div>
<div style="font-family:Calibri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
  File "/c/gcdev64/src/jhbuild.git/jhbuild/main.py", line 26, in <module></div>
<div style="font-family:Calibri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
    import jhbuild.config</div>
<div style="font-family:Calibri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
  File "/c/gcdev64/src/jhbuild.git/jhbuild/config.py", line 31, in <module></div>
<div style="font-family:Calibri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
    from jhbuild.environment import setup_env, setup_env_defaults, addpath</div>
<div style="font-family:Calibri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
  File "/c/gcdev64/src/jhbuild.git/jhbuild/environment.py", line 24, in <module></div>
<div style="font-family:Calibri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
    from distutils.sysconfig import get_python_lib</div>
<div style="font-family:Calibri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
ModuleNotFoundError: No module named 'distutils'</div>
<div id="m_4686466615736768673appendonsend" style="color:inherit"></div>
<div style="font-family:Calibri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
<br>
</div>
<hr style="display:inline-block;width:98%">
<div id="m_4686466615736768673divRplyFwdMsg" dir="ltr" style="color:inherit"><span style="font-family:Calibri,sans-serif;font-size:11pt;color:rgb(0,0,0)"><b>From:</b> John Ralls <<a href="mailto:jralls@ceridwen.us" target="_blank">jralls@ceridwen.us</a>><br>
<b>Sent:</b> Thursday, November 7, 2024 12:24 PM<br>
<b>To:</b> Kevin Sanders <<a href="mailto:kbsanders@hotmail.com" target="_blank">kbsanders@hotmail.com</a>><br>
<b>Cc:</b> GnuCash Development <<a href="mailto:gnucash-devel@gnucash.org" target="_blank">gnucash-devel@gnucash.org</a>><br>
<b>Subject:</b> Re: GnuCash Windows Build Help</span>
<div> </div>
</div>
<div>Kevin,</div>
<div><br>
</div>
<div>Welcome to GnuCash. Please don’t contact the developers directly; always use one of the mailing lists (<a href="https://wiki.gnucash.org/wiki/Mailing_Lists" id="m_4686466615736768673OWAf8a75fec-4af6-8e1d-eecf-86775108bc00" target="_blank">https://wiki.gnucash.org/wiki/Mailing_Lists</a>).
 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.</div>
<div><br>
</div>
<div>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:
<a href="https://gitlab.gnome.org/GNOME/jhbuild/-/issues/291" id="m_4686466615736768673OWAf0e3b0e2-fb99-f0d0-eb53-86a5d4bf7c18" target="_blank">
https://gitlab.gnome.org/GNOME/jhbuild/-/issues/291</a>. Anyway, it looks like Mingw64 has provided a workaround called ming-w64-python-distutils-extra (<a href="https://github.com/msys2/MINGW-packages/tree/master/mingw-w64-python-distutils-extra" id="m_4686466615736768673OWAa3bf7eef-561c-28d8-1458-f8ee627c247a" target="_blank">https://github.com/msys2/MINGW-packages/tree/master/mingw-w64-python-distutils-extra</a>).
 You can install it from a Mingw32 terminal window by saying</div>
<div><br>
</div>
<div>  pacman -S mingw-w64-i686-python-distutils-extra</div>
<div><br>
</div>
<div>Regards,</div>
<div>John Ralls</div>
<div><br>
</div>
<div><br>
</div>
<blockquote>
<div>On Nov 7, 2024, at 08:47, Kevin Sanders <<a href="mailto:kbsanders@hotmail.com" target="_blank">kbsanders@hotmail.com</a>> wrote:</div>
<br>
<div style="text-align:left;text-indent:0px;font-family:Calibri,Helvetica,sans-serif;font-size:12pt">
Hi John, my name is Kevin Sanders.</div>
<div style="text-align:left;text-indent:0px;font-family:Calibri,Helvetica,sans-serif;font-size:12pt">
<br>
</div>
<div style="text-align:left;text-indent:0px;font-family:Calibri,Helvetica,sans-serif;font-size:12pt">
I'm a new user of GnuCash and I'm trying to get setup to do some development work with GnuCash on Windows.</div>
<div style="text-align:left;text-indent:0px;font-family:Calibri,Helvetica,sans-serif;font-size:12pt">
<br>
</div>
<div style="text-align:left;text-indent:0px;font-family:Calibri,Helvetica,sans-serif;font-size:12pt">
I'm sorry to bother you but I've run into an issue that I'm not sure how to resolve.</div>
<div style="text-align:left;text-indent:0px;font-family:Calibri,Helvetica,sans-serif;font-size:12pt">
<br>
</div>
<div style="text-align:left;text-indent:0px;font-family:Calibri,Helvetica,sans-serif;font-size:12pt">
I have ran the setup-mingw.ps1 PowerShell script.</div>
<div style="text-align:left;text-indent:0px;font-family:Calibri,Helvetica,sans-serif;font-size:12pt">
I have launched a MSYS2 MingGW 32-bit terminal window and cd into the repository directory.</div>
<div style="text-align:left;text-indent:0px;font-family:Calibri,Helvetica,sans-serif;font-size:12pt">
I run jhbuild and it fails with ModuleNotFoundError: No module named 'distutils'.</div>
<div style="text-align:left;text-indent:0px;font-family:Calibri,Helvetica,sans-serif;font-size:12pt">
<br>
</div>
<div style="text-align:left;text-indent:0px;font-family:Calibri,Helvetica,sans-serif;font-size:12pt">
I believe this to be a python issue, but I'm not really sure.</div>
<div style="text-align:left;text-indent:0px;font-family:Calibri,Helvetica,sans-serif;font-size:12pt">
Python version is showing as 3.11.10.</div>
<div style="text-align:left;text-indent:0px;font-family:Calibri,Helvetica,sans-serif;font-size:12pt">
<br>
</div>
<div style="text-align:left;text-indent:0px;font-family:Calibri,Helvetica,sans-serif;font-size:12pt">
Any help would be greatly appreciated.</div>
<div style="text-align:left;text-indent:0px;font-family:Calibri,Helvetica,sans-serif;font-size:12pt">
<br>
</div>
<div style="text-align:left;text-indent:0px;font-family:Calibri,Helvetica,sans-serif;font-size:12pt">
-Kevin</div>
<div style="text-align:left;text-indent:0px;font-family:Calibri,Helvetica,sans-serif;font-size:12pt">
<br>
</div>
<div style="text-align:left;text-indent:0px;font-family:Calibri,Helvetica,sans-serif;font-size:12pt">
Console Output:</div>
<div style="text-align:left;text-indent:0px;font-family:Calibri,Helvetica,sans-serif;font-size:12pt">
<br>
</div>
<div style="text-align:left;text-indent:0px;font-family:"Courier New",monospace;font-size:12pt">
Kevin@Kevin-PC MINGW32 /c/gcdev64/src/gnucash-on-windows.git</div>
<div style="text-align:left;text-indent:0px;font-family:"Courier New",monospace;font-size:12pt">
$ TARGET=gnucash-stable jhbuild -f jhbuildrc build</div>
<div style="text-align:left;text-indent:0px;font-family:"Courier New",monospace;font-size:12pt">
Traceback (most recent call last):</div>
<div style="text-align:left;text-indent:0px;font-family:"Courier New",monospace;font-size:12pt">
  File "/usr/bin/jhbuild", line 22, in <module></div>
<div style="text-align:left;text-indent:0px;font-family:"Courier New",monospace;font-size:12pt">
    import jhbuild.main</div>
<div style="text-align:left;text-indent:0px;font-family:"Courier New",monospace;font-size:12pt">
  File "/c/gcdev64/src/jhbuild.git/jhbuild/main.py", line 26, in <module></div>
<div style="text-align:left;text-indent:0px;font-family:"Courier New",monospace;font-size:12pt">
    import jhbuild.config</div>
<div style="text-align:left;text-indent:0px;font-family:"Courier New",monospace;font-size:12pt">
  File "/c/gcdev64/src/jhbuild.git/jhbuild/config.py", line 31, in <module></div>
<div style="text-align:left;text-indent:0px;font-family:"Courier New",monospace;font-size:12pt">
    from jhbuild.environment import setup_env, setup_env_defaults, addpath</div>
<div style="text-align:left;text-indent:0px;font-family:"Courier New",monospace;font-size:12pt">
  File "/c/gcdev64/src/jhbuild.git/jhbuild/environment.py", line 24, in <module></div>
<div style="text-align:left;text-indent:0px;font-family:"Courier New",monospace;font-size:12pt">
    from distutils.sysconfig import get_python_lib</div>
<div style="text-align:left;text-indent:0px;font-family:"Courier New",monospace;font-size:12pt">
ModuleNotFoundError: No module named 'distutils'</div>
<div style="text-align:left;text-indent:0px;font-family:"Courier New",monospace;font-size:12pt">
<br>
</div>
<div style="text-align:left;text-indent:0px;font-family:"Courier New",monospace;font-size:12pt">
Kevin@Kevin-PC MINGW32 /c/gcdev64/src/gnucash-on-windows.git</div>
<div style="text-align:left;text-indent:0px;font-family:"Courier New",monospace;font-size:12pt">
$ python --version</div>
<div style="text-align:left;text-indent:0px;font-family:"Courier New",monospace;font-size:12pt">
Python 3.11.10</div>
</blockquote>
<br>
</div>

_______________________________________________<br>
gnucash-devel mailing list<br>
<a href="mailto:gnucash-devel@gnucash.org" target="_blank">gnucash-devel@gnucash.org</a><br>
<a href="https://lists.gnucash.org/mailman/listinfo/gnucash-devel" rel="noreferrer" target="_blank">https://lists.gnucash.org/mailman/listinfo/gnucash-devel</a><br>
</div></blockquote></div>