View Single Post
Old 04-27-2018, 10:28 PM   #3
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 45,455
Karma: 27757438
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
The installer works fine with either python2 or python3. If Ubuntu is really releasing with no /usr/bin/python that is a bug in Ubuntu. They should have a python symlinked to python3 by default if they want to make python3 the default python. Otherwise there is no way to run scripts (like the installer) that are compatible with both python2 and python3.

Quoting https://www.python.org/dev/peps/pep-0394/
Quote:
One exception to this is scripts that are deliberately written to be source compatible with both Python 2.x and 3.x. Such scripts may continue to use python on their shebang line without affecting their portability.
Of course given how generally broken packages in Ubuntu are, chances are they wont fix this, so I will have to figure out some workaround specially for them. The number of Ubuntu specific workarounds in calibre is not funny.
kovidgoyal is online now   Reply With Quote