GnuCash Windows Build Help
John Ralls
jralls at ceridwen.us
Thu Nov 7 12:24:10 EST 2024
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 <kbsanders at 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 at 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 at Kevin-PC MINGW32 /c/gcdev64/src/gnucash-on-windows.git
> $ python --version
> Python 3.11.10
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.gnucash.org/pipermail/gnucash-devel/attachments/20241107/74f511da/attachment.htm>
More information about the gnucash-devel
mailing list