Description
On basic Ubuntu16 installs, by default there is nothing linked to 'python' (tested on both a vagrant VM and an EC2 Ubuntu16 install).
The following python binaries are installed by default:
$ ls /usr/bin/py*
|
/usr/bin/py3clean /usr/bin/py3versions /usr/bin/pydoc3 /usr/bin/pygettext3 /usr/bin/python3 /usr/bin/python3.5m /usr/bin/python3-jsonpatch /usr/bin/python3m
|
/usr/bin/py3compile /usr/bin/pybuild /usr/bin/pydoc3.5 /usr/bin/pygettext3.5 /usr/bin/python3.5 /usr/bin/python3-jsondiff /usr/bin/python3-jsonpointer
|
Ubuntu16 took the decision to not symlink python3 to python (as this would break a lot of existing tools), although in future releases (perhaps 18) they will do this.
Python2 is not even installed at all, although it is available as an apt package.
All of our python tools use '/usr/bin/env python' (system python) to run, below are a notable few:
- cbcollect_info
- cbbackup
- cbrestore
- cbstats
- couchbase_cli
These tools are therefore completely useless by default.
Unfortunately the existing code will not work with python3, so we need a way of ensuring that python2 is installed for these platforms.
I guess in future we'd have to work towards converting all of these tools to Python3 too, although that's probably a way off yet.