./x.py build
fails on Debian testing (Bullseye) due to missing /usr/bin/python
#84306
Labels
C-bug
Category: This is a bug.
Debian has removed
/usr/bin/python
due to deprecation of Python2. To quote https://wiki.debian.org/Python:I tried this code:
I expected to see this happen: Build successfully executed.
Instead, this happened: /usr/bin/python cannot be found.
This can be solved by installing either
python-is-python2
orpython-is-python3
as suggested by the Debian wiki page.There are other scripts in tree which use
#!/usr/bin/env python
. I think it would be good to either fix these scripts to explicitly use a version of Python or document Debian's behaviour somewhere.The text was updated successfully, but these errors were encountered: