If the project is not specified, the “gcloud …” commands use the default project. You obviously figured out how to fix the issue. To avoid repeating the
-- project parameter, you can set the default project as follows:
gcloud config set project YOUR_PROJECT_ID
As for the second error, it must be because your source file is not UTF-8 encoded. I tried non-ASCII author names on purpose, to make sure it works with all authors. Cloning the gist/git repo should get you the BOM UTF-8 Python file. Or, adding
# -*- coding: utf-8 -*- as the first line of the Python source code should fix the error (I will try).
Thanks for pointing out the potential errors. I have edited the article accordingly.