Force usage of Python 3#17
Conversation
|
Thanks for the pr! What do you think? |
Newer Debian versions only have Python 3 installed out-of-the-box: So the shebang currently in this script doesn't work properly. Since Python 2 is EOL and everyone should be migrating to Python 3, IMO it makes sense to change the shebang to hard-code |
|
Just found this because even though latest Ubuntu has python2.7 they took out the python-requests 2.7 package...couldn't figure out if/how to make this run with python3 so I had to do a hacky fix to the imports :/ |
This can be solved by installing the |
|
|
closes: |
|
To chime in a little, debian based distro's (Ubuntu, et. al), consider "python" to mean python 2 and "python3" to mean python 3. Ubuntu and derivatives do have "python-is-python3" that can be installed, and any system using pyenv for python has both pointing at python3. However, for rhel based systems, debian based systems, alpine systems: defaulting the shebang to "env python3", will help this script work out of the box for new users. |
|
You can also check out https://github.com/maddes-b/acme-dns-client-2 |
On Debian10,
pythonautomatically points to Python 2.Fixes #14 as well.