Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

./x.py build fails on Debian testing (Bullseye) due to missing /usr/bin/python #84306

Closed
liuw opened this issue Apr 18, 2021 · 1 comment
Closed
Labels
C-bug Category: This is a bug.

Comments

@liuw
Copy link
Contributor

liuw commented Apr 18, 2021

Debian has removed /usr/bin/python due to deprecation of Python2. To quote https://wiki.debian.org/Python:

NOTE: Debian testing (bullseye) has removed the "python" package and the '/usr/bin/python' symlink
due to the deprecation of Python 2. No packaged scripts should depend on the existence of '/usr/bin/python': if they do,
that is a bug that should be reported to Debian. You can use the 'python-is-python3' or 'python-is-python2'
packages to restore an appropriate '/usr/bin/python' symlink for third-party or legacy scripts.

I tried this code:

./x.py build

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 or python-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.

@liuw liuw added the C-bug Category: This is a bug. label Apr 18, 2021
@jyn514
Copy link
Member

jyn514 commented Apr 18, 2021

Duplicate of #71818. Note that rustbuild is compatible with both python2 and python3 (although some features, like download-ci-llvm, only work with python3).

@jyn514 jyn514 closed this as completed Apr 18, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-bug Category: This is a bug.
Projects
None yet
Development

No branches or pull requests

2 participants