Re: Problem building mm-common on MSYS2
- From: Kjell Ahlstedt <kjellahlstedt gmail com>
- To: Oliver Niebuhr <googleersatz oliverniebuhr de>
- Cc: gtkmm-list <gtkmm-list gnome org>
- Subject: Re: Problem building mm-common on MSYS2
- Date: Wed, 14 Apr 2021 10:41:00 +0200
On 2021-04-14 08:11, Oliver Niebuhr wrote:
/util/meson_aux/extra-install-cmd.py
C:/Dev/Sources/GTK4/mmcommon/x64/debug/share/aclocal'
--- stdout ---
--- stderr ---
Traceback (most recent call last):
File "C:/Dev/MMCommonSrc/util/meson_aux/extra-install-cmd.py", line
17, in <module>
result = subprocess.run(['aclocal', '--print-ac-dir'],
FileNotFoundError: [WinError 2] The system cannot find the file specified
The installation of mm-common fails on line 17 of extra-install-cmd.py.
I don't understand what the error message refers to ("the file
specified"). extra-install-cmd.py is a very simple Python script that
just prints a warning, if appropriate. The failing Python command is
result = subprocess.run(['aclocal', '--print-ac-dir'],
stdout=subprocess.PIPE,
stderr=subprocess.DEVNULL,
universal_newlines=True)
It would be fine if you could make some tests on your system. Run
extra-install-cmd.py directly from the command line. It requires an
argument, but the argument can be anything. It's just part of the
warning that the script is supposed to print.
You will probably get the same FileNotFoundError again. Then try
changing the script. Change the subprocess.run() command to
result = subprocess.run(['aclocal', '--print-ac-dir'],
capture_output=True,
universal_newlines=True)
That would be an acceptable change that I can make in mm-common. I just
don't understand why it would be necessary.
If capture_output=True also fails, you can try
result = subprocess.run(['aclocal', '--print-ac-dir'],
universal_newlines=True)
just to see what happens.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]