Error compiling libmbim package on 22.03 - glib2 - is not a valid python or it is missing distutils

Anyone can provide some assistance on this?

Program python3 found: YES (/home/build/build_dir/staging_dir/host/bin/python3)
../../../build_dir/build_dir/target-x86_64_musl/glib-2.70.5/ ERROR: <PythonExternalProgram 'python3' -> ['/home/build/build_dir/staging_dir/host/bin/python3']> is not a valid python or it is missing distutils
A full log can be found at /home/build/build_dir/build_dir/target-x86_64_musl/glib-2.70.5/openwrt-build/meson-logs/meson-log.txt
make[2]: Leaving directory '/home/build/openwrt_packages/libs/glib2'
make[2]: *** [Makefile:129: /home/build/build_dir/build_dir/target-x86_64_musl/glib-2.70.5/.configured_efb2d3cf01c707184fb77fd0fe149f94] Error 1
time: package/feeds/packages/glib2/compile#14.67#9.07#20.70
    ERROR: package/feeds/packages/glib2 failed to build.
make[1]: *** [package/Makefile:116: package/feeds/packages/glib2/compile] Error 1
make[1]: Leaving directory '/home/build/build_dir'
make: *** [/home/build/build_dir/include/ package/libmbim/compile] Error 2

I have these installed on the build env.

apk add docker-compose curl unzip git gzip subversion tree meson ninja alpine-sdk glib-dev bash-completion gobject-introspection-dev python3-dev cmake libgudev-dev eudev-dev help2man argp-standalone asciidoc bash bc binutils bzip2 cdrkit coreutils diffutils elfutils-dev findutils flex fts-dev g++ gawk gcc gettext grep intltool libxslt linux-headers make musl-obstack-dev ncurses-dev openssl-dev patch perl rsync tar util-linux wget zlib-dev py3-distutils-extra py3-distlib py3-py

Anyone has any suggestions on this?

You need to install the following


as per

This helped in my case.

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.