Composer Error

I am installing a new install of everything (trellis, bedrock, roots) with all the dependencies up to date. I get the following error when I run vagrant up [WARNING]: - composer was NOT installed successfully: Could not process data
from the API server (https://galaxy.ansible.com/api/): the JSON object must be
str, not ‘bytes’

    ERROR! - you can use --ignore-errors to skip failed roles and finish processing the list.
    Ansible failed to complete successfully. Any error output should be
    visible above. Please fix these errors and try again.

The first couple google results I see (one, two) when I search the error suggest this issue can occur when using python 3 with Ansible, and the fix is to use some version of python 2. Fingers crossed…

1 Like

I was pretty sure I had python 2.7 installed but once again I did not. I now have both versions.

1 Like