I want to write down all current urls for images that I store using appengine. However, when using the appengine remote_api_shell.py console, I cannot use the get_serving_url function even if my PIL is configured correctly on my local machine.
>>> c.image_blob <google.appengine.ext.blobstore.blobstore.BlobInfo object at 0x16f0150> >>> from google.appengine.api.images import get_serving_url >>> get_serving_url(c.image_blob) Traceback (most recent call last): File "<console>", line 1, in <module> File "/Applications/GoogleAppEngineLauncher.app/Contents/Resources/GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/google/appengine/api/images/__init__.py", line 1231, in get_serving_url response) File "/Applications/GoogleAppEngineLauncher.app/Contents/Resources/GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/google/appengine/api/apiproxy_stub_map.py", line 94, in MakeSyncCall return stubmap.MakeSyncCall(service, call, request, response) File "/Applications/GoogleAppEngineLauncher.app/Contents/Resources/GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/google/appengine/api/apiproxy_stub_map.py", line 308, in MakeSyncCall rpc.CheckSuccess() File "/Applications/GoogleAppEngineLauncher.app/Contents/Resources/GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/google/appengine/api/apiproxy_rpc.py", line 156, in _WaitImpl self.request, self.response) File "/Applications/GoogleAppEngineLauncher.app/Contents/Resources/GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/google/appengine/ext/remote_api/remote_api_stub.py", line 178, in MakeSyncCall self._MakeRealSyncCall(service, call, request, response) File "/Applications/GoogleAppEngineLauncher.app/Contents/Resources/GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/google/appengine/ext/remote_api/remote_api_stub.py", line 198, in _MakeRealSyncCall raise pickle.loads(response_pb.exception()) CallNotFoundError
At the moment, I just pretended to do the dirty work for me on the machines for creating applications, but I feel that there should be a way through the console to call the get_serving_url function.
source share