-
Notifications
You must be signed in to change notification settings - Fork 12
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
sixdb is python3-only, but tests for 2.6 #37
Comments
SixDeskDB has been ported to Python 3, but there are still some inconsistencies left. Is it recommendable to always use /usr/bin/env python3 in the long term? It seems that recent ubuntu and fedora have python2 and python3 and not python, right? |
https://www.python.org/dev/peps/pep-0394/ confirms the complicated situation. Still
In addition https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3 says
|
Thanks for the update. Centos8 no longer has Please note that |
Do you know if linux distributions will always provide a python3 executable? |
@rdemaria it is really up to them, but I would say that currently the all major distros do provide both a Ciao! |
Thanks @dpellegr ! I think then I will default the script to python3.... |
Just for completeness: This will not help, I think. As far as I can see it's the |
Actually since Ubuntu 20.04 there is no |
Not only that. Even though you can give it a python path Edit: It is not ignored... but simply overwritten later
Edit2: on lxplus |
Maybe new issue but related to that file:
Line 355 in d4a3eaa
Line 429 in d4a3eaa
Line 432 in d4a3eaa
|
The formatted
print(..%..)
statements insixdb
are python3-only, but the script is being invoked with#! /usr/bin/env python
(i.e defaults to python2), and contains an explicit version check for "2.6 or above".With python2, this gives
Either the formatted
print()
should be redone:, or the script should declare itself to be for python3-only?
The text was updated successfully, but these errors were encountered: