Bug 111023

Summary: build regression: ERROR: <ExternalProgram 'python3' -> ['/usr/bin/python3']> is not a valid python
Product: Mesa Reporter: Fabio Pedretti <pedretti.fabio>
Component: Mesa coreAssignee: mesa-dev
Status: RESOLVED NOTOURBUG QA Contact: mesa-dev
Severity: normal    
Priority: medium CC: vlee
Version: git   
Hardware: All   
OS: Linux (All)   
Whiteboard:
i915 platform: i915 features:

Description Fabio Pedretti 2019-06-29 13:13:50 UTC
After b120a02b21791ef9898dd342af8102ec9f4d36d9 - meson: Improve detection of Python when using Meson >=0.50. I get this error:


WARNING: Project targetting '>= 0.45' but tried to use feature introduced in '0.46.0': Python Module
Program python3 found: YES (/usr/bin/python3)

meson.build:750:2: ERROR: <ExternalProgram 'python3' -> ['/usr/bin/python3']> is not a valid python

Full build log here: https://launchpadlibrarian.net/431045846/buildlog_ubuntu-eoan-amd64.mesa_19.2~git1906290730.02c6cd~oibaf~e_BUILDING.txt.gz
Comment 1 Sergii Romantsov 2019-07-01 12:34:36 UTC
Hello, Fabia.
Seems its meson-issue: https://github.com/mesonbuild/meson/issues/5422
Please, try to install package python3-distutils (at least on Ubuntu)
Comment 2 Fabio Pedretti 2019-07-01 13:03:03 UTC
Indeed, with it it compiles, thanks.
Comment 3 Eric Engestrom 2019-07-19 23:29:38 UTC
*** Bug 111175 has been marked as a duplicate of this bug. ***

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.