Trellis does not yet support Python 3.6.4

For those who need to do something in an old trellis install (and don’t want to deal with updating it), on OS X, Python 2.7 can be installed via Homebrew with:

brew install https://raw.githubusercontent.com/Homebrew/homebrew-core/86a44a0a552c673a05f11018459c9f5faae3becc/Formula/python@2.rb

(NOTE: Scott suggests, here, that provisioning a new server as a good practice, when there have been significant (“breaking”) changes, such as upgrades to php.)

If source /usr/local/bin/virtualenvwrapper.sh script is returning an error:

Usage:   
  pip <command> [options]

no such option: -m
virtualenvwrapper.sh: There was a problem running the initialization hooks.

If Python could not import the module virtualenvwrapper.hook_loader,
check that virtualenvwrapper has been installed for
VIRTUALENVWRAPPER_PYTHON=/usr/local/bin/pip and that PATH is
set properly.

Fix is to add the following line to /.bashrc (or .bash_profile), before setting the VIRTUALENVWRAPPER_PYTHON variable::

export VIRTUALENVWRAPPER_PYTHON=/usr/local/bin/python # for brew installed python

I’m not sure what the best way to figure out which version of Ansible you need for your version of Trellis is. If it’s too old, Trellis will tell you. I guess you can also look at trellis/plugins/vars/version.py and see what version_requirement is.