File "/Applications/devtools/google-cloud-sdk/platform/google_appengine/_php_runtime.py", line 103, in <module>

_run_file(__file__, globals())

File "/Applications/devtools/google-cloud-sdk/platform/google_appengine/_php_runtime.py", line 97, in _run_file

execfile(_PATHS.script_file(script_name), globals_)

File "/Applications/devtools/google-cloud-sdk/platform/google_appengine/google/appengine/tools/devappserver2/php/runtime/runtime.py", line 39, in <module>

from google.appengine.tools.devappserver2 import wsgi_server

File "/Applications/devtools/google-cloud-sdk/platform/google_appengine/google/appengine/tools/devappserver2/wsgi_server.py", line 34, in <module>

import ipaddr

ImportError: No module named ipaddr

Running `gcloud version` gave these results...

gcloud version

Google Cloud SDK 184.0.0

app-engine-python 1.9.65

beta 2017.09.15

bq 2.0.28

core 2018.01.05

gcloud

gsutil 4.28

As the error suggested the ipaddr module file was missing from the google-cloud-sdk/platform/google_appengine directory. The fix was to get a copy of this file from google's GitHub repository manually.