FeatureNotEnabledError: The API call images.Transform() is currently not enabled.

89 views
Skip to first unread message

Zengyang Wang

unread,
Nov 5, 2015, 6:14:59 PM11/5/15
to Google App Engine
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).

Nickolas Daskalou

unread,
Nov 5, 2015, 8:24:12 PM11/5/15
to Google App Engine
Hi Zengyang,

We had the same problem (I created the other question you linked to).

We also had PIL installed and some tinkering did not help, so we switched the module back to classic App Engine long before it took Google Support one month to reply back to me.

If you get it working, please let me know how!

Nick


--
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 google-appengi...@googlegroups.com.
To post to this group, send email to google-a...@googlegroups.com.
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/b8a2bdf1-6609-4868-858d-c1d896ec396b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Nickolas Daskalou

unread,
Nov 5, 2015, 8:30:03 PM11/5/15
to Google App Engine
Also FYI, we run some image manipulations for ImageResizer.io on the classic App Engine module, and others (like image blur) on the managed VM module.

The classic App Engine module receives the image transformation request from the client, and depending on what image manipulation was requested, decides when to route it internally to the managed VM module.

It is not an ideal solution but it is working for us.

Having the managed VM being able to access App Engine's image service would definitely simplify our implementation.

Nick

Adam

unread,
Nov 6, 2015, 7:07:06 PM11/6/15
to Google App Engine
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

Reply all
Reply to author
Forward
0 new messages