Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Gcloud update broke my app -- GCP Python 2.7

I just upgraded GCloud and now I can't start my dev-env.

gcloud --version

  • Google Cloud SDK 238.0.0
  • app-engine-go
  • app-engine-python 1.9.84
  • app-engine-python-extras 1.9.74 beta 2019.02.22
  • bq 2.0.42
  • cloud-datastore-emulator 2.1.0
  • core 2019.03.08
  • gsutil 4.37

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 -
like image 986
Dewey Avatar asked Mar 13 '19 20:03

Dewey


People also ask

What version of Python does Google cloud use?

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.

Does GCp support Python?

Google Cloud lets you choose the best environment to run your Python applications, with options for serverless, Kubernetes, VMs, or custom hardware.

How do I remove gcloud SDK?

For Windows installations, execute the uninstaller.exe file in your gcloud CLI directory. Delete both of these directories. Additionally, remove lines sourcing completion. bash.

What command should you execute to ensure the App Engine Python components of Cloud SDK are installed and up to date?

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.


1 Answers

Google was notified about this case: https://issuetracker.google.com/issues/132240370

Please, star this issue if you also have this problem.

like image 135
mr.radzio Avatar answered Oct 02 '22 14:10

mr.radzio