I have been trying all kinds of ways to resolve this buildozer crash that fails to create the toolchain. I cannot find how to fix this problem online and tried to resolve it by looking at the attached Setup.local file that I believe is referenced in the STDOUT error listed below. I don't see where the invalid command code M materializes. I also specifically installed OpenSSL based on another forum suggestions. Buildozer is on a macOSX 10.11.6. This request is related to https://groups.google.com/forum/#!topic/kivy-users/p1jKDtuyYXs. Any suggestions are greatly appreciated.
RAN: '/usr/bin/sed -i s#^SSL=.*#SSL=/Users/fgould/ViewPix/Slideshow/.buildozer/android/platform/build/build/other_builds/openssl/armeabi-v7a/openssl# Modules/Setup.local'
STDOUT:
sed: 1: "Modules/Setup.local": invalid command code M
STDERR:
# Command failed: python -m pythonforandroid.toolchain create