Created attachment 195184[details]
patch to FreeBSD's ports
To use FreeBSD in the Google Cloud Engine, you need the agent provided by the package py27-google-compute-engine installed. That package has wrongly set the default shell as bash and the minimum image of FreeBSD doesn't have it installed so python commands fail when executing subprocess.Popen calls as it requests a shell that doesn't exist.
The simple fix in attachment solves the issue by replacing the default shell to be /bin/sh