When using the tab key to auto complete I am getting this error "COMP_WORDS: bad array subscript"
here is a related(old) bug on ubuntu; https://bugs.launchpad.net/ubuntu/+source/bash-completion/+bug/745767
like the above bug I am using the full path of the python executable as I am using a virtual env.