Failed to build babl using pip install meson

195 views
Skip to first unread message

Nobody

unread,
Sep 5, 2020, 12:49:06 PM9/5/20
to The Meson Build System


Hi, all:

I'm trying to build http://gegl.org/babl/  with meson. And I just followed the Quick Start at https://mesonbuild.com/Quick-guide.html, but failed with the following ERROR message:

 babl git:(master) DESTDIR=/usr/local meson install -C builddir
ninja
: Entering directory `builddir'
[1/73] Generating git-version.h with a custom command
Installation failed due to insufficient permissions.
Attempting to use polkit to gain elevated privileges...
Traceback (most recent call last):
  File "~/.local/bin/meson", line 5, in <module>
    from mesonbuild.mesonmain import main
ModuleNotFoundError: No module named 'mesonbuild'




And my meson is as:

 babl git:(master) meson --version
0.55.1
 babl git:(master) whereis meson
meson
: ~/.local/bin/meson


Can anybody give me a hand please?

Thank you ...

Dan Kegel

unread,
Sep 5, 2020, 1:13:16 PM9/5/20
to Nobody, The Meson Build System
You may have multiple copies of parts of the python ecosystem
installed, stepping on each others' toes.
Try something like
mv ~/.local ~/.local.bak
pip install meson
to clean out the cruft. And/or 'sudo apt remove meson', maybe.

Of course, this will hide anything you installed earlier with pip...
but I do love a clean slate :-)
There are probably better ways to do this, but that's mine.
And you can bring back your old .local after the test with
mv ~/.local ~/.local.small
mv ~/.local.bak ~/.local
- Dan
> --
> You received this message because you are subscribed to the Google Groups "The Meson Build System" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to mesonbuild+...@googlegroups.com.
> To view this discussion on the web, visit https://groups.google.com/d/msgid/mesonbuild/62a920cd-6b01-464d-ae86-8270c5c03c04o%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages