I just upgraded GCloud and now I can't start my dev-env.
gcloud --version
I don't understand these errors ... all feedback appreciated!
WARNING 2019-03-13 20:38:17,348 multistore_file.py:62] The oauth2client.contrib.multistore_file module has been deprecated and will be removed in the next release of oauth2client. Please migrate to multiprocess_file_storage.
ERROR 2019-03-13 20:38:17,586 wsgi.py:263]
Traceback (most recent call last):
File "/Users/dgaedcke/gcloud_tools/google-cloud-sdk/platform/google_appengine/google/appengine/runtime/wsgi.py", line 240, in Handle
handler = _config_handle.add_wsgi_middleware(self._LoadHandler())
File "/Users/dgaedcke/gcloud_tools/google-cloud-sdk/platform/google_appengine/google/appengine/runtime/wsgi.py", line 299, in _LoadHandler
handler, path, err = LoadObject(self._handler)
File "/Users/dgaedcke/gcloud_tools/google-cloud-sdk/platform/google_appengine/google/appengine/runtime/wsgi.py", line 96, in LoadObject
__import__(cumulative_path)
File "/Users/dgaedcke/dev/TouchstoneMicroservices/svcAdminApi/main.py", line 8, in <module>
import endpoints as google_cloud_endpoints
File "/Users/dgaedcke/dev/TouchstoneMicroservices/lib/endpoints/__init__.py", line 33, in <module>
from .apiserving import *
File "/Users/dgaedcke/dev/TouchstoneMicroservices/lib/endpoints/apiserving.py", line 77, in <module>
from . import endpoints_dispatcher
File "/Users/dgaedcke/dev/TouchstoneMicroservices/lib/endpoints/endpoints_dispatcher.py", line 36, in <module>
import pkg_resources
File "/Users/dgaedcke/dev/TouchstoneMicroservices/lib/pkg_resources/__init__.py", line 959, in <module>
class Environment:
File "/Users/dgaedcke/dev/TouchstoneMicroservices/lib/pkg_resources/__init__.py", line 963, in Environment
self, search_path=None, platform=get_supported_platform(),
File "/Users/dgaedcke/dev/TouchstoneMicroservices/lib/pkg_resources/__init__.py", line 190, in get_supported_platform
plat = get_build_platform()
File "/Users/dgaedcke/dev/TouchstoneMicroservices/lib/pkg_resources/__init__.py", line 398, in get_build_platform
version = _macosx_vers()
File "/Users/dgaedcke/dev/TouchstoneMicroservices/lib/pkg_resources/__init__.py", line 369, in _macosx_vers
version = platform.mac_ver()[0]
File "/usr/local/Cellar/python@2/2.7.15_1/Frameworks/Python.framework/Versions/2.7/lib/python2.7/platform.py", line 764, in mac_ver
info = _mac_ver_xml()
File "/usr/local/Cellar/python@2/2.7.15_1/Frameworks/Python.framework/Versions/2.7/lib/python2.7/platform.py", line 741, in _mac_ver_xml
pl = plistlib.readPlist(fn)
File "/usr/local/Cellar/python@2/2.7.15_1/Frameworks/Python.framework/Versions/2.7/lib/python2.7/plistlib.py", line 75, in readPlist
pathOrFile = open(pathOrFile)
File "/Users/dgaedcke/gcloud_tools/google-cloud-sdk/platform/google_appengine/google/appengine/tools/devappserver2/python/runtime/stubs.py", line 283, in __init__
raise IOError(errno.EACCES, 'file not accessible', filename)
IOError: [Errno 13] file not accessible: '/System/Library/CoreServices/SystemVersion.plist'
INFO 2019-03-13 20:38:17,610 module.py:861] adminapi: "GET /index HTTP/1.1" 500 -
How Python versioning works. You can create environments based on Python 2 and Python 3 in the same Google Cloud project. Each environment can use only one major Python version: Python 2 or Python 3. You can specify the major Python version when you create a new Cloud Composer environment.
Google Cloud lets you choose the best environment to run your Python applications, with options for serverless, Kubernetes, VMs, or custom hardware.
For Windows installations, execute the uninstaller.exe file in your gcloud CLI directory. Delete both of these directories. Additionally, remove lines sourcing completion. bash.
If you already have the gcloud CLI installed and initialized, run the gcloud components update command to update to the latest release. By downloading, you agree to be bound by the Terms that govern use of the gcloud CLI for App Engine.
Google was notified about this case: https://issuetracker.google.com/issues/132240370
Please, star this issue if you also have this problem.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With