Hi Zengyang, Currently the Images API is not available on the Managed VM runtime. Right now only the following services are supported [1]:
* Datastore * Logging * Memcache * Search * Task Queue * URL Fetch * Users The PIL library is independent of the Images API, so installing it would not affect any of those API calls [2], however you may find some functionality available in PIL that can replace the Images API. Another option as Nick suggested is to use a classic App Engine module and communicate with it over REST with your main application. Adam [1] https://cloud.google.com/appengine/docs/python/managed-vms [2] https://cloud.google.com/appengine/docs/python/refdocs/google.appengine.api.images On Thursday, November 5, 2015 at 6:14:59 PM UTC-5, Zengyang Wang wrote: > > After switching to a Managed VM, calls to the Image API are now broken: > > E 16:35:47.227 The API call images.Transform() is currently not enabled. > Traceback (most recent call last): > File "/home/vmagent/python_vm_runtime/lib/webapp2-2.5.2/webapp2.py", > line 570, in dispatch > return method(*args, **kwargs) > ... > > File > "/home/vmagent/python_vm_runtime/google/appengine/api/images/__init__.py", > line 800, in execute_transforms > return rpc.get_result() > File > "/home/vmagent/python_vm_runtime/google/appengine/api/apiproxy_stub_map.py", > line 613, in get_result > return self.__get_result_hook(self) > File > "/home/vmagent/python_vm_runtime/google/appengine/api/images/__init__.py", > line 885, in execute_transforms_hook > rpc.check_success() > File > "/home/vmagent/python_vm_runtime/google/appengine/api/apiproxy_stub_map.py", > line 579, in check_success > self.__rpc.CheckSuccess() > File > "/home/vmagent/python_vm_runtime/google/appengine/ext/vmruntime/vmstub.py", > line 321, in _WaitImpl > raise self._TranslateToError(parsed_response) > File > "/home/vmagent/python_vm_runtime/google/appengine/ext/vmruntime/vmstub.py", > line 174, in _TranslateToError > raise self._ErrorException(exception_type, msg) > FeatureNotEnabledError: The API call images.Transform() is currently > not enabled. > > I've tried installing PIL properly as per > https://groups.google.com/forum/#!topic/google-appengine/KgCZa1pb7FA but > it didn't help. This only happens in the Managed VM environment, and I'm > having trouble debugging it. Does anyone have a solution for this problem? > I'm using the python runtime (gcr.io/google_appengine/python-compat). > -- You received this message because you are subscribed to the Google Groups "Google App Engine" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/google-appengine. To view this discussion on the web visit https://groups.google.com/d/msgid/google-appengine/987cef44-a5c1-496c-8bbd-066447707262%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
