<html><head><meta http-equiv="content-type" content="text/html; charset=utf-8"></head><body style="overflow-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;">Russ,<div><br></div><div>Have you considered setting up a Linux build environment instead? You can install your distro of choice in the Windows Subsystem for Linux (aka WSL). Many of them have a package manager target similar to Debian/Ubuntu’s `apt build-dep gnucash` that sets up everything you need except a code editor. It’s much less frustrating than the MinGW64 environment.</div><div><br></div><div>Regards,</div><div>John Ralls</div><div><br id="lineBreakAtBeginningOfMessage"><div><br><blockquote type="cite"><div>On Mar 18, 2025, at 15:27, <russ.gorby@gmail.com> <russ.gorby@gmail.com> wrote:</div><br class="Apple-interchange-newline"><div><meta charset="UTF-8"><div class="WordSection1" style="page: WordSection1; caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 11px; font-style: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none;"><div style="margin: 0in; font-size: 12pt; font-family: Aptos, sans-serif;"><span style="font-size: 11pt; font-family: Calibri, sans-serif;">That would be great.<o:p></o:p></span></div><div style="margin: 0in; font-size: 12pt; font-family: Aptos, sans-serif;"><span style="font-size: 11pt; font-family: Calibri, sans-serif;">I‘ve been converting the build script to python for my own uses so I’d be very interested in anything you discover.<o:p></o:p></span></div><div style="margin: 0in; font-size: 12pt; font-family: Aptos, sans-serif;"><span style="font-size: 11pt; font-family: Calibri, sans-serif;">I am new to the MSYS2/MING environment and am still coming up to speed.<o:p></o:p></span></div><div style="margin: 0in; font-size: 12pt; font-family: Aptos, sans-serif;"><span style="font-size: 11pt; font-family: Calibri, sans-serif;">I want to start working on the C++ code but need to understand the build and env details first I think.<o:p></o:p></span></div><div style="margin: 0in; font-size: 12pt; font-family: Aptos, sans-serif;"><span style="font-size: 11pt; font-family: Calibri, sans-serif;">Thanks, we’ll keep in touch<o:p></o:p></span></div><div style="margin: 0in; font-size: 12pt; font-family: Aptos, sans-serif;"><span style="font-size: 11pt; font-family: Calibri, sans-serif;"><o:p> </o:p></span></div><div style="border-width: 1pt medium medium; border-style: solid none none; border-color: rgb(225, 225, 225) currentcolor currentcolor; border-image: none; padding: 3pt 0in 0in;"><div style="margin: 0in; font-size: 12pt; font-family: Aptos, sans-serif;"><b><span style="font-size: 11pt; font-family: Calibri, sans-serif;">From:</span></b><span style="font-size: 11pt; font-family: Calibri, sans-serif;"><span class="Apple-converted-space"> </span>Robert Fewell <14ubobit@gmail.com><span class="Apple-converted-space"> </span><br><b>Sent:</b><span class="Apple-converted-space"> </span>Monday, March 17, 2025 3:18 AM<br><b>To:</b><span class="Apple-converted-space"> </span>russ.gorby@gmail.com<br><b>Cc:</b><span class="Apple-converted-space"> </span>Kevin Sanders <kbsanders@hotmail.com>; GnuCash Development <gnucash-devel@gnucash.org><br><b>Subject:</b><span class="Apple-converted-space"> </span>Re: GnuCash Windows Build Help<o:p></o:p></span></div></div><div style="margin: 0in; font-size: 12pt; font-family: Aptos, sans-serif;"><o:p> </o:p></div><div><div><div style="margin: 0in; font-size: 12pt; font-family: Aptos, sans-serif;">Russ,<o:p></o:p></div></div><div><div style="margin: 0in; font-size: 12pt; font-family: Aptos, sans-serif;">After a PC swap to Windows 11, I need to redo my windows build machine so will be starting from scratch. I should be able to do this this week so will report back here and hopefully be able to update the build script.<o:p></o:p></div></div><div><div style="margin: 0in; font-size: 12pt; font-family: Aptos, sans-serif;"><o:p> </o:p></div></div><div><div style="margin: 0in; font-size: 12pt; font-family: Aptos, sans-serif;">Regards,<o:p></o:p></div></div><div><div style="margin: 0in; font-size: 12pt; font-family: Aptos, sans-serif;">Robert<o:p></o:p></div></div></div><div style="margin: 0in; font-size: 12pt; font-family: Aptos, sans-serif;"><o:p> </o:p></div><div><div><div style="margin: 0in; font-size: 12pt; font-family: Aptos, sans-serif;">On Sun, 16 Mar 2025 at 23:10, <<a href="mailto:russ.gorby@gmail.com" style="color: blue; text-decoration: underline;">russ.gorby@gmail.com</a>> wrote:<o:p></o:p></div></div><blockquote style="border-width: medium medium medium 1pt; border-style: none none none solid; border-color: currentcolor currentcolor currentcolor rgb(204, 204, 204); border-image: none; padding: 0in 0in 0in 6pt; margin-left: 4.8pt; margin-right: 0in;" type="cite"><div><div><div><div style="margin: 0in; font-size: 12pt; font-family: Aptos, sans-serif;"><span style="font-size: 11pt; font-family: Calibri, sans-serif;">Hello all, I am also trying to build GnuCash on native Windows (64-bit Windows 10)</span><o:p></o:p></div><div style="margin: 0in; font-size: 12pt; font-family: Aptos, sans-serif;"><span style="font-size: 11pt; font-family: Calibri, sans-serif;">I've reviewed the other threads on here from Kevin Sanders and Robert Fewell about native windows builds and have run into the same problems during bootstrap and worked around them in similar ways.</span><o:p></o:p></div><div style="margin: 0in; font-size: 12pt; font-family: Aptos, sans-serif;"><span style="font-size: 11pt; font-family: Calibri, sans-serif;">I'm stuck on step 1/14 running jhbuild and was hoping one of them might have some insight.</span><o:p></o:p></div><div style="margin: 0in; font-size: 12pt; font-family: Aptos, sans-serif;"><span style="font-size: 11pt; font-family: Calibri, sans-serif;"> </span><o:p></o:p></div><div style="margin: 0in; font-size: 12pt; font-family: Aptos, sans-serif;"><span style="font-size: 11pt; font-family: Calibri, sans-serif;">Prior to building the first module, I ran into similar problems as others:</span><o:p></o:p></div><ul type="disc" style="margin-bottom: 0in;"><li class="MsoNormal" style="margin: 0in; font-size: 12pt; font-family: Aptos, sans-serif; vertical-align: middle;"><span style="font-size: 11pt; font-family: Calibri, sans-serif;">I ran into the same 'distutils' problem</span><o:p></o:p></li></ul><ul type="disc" style="margin-bottom: 0in;"><ul type="circle" style="margin-bottom: 0in;"><li class="MsoNormal" style="margin: 0in; font-size: 12pt; font-family: Aptos, sans-serif; vertical-align: middle;"><span style="font-size: 11pt; font-family: Calibri, sans-serif;">This was which was addressed via</span><o:p></o:p></li></ul></ul><ul type="disc" style="margin-bottom: 0in;"><ul type="circle" style="margin-bottom: 0in;"><ul type="disc" style="margin-bottom: 0in;"><li class="MsoNormal" style="margin: 0in; font-size: 12pt; font-family: Aptos, sans-serif; vertical-align: middle;"><span style="font-size: 11pt; font-family: Calibri, sans-serif;">Running: "</span><span style="font-family: Calibri, sans-serif;">pacman -S python-setuptools"<span class="Apple-converted-space"> </span></span><o:p></o:p></li></ul></ul></ul><ul type="disc" style="margin-bottom: 0in;"><li class="MsoNormal" style="margin: 0in; font-size: 12pt; font-family: Aptos, sans-serif; vertical-align: middle;"><span style="font-size: 11pt; font-family: Calibri, sans-serif;">I ran into the same missing 'gcrypt' problem</span><o:p></o:p></li></ul><ul type="disc" style="margin-bottom: 0in;"><ul type="circle" style="margin-bottom: 0in;"><li class="MsoNormal" style="margin: 0in; font-size: 12pt; font-family: Aptos, sans-serif; vertical-align: middle;"><span style="font-size: 11pt; font-family: Calibri, sans-serif;">This was addressed via<span class="Apple-converted-space"> </span></span><o:p></o:p></li></ul></ul><ul type="disc" style="margin-bottom: 0in;"><ul type="circle" style="margin-bottom: 0in;"><ul type="disc" style="margin-bottom: 0in;"><li class="MsoNormal" style="margin: 0in; font-size: 12pt; font-family: Aptos, sans-serif; vertical-align: middle;"><span style="font-size: 11pt; font-family: Calibri, sans-serif;">Installing win-sudo</span><o:p></o:p></li><li class="MsoNormal" style="margin: 0in; font-size: 12pt; font-family: Aptos, sans-serif; vertical-align: middle;"><span style="font-size: 11pt; font-family: Calibri, sans-serif;">Running: "sudo jhbuild sysdeps --install"</span><o:p></o:p></li></ul></ul></ul><div style="margin: 0in; font-size: 12pt; font-family: Aptos, sans-serif;"><span style="font-size: 11pt; font-family: Calibri, sans-serif;"> </span><o:p></o:p></div><div style="margin: 0in; font-size: 12pt; font-family: Aptos, sans-serif;"><span style="font-size: 11pt; font-family: Calibri, sans-serif;">Step 1/14 is building OpenSP-1.5.2</span><o:p></o:p></div><div style="margin: 0in; font-size: 12pt; font-family: Aptos, sans-serif;"><span style="font-size: 11pt; font-family: Calibri, sans-serif;">It checks out and configures fine, but once the build starts I see what looks like maybe some header file problems but it errors out building <span class="Apple-converted-space"> </span><b>CmdLineApp.lo, DtdDeclEventHandler.lo Entity.lo and ArcEngine.lo</b></span><o:p></o:p></div><div style="margin: 0in; font-size: 12pt; font-family: Aptos, sans-serif;"><span style="font-size: 11pt; font-family: Calibri, sans-serif;"> </span><o:p></o:p></div><div style="margin: 0in; font-size: 12pt; font-family: Aptos, sans-serif;"><span style="font-size: 11pt; font-family: Calibri, sans-serif;">I saw Robert Fewell notes on failures in OpenSP build and took those changes to utils/packagedb.py but that doesn't address compilation errors I'm seeing.</span><o:p></o:p></div><div style="margin: 0in; font-size: 12pt; font-family: Aptos, sans-serif;"><span style="font-size: 11pt; font-family: Calibri, sans-serif;"> </span><o:p></o:p></div><div style="margin: 0in; font-size: 12pt; font-family: Aptos, sans-serif;"><span style="font-size: 11pt; font-family: Calibri, sans-serif;">If anyone has any insights on these specific issues that would be great.</span><o:p></o:p></div><div style="margin: 0in; font-size: 12pt; font-family: Aptos, sans-serif;"><span style="font-size: 11pt; font-family: Calibri, sans-serif;">Short of that, I want to start at the first failure but the parallel builds are gumming the output</span><o:p></o:p></div><div style="margin: 0in; font-size: 12pt; font-family: Aptos, sans-serif;"><span style="font-size: 11pt; font-family: Calibri, sans-serif;"> </span><o:p></o:p></div><div style="margin: 0in; font-size: 12pt; font-family: Aptos, sans-serif;"><span style="font-size: 11pt; font-family: Calibri, sans-serif; background: rgb(255, 255, 153);">Q1: Can someone point me to where/how to eliminate the parallel jhbuilds (make -j5) so I can at least see some serial output?</span><o:p></o:p></div><div style="margin: 0in; font-size: 12pt; font-family: Aptos, sans-serif;"><span style="font-size: 11pt; font-family: Calibri, sans-serif; background: rgb(255, 255, 153);"> </span><o:p></o:p></div><div style="margin: 0in; font-size: 12pt; font-family: Aptos, sans-serif;"><span style="font-size: 11pt; font-family: Calibri, sans-serif;">Thanks for any pointers you might have.</span><o:p></o:p></div><ul type="disc" style="margin-bottom: 0in;"><li class="m7452489009084808712msolistparagraph" style="margin-right: 0in; margin-left: 0in; font-size: 12pt; font-family: Aptos, sans-serif;"><span style="font-size: 11pt; font-family: Calibri, sans-serif;">Russ</span><o:p></o:p></li></ul><div style="margin: 0in; font-size: 12pt; font-family: Aptos, sans-serif;"><span style="font-size: 11pt; font-family: Calibri, sans-serif;"> </span><o:p></o:p></div><div style="margin: 0in; font-size: 12pt; font-family: Aptos, sans-serif;"><span style="font-size: 11pt; font-family: Calibri, sans-serif;"> </span><o:p></o:p></div><div><div style="border-width: 1pt medium medium; border-style: solid none none; border-image: none; padding: 3pt 0in 0in; border-color: currentcolor;"><div style="margin: 0in; font-size: 12pt; font-family: Aptos, sans-serif;"><b><span style="font-size: 11pt; font-family: Calibri, sans-serif;">From:</span></b><span style="font-size: 11pt; font-family: Calibri, sans-serif;"><span class="Apple-converted-space"> </span>gnucash-devel <gnucash-devel-bounces+russ.gorby=<a href="mailto:gmail.com@gnucash.org" target="_blank" style="color: blue; text-decoration: underline;">gmail.com@gnucash.org</a>><span class="Apple-converted-space"> </span><b>On Behalf Of<span class="Apple-converted-space"> </span></b>Kevin Sanders<br><b>Sent:</b><span class="Apple-converted-space"> </span>Thursday, November 7, 2024 12:00 PM<br><b>To:</b><span class="Apple-converted-space"> </span>GnuCash Development <<a href="mailto:gnucash-devel@gnucash.org" target="_blank" style="color: blue; text-decoration: underline;">gnucash-devel@gnucash.org</a>><br><b>Subject:</b><span class="Apple-converted-space"> </span>Re: GnuCash Windows Build Help</span><o:p></o:p></div></div></div><div style="margin: 0in; font-size: 12pt; font-family: Aptos, sans-serif;"> <o:p></o:p></div><div><div style="margin: 0in; font-size: 12pt; font-family: Aptos, sans-serif;"><span style="font-family: Calibri, sans-serif;">Thanks John, I have joined the mailing list as suggested.</span><o:p></o:p></div></div><div><div style="margin: 0in; font-size: 12pt; font-family: Aptos, sans-serif;"><span style="font-family: Calibri, sans-serif;"> </span><o:p></o:p></div></div><div><div style="margin: 0in; font-size: 12pt; font-family: Aptos, sans-serif;"><span style="font-family: Calibri, sans-serif;">I installed the recommended distutils extra package and it completed successfully but the error remains.</span><o:p></o:p></div></div><div><div style="margin: 0in; font-size: 12pt; font-family: Aptos, sans-serif;"><span style="font-family: Calibri, sans-serif;"> </span><o:p></o:p></div></div><div><div style="margin: 0in; font-size: 12pt; font-family: Aptos, sans-serif;"><span style="font-family: Calibri, sans-serif;">Do you know what controls the version of python MinGW32 is using? Latest stable or something like that?</span><o:p></o:p></div></div><div><div style="margin: 0in; font-size: 12pt; font-family: Aptos, sans-serif;"><span style="font-family: Calibri, sans-serif;">The word "python" appears only once in the PowerShell setup script and is sans version.</span><o:p></o:p></div></div><div><div style="margin: 0in; font-size: 12pt; font-family: Aptos, sans-serif;"><span style="font-family: Calibri, sans-serif;"> </span><o:p></o:p></div></div><div><div style="margin: 0in; font-size: 12pt; font-family: Aptos, sans-serif;"><span style="font-family: Calibri, sans-serif;">Perhaps this could be a PATH or environment issue where installed modules cannot be resolved?</span><o:p></o:p></div></div><div><div style="margin: 0in; font-size: 12pt; font-family: Aptos, sans-serif;"><span style="font-family: Calibri, sans-serif;"> </span><o:p></o:p></div></div><div><div style="margin: 0in; font-size: 12pt; font-family: Aptos, sans-serif;"><span style="font-family: Calibri, sans-serif;">Console Output:</span><o:p></o:p></div></div><div><div style="margin: 0in; font-size: 12pt; font-family: Aptos, sans-serif;"><span style="font-family: Calibri, sans-serif;"> </span><o:p></o:p></div></div><div><div style="margin: 0in; font-size: 12pt; font-family: Aptos, sans-serif;"><span style="font-family: Calibri, sans-serif;">Kevin@Kevin-PC MINGW32 /c/gcdev64/src/gnucash-on-windows.git</span><o:p></o:p></div></div><div><div style="margin: 0in; font-size: 12pt; font-family: Aptos, sans-serif;"><span style="font-family: Calibri, sans-serif;">$ pacman -S mingw-w64-i686-python-distutils-extra</span><o:p></o:p></div></div><div><div style="margin: 0in; font-size: 12pt; font-family: Aptos, sans-serif;"><span style="font-family: Calibri, sans-serif;">resolving dependencies...</span><o:p></o:p></div></div><div><div style="margin: 0in; font-size: 12pt; font-family: Aptos, sans-serif;"><span style="font-family: Calibri, sans-serif;">looking for conflicting packages...</span><o:p></o:p></div></div><div><div style="margin: 0in; font-size: 12pt; font-family: Aptos, sans-serif;"><span style="font-family: Calibri, sans-serif;"> </span><o:p></o:p></div></div><div><div style="margin: 0in; font-size: 12pt; font-family: Aptos, sans-serif;"><span style="font-family: Calibri, sans-serif;">Packages (1) mingw-w64-i686-python-distutils-extra-2.39-4</span><o:p></o:p></div></div><div><div style="margin: 0in; font-size: 12pt; font-family: Aptos, sans-serif;"><span style="font-family: Calibri, sans-serif;"> </span><o:p></o:p></div></div><div><div style="margin: 0in; font-size: 12pt; font-family: Aptos, sans-serif;"><span style="font-family: Calibri, sans-serif;">Total Download Size: 0.04 MiB</span><o:p></o:p></div></div><div><div style="margin: 0in; font-size: 12pt; font-family: Aptos, sans-serif;"><span style="font-family: Calibri, sans-serif;">Total Installed Size: 0.11 MiB</span><o:p></o:p></div></div><div><div style="margin: 0in; font-size: 12pt; font-family: Aptos, sans-serif;"><span style="font-family: Calibri, sans-serif;"> </span><o:p></o:p></div></div><div><div style="margin: 0in; font-size: 12pt; font-family: Aptos, sans-serif;"><span style="font-family: Calibri, sans-serif;">:: Proceed with installation? [Y/n] y</span><o:p></o:p></div></div><div><div style="margin: 0in; font-size: 12pt; font-family: Aptos, sans-serif;"><span style="font-family: Calibri, sans-serif;">:: Retrieving packages...</span><o:p></o:p></div></div><div><div style="margin: 0in; font-size: 12pt; font-family: Aptos, sans-serif;"><span style="font-family: Calibri, sans-serif;"> mingw-w64-i686-python-dist... 36.5 KiB 39.1 KiB/s 00:01 [###############################] 100%</span><o:p></o:p></div></div><div><div style="margin: 0in; font-size: 12pt; font-family: Aptos, sans-serif;"><span style="font-family: Calibri, sans-serif;">(1/1) checking keys in keyring [###############################] 100%</span><o:p></o:p></div></div><div><div style="margin: 0in; font-size: 12pt; font-family: Aptos, sans-serif;"><span style="font-family: Calibri, sans-serif;">(1/1) checking package integrity [###############################] 100%</span><o:p></o:p></div></div><div><div style="margin: 0in; font-size: 12pt; font-family: Aptos, sans-serif;"><span style="font-family: Calibri, sans-serif;">(1/1) loading package files [###############################] 100%</span><o:p></o:p></div></div><div><div style="margin: 0in; font-size: 12pt; font-family: Aptos, sans-serif;"><span style="font-family: Calibri, sans-serif;">(1/1) checking for file conflicts [###############################] 100%</span><o:p></o:p></div></div><div><div style="margin: 0in; font-size: 12pt; font-family: Aptos, sans-serif;"><span style="font-family: Calibri, sans-serif;">(1/1) checking available disk space [###############################] 100%</span><o:p></o:p></div></div><div><div style="margin: 0in; font-size: 12pt; font-family: Aptos, sans-serif;"><span style="font-family: Calibri, sans-serif;">:: Processing package changes...</span><o:p></o:p></div></div><div><div style="margin: 0in; font-size: 12pt; font-family: Aptos, sans-serif;"><span style="font-family: Calibri, sans-serif;">(1/1) installing mingw-w64-i686-python-distutils-extra [###############################] 100%</span><o:p></o:p></div></div><div><div style="margin: 0in; font-size: 12pt; font-family: Aptos, sans-serif;"><span style="font-family: Calibri, sans-serif;"> </span><o:p></o:p></div></div><div><div style="margin: 0in; font-size: 12pt; font-family: Aptos, sans-serif;"><span style="font-family: Calibri, sans-serif;">Kevin@Kevin-PC MINGW32 /c/gcdev64/src/gnucash-on-windows.git</span><o:p></o:p></div></div><div><div style="margin: 0in; font-size: 12pt; font-family: Aptos, sans-serif;"><span style="font-family: Calibri, sans-serif;">$ TARGET=gnucash-stable jhbuild -f jhbuildrc build</span><o:p></o:p></div></div><div><div style="margin: 0in; font-size: 12pt; font-family: Aptos, sans-serif;"><span style="font-family: Calibri, sans-serif;">Traceback (most recent call last):</span><o:p></o:p></div></div><div><div style="margin: 0in; font-size: 12pt; font-family: Aptos, sans-serif;"><span style="font-family: Calibri, sans-serif;"> File "/usr/bin/jhbuild", line 22, in <module></span><o:p></o:p></div></div><div><div style="margin: 0in; font-size: 12pt; font-family: Aptos, sans-serif;"><span style="font-family: Calibri, sans-serif;"> import jhbuild.main</span><o:p></o:p></div></div><div><div style="margin: 0in; font-size: 12pt; font-family: Aptos, sans-serif;"><span style="font-family: Calibri, sans-serif;"> File "/c/gcdev64/src/jhbuild.git/jhbuild/main.py", line 26, in <module></span><o:p></o:p></div></div><div><div style="margin: 0in; font-size: 12pt; font-family: Aptos, sans-serif;"><span style="font-family: Calibri, sans-serif;"> import jhbuild.config</span><o:p></o:p></div></div><div><div style="margin: 0in; font-size: 12pt; font-family: Aptos, sans-serif;"><span style="font-family: Calibri, sans-serif;"> File "/c/gcdev64/src/jhbuild.git/jhbuild/config.py", line 31, in <module></span><o:p></o:p></div></div><div><div style="margin: 0in; font-size: 12pt; font-family: Aptos, sans-serif;"><span style="font-family: Calibri, sans-serif;"> from jhbuild.environment import setup_env, setup_env_defaults, addpath</span><o:p></o:p></div></div><div><div style="margin: 0in; font-size: 12pt; font-family: Aptos, sans-serif;"><span style="font-family: Calibri, sans-serif;"> File "/c/gcdev64/src/jhbuild.git/jhbuild/environment.py", line 24, in <module></span><o:p></o:p></div></div><div><div style="margin: 0in; font-size: 12pt; font-family: Aptos, sans-serif;"><span style="font-family: Calibri, sans-serif;"> from distutils.sysconfig import get_python_lib</span><o:p></o:p></div></div><div><div style="margin: 0in; font-size: 12pt; font-family: Aptos, sans-serif;"><span style="font-family: Calibri, sans-serif;">ModuleNotFoundError: No module named 'distutils'</span><o:p></o:p></div></div><div><div style="margin: 0in; font-size: 12pt; font-family: Aptos, sans-serif;"><span style="font-family: Calibri, sans-serif;"> </span><o:p></o:p></div></div><div class="MsoNormal" align="center" style="margin: 0in; font-size: 12pt; font-family: Aptos, sans-serif; text-align: center;"><hr size="1" width="98%" align="center"></div><div id="m_7452489009084808712divRplyFwdMsg"><div style="margin: 0in; font-size: 12pt; font-family: Aptos, sans-serif;"><b><span style="font-size: 11pt; font-family: Calibri, sans-serif;">From:</span></b><span style="font-size: 11pt; font-family: Calibri, sans-serif;"> John Ralls <<a href="mailto:jralls@ceridwen.us" target="_blank" style="color: blue; text-decoration: underline;">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" style="color: blue; text-decoration: underline;">kbsanders@hotmail.com</a>><br><b>Cc:</b> GnuCash Development <<a href="mailto:gnucash-devel@gnucash.org" target="_blank" style="color: blue; text-decoration: underline;">gnucash-devel@gnucash.org</a>><br><b>Subject:</b> Re: GnuCash Windows Build Help</span><o:p></o:p></div><div><div style="margin: 0in; font-size: 12pt; font-family: Aptos, sans-serif;"> <o:p></o:p></div></div></div><div><div style="margin: 0in; font-size: 12pt; font-family: Aptos, sans-serif;">Kevin,<o:p></o:p></div></div><div><div style="margin: 0in; font-size: 12pt; font-family: Aptos, sans-serif;"> <o:p></o:p></div></div><div><div style="margin: 0in; font-size: 12pt; font-family: Aptos, sans-serif;">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" target="_blank" id="m_7452489009084808712OWAf8a75fec-4af6-8e1d-eecf-86775108bc00" style="color: blue; text-decoration: underline;">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.<o:p></o:p></div></div><div><div style="margin: 0in; font-size: 12pt; font-family: Aptos, sans-serif;"> <o:p></o:p></div></div><div><div style="margin: 0in; font-size: 12pt; font-family: Aptos, sans-serif;">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:<span class="Apple-converted-space"> </span><a href="https://gitlab.gnome.org/GNOME/jhbuild/-/issues/291" target="_blank" id="m_7452489009084808712OWAf0e3b0e2-fb99-f0d0-eb53-86a5d4bf7c18" style="color: blue; text-decoration: underline;">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" target="_blank" id="m_7452489009084808712OWAa3bf7eef-561c-28d8-1458-f8ee627c247a" style="color: blue; text-decoration: underline;">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<o:p></o:p></div></div><div><div style="margin: 0in; font-size: 12pt; font-family: Aptos, sans-serif;"> <o:p></o:p></div></div><div><div style="margin: 0in; font-size: 12pt; font-family: Aptos, sans-serif;"> pacman -S mingw-w64-i686-python-distutils-extra<o:p></o:p></div></div><div><div style="margin: 0in; font-size: 12pt; font-family: Aptos, sans-serif;"> <o:p></o:p></div></div><div><div style="margin: 0in; font-size: 12pt; font-family: Aptos, sans-serif;">Regards,<o:p></o:p></div></div><div><div style="margin: 0in; font-size: 12pt; font-family: Aptos, sans-serif;">John Ralls<o:p></o:p></div></div><div><div style="margin: 0in; font-size: 12pt; font-family: Aptos, sans-serif;"> <o:p></o:p></div></div><div><div style="margin: 0in; font-size: 12pt; font-family: Aptos, sans-serif;"> <o:p></o:p></div></div><blockquote style="margin-top: 5pt; margin-bottom: 5pt;" type="cite"><div><div style="margin: 0in; font-size: 12pt; font-family: Aptos, sans-serif;">On Nov 7, 2024, at 08:47, Kevin Sanders <<a href="mailto:kbsanders@hotmail.com" target="_blank" style="color: blue; text-decoration: underline;">kbsanders@hotmail.com</a>> wrote:<o:p></o:p></div></div><div style="margin: 0in; font-size: 12pt; font-family: Aptos, sans-serif;"> <o:p></o:p></div><div style="margin: 0in; font-size: 12pt; font-family: Aptos, sans-serif;"><span style="font-family: Calibri, sans-serif;">Hi John, my name is Kevin Sanders.</span><o:p></o:p></div><div style="margin: 0in; font-size: 12pt; font-family: Aptos, sans-serif;"><span style="font-family: Calibri, sans-serif;"> </span><o:p></o:p></div><div style="margin: 0in; font-size: 12pt; font-family: Aptos, sans-serif;"><span style="font-family: Calibri, sans-serif;">I'm a new user of GnuCash and I'm trying to get setup to do some development work with GnuCash on Windows.</span><o:p></o:p></div><div style="margin: 0in; font-size: 12pt; font-family: Aptos, sans-serif;"><span style="font-family: Calibri, sans-serif;"> </span><o:p></o:p></div><div style="margin: 0in; font-size: 12pt; font-family: Aptos, sans-serif;"><span style="font-family: Calibri, sans-serif;">I'm sorry to bother you but I've run into an issue that I'm not sure how to resolve.</span><o:p></o:p></div><div style="margin: 0in; font-size: 12pt; font-family: Aptos, sans-serif;"><span style="font-family: Calibri, sans-serif;"> </span><o:p></o:p></div><div style="margin: 0in; font-size: 12pt; font-family: Aptos, sans-serif;"><span style="font-family: Calibri, sans-serif;">I have ran the setup-mingw.ps1 PowerShell script.</span><o:p></o:p></div><div style="margin: 0in; font-size: 12pt; font-family: Aptos, sans-serif;"><span style="font-family: Calibri, sans-serif;">I have launched a MSYS2 MingGW 32-bit terminal window and cd into the repository directory.</span><o:p></o:p></div><div style="margin: 0in; font-size: 12pt; font-family: Aptos, sans-serif;"><span style="font-family: Calibri, sans-serif;">I run jhbuild and it fails with ModuleNotFoundError: No module named 'distutils'.</span><o:p></o:p></div><div style="margin: 0in; font-size: 12pt; font-family: Aptos, sans-serif;"><span style="font-family: Calibri, sans-serif;"> </span><o:p></o:p></div><div style="margin: 0in; font-size: 12pt; font-family: Aptos, sans-serif;"><span style="font-family: Calibri, sans-serif;">I believe this to be a python issue, but I'm not really sure.</span><o:p></o:p></div><div style="margin: 0in; font-size: 12pt; font-family: Aptos, sans-serif;"><span style="font-family: Calibri, sans-serif;">Python version is showing as 3.11.10.</span><o:p></o:p></div><div style="margin: 0in; font-size: 12pt; font-family: Aptos, sans-serif;"><span style="font-family: Calibri, sans-serif;"> </span><o:p></o:p></div><div style="margin: 0in; font-size: 12pt; font-family: Aptos, sans-serif;"><span style="font-family: Calibri, sans-serif;">Any help would be greatly appreciated.</span><o:p></o:p></div><div style="margin: 0in; font-size: 12pt; font-family: Aptos, sans-serif;"><span style="font-family: Calibri, sans-serif;"> </span><o:p></o:p></div><div style="margin: 0in; font-size: 12pt; font-family: Aptos, sans-serif;"><span style="font-family: Calibri, sans-serif;">-Kevin</span><o:p></o:p></div><div style="margin: 0in; font-size: 12pt; font-family: Aptos, sans-serif;"><span style="font-family: Calibri, sans-serif;"> </span><o:p></o:p></div><div style="margin: 0in; font-size: 12pt; font-family: Aptos, sans-serif;"><span style="font-family: Calibri, sans-serif;">Console Output:</span><o:p></o:p></div><div style="margin: 0in; font-size: 12pt; font-family: Aptos, sans-serif;"><span style="font-family: Calibri, sans-serif;"> </span><o:p></o:p></div><div style="margin: 0in; font-size: 12pt; font-family: Aptos, sans-serif;"><span style="font-family: "Courier New";">Kevin@Kevin-PC MINGW32 /c/gcdev64/src/gnucash-on-windows.git</span><o:p></o:p></div><div style="margin: 0in; font-size: 12pt; font-family: Aptos, sans-serif;"><span style="font-family: "Courier New";">$ TARGET=gnucash-stable jhbuild -f jhbuildrc build</span><o:p></o:p></div><div style="margin: 0in; font-size: 12pt; font-family: Aptos, sans-serif;"><span style="font-family: "Courier New";">Traceback (most recent call last):</span><o:p></o:p></div><div style="margin: 0in; font-size: 12pt; font-family: Aptos, sans-serif;"><span style="font-family: "Courier New";"> File "/usr/bin/jhbuild", line 22, in <module></span><o:p></o:p></div><div style="margin: 0in; font-size: 12pt; font-family: Aptos, sans-serif;"><span style="font-family: "Courier New";"> import jhbuild.main</span><o:p></o:p></div><div style="margin: 0in; font-size: 12pt; font-family: Aptos, sans-serif;"><span style="font-family: "Courier New";"> File "/c/gcdev64/src/jhbuild.git/jhbuild/main.py", line 26, in <module></span><o:p></o:p></div><div style="margin: 0in; font-size: 12pt; font-family: Aptos, sans-serif;"><span style="font-family: "Courier New";"> import jhbuild.config</span><o:p></o:p></div><div style="margin: 0in; font-size: 12pt; font-family: Aptos, sans-serif;"><span style="font-family: "Courier New";"> File "/c/gcdev64/src/jhbuild.git/jhbuild/config.py", line 31, in <module></span><o:p></o:p></div><div style="margin: 0in; font-size: 12pt; font-family: Aptos, sans-serif;"><span style="font-family: "Courier New";"> from jhbuild.environment import setup_env, setup_env_defaults, addpath</span><o:p></o:p></div><div style="margin: 0in; font-size: 12pt; font-family: Aptos, sans-serif;"><span style="font-family: "Courier New";"> File "/c/gcdev64/src/jhbuild.git/jhbuild/environment.py", line 24, in <module></span><o:p></o:p></div><div style="margin: 0in; font-size: 12pt; font-family: Aptos, sans-serif;"><span style="font-family: "Courier New";"> from distutils.sysconfig import get_python_lib</span><o:p></o:p></div><div style="margin: 0in; font-size: 12pt; font-family: Aptos, sans-serif;"><span style="font-family: "Courier New";">ModuleNotFoundError: No module named 'distutils'</span><o:p></o:p></div><div style="margin: 0in; font-size: 12pt; font-family: Aptos, sans-serif;"><span style="font-family: "Courier New";"> </span><o:p></o:p></div><div style="margin: 0in; font-size: 12pt; font-family: Aptos, sans-serif;"><span style="font-family: "Courier New";">Kevin@Kevin-PC MINGW32 /c/gcdev64/src/gnucash-on-windows.git</span><o:p></o:p></div><div style="margin: 0in; font-size: 12pt; font-family: Aptos, sans-serif;"><span style="font-family: "Courier New";">$ python --version</span><o:p></o:p></div><div style="margin: 0in; font-size: 12pt; font-family: Aptos, sans-serif;"><span style="font-family: "Courier New";">Python 3.11.10</span><o:p></o:p></div></blockquote><div style="margin: 0in; font-size: 12pt; font-family: Aptos, sans-serif;"> <o:p></o:p></div></div></div><div style="margin: 0in; font-size: 12pt; font-family: Aptos, sans-serif;">_______________________________________________<br>gnucash-devel mailing list<br><a href="mailto:gnucash-devel@gnucash.org" target="_blank" style="color: blue; text-decoration: underline;">gnucash-devel@gnucash.org</a><br><a href="https://lists.gnucash.org/mailman/listinfo/gnucash-devel" target="_blank" style="color: blue; text-decoration: underline;">https://lists.gnucash.org/mailman/listinfo/gnucash-devel</a><o:p></o:p></div></div></blockquote></div></div><span style="caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 11px; font-style: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none; float: none; display: inline !important;">_______________________________________________</span><br style="caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 11px; font-style: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none;"><span style="caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 11px; font-style: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none; float: none; display: inline !important;">gnucash-devel mailing list</span><br style="caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 11px; font-style: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none;"><span style="caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 11px; font-style: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none; float: none; display: inline !important;">gnucash-devel@gnucash.org</span><br style="caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 11px; font-style: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none;"><span style="caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 11px; font-style: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none; float: none; display: inline !important;">https://lists.gnucash.org/mailman/listinfo/gnucash-devel</span></div></blockquote></div><br></div></body></html>