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

bin/pycheckers.py script fails if no python is available #58

Open
lbolla opened this issue Dec 9, 2020 · 2 comments
Open

bin/pycheckers.py script fails if no python is available #58

lbolla opened this issue Dec 9, 2020 · 2 comments

Comments

@lbolla
Copy link
Contributor

lbolla commented Dec 9, 2020

On Ubuntu 20.04 a "python" executable is not available. Instead, "python3" is, by default.
Therefore, bin/pycheckers.py, which uses the preamble:

#!/usr/bin/env python

fails on new Ubuntu installations.
Manually amending it works.
People may be reluctant to mess with system-wide Python installations and create a "python" executable (symlink to python3), for fear of breaking their system.
What is the recommended way of handling this problem?

@rpgoldman
Copy link
Contributor

rpgoldman commented Dec 9, 2020

Would it be possible to do the equivalent of

EXPORT python=/usr/local/bin/python3

in your Emacs to make this work?

Alternatively, couldn't you work in a virtual environment with the local python being python3? Then if emacs uses the right virtual environment the scripts will work.

@lbolla
Copy link
Contributor Author

lbolla commented Dec 9, 2020

@rpgoldman I guess I can. In fact, I use pyvenv-workon to select a virtualenv for each project: at that point, "python" points to whatever Python executable the venv is using, either v2 or v3. So, this is not a big problem if using pyvenv.
The bug is mostly about user friendliness, I guess.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants