Devappserver.py For App Engine Std On Localhost Is Clearing Os.uname & Crashing In Ctypes
I have foolishly reinstalled all my Python 2.7 dependencies and it's broken something. If you notice on line 1, os.uname() has a valid value, but by the time GAE calls ctypes modu
Solution 1:
attrs
hasn't been using ctypes since 19.2.0, so the solution is to get your dependencies somehow updated.
Solution 2:
Try editing the stubs file located within the devappserver2/python/runtime.
google_appengine/google/appengine/tools/devappserver2/python/runtime/stubs.py
From:
deffake_uname():
"""Fake version of os.uname."""return ('Linux', '', '', '', '')
To:
deffake_uname():
"""Fake version of os.uname."""return ('Linux', 'local', '19', 'Darwin Kernel Version 19', 'x86_64')
It isn’t a great long term solution because updates to the gcloud tool chain will likely wipe out the changes.
Post a Comment for "Devappserver.py For App Engine Std On Localhost Is Clearing Os.uname & Crashing In Ctypes"