jueves, 22 de abril de 2010

Bug using Pyamf with Google App Engine templates

It seems that Pyamf conflicts with the Google App Engine template library.
You may have this error loading a template:

AttributeError: 'module' object has no attribute 'defaulttags'

Perhaps Pyamf includes an older version of Django library .
To workaround write the imports in this order:

from google.appengine.ext.webapp import template
from pyamf.remoting.gateway.google import WebAppGateway

It seems odd but the problem disappears.

2 comentarios:

  1. What version of PyAMF are you using? The custom import code of PyAMF had a few issues in 0.4.x but were (should be) resolved in 0.5.x.

    Thanks!

    Nick

    ResponderEliminar
  2. I am using the @version: 0.5.1.
    Google AppEngine derived the framework from Djago 0.96
    Cheers

    ResponderEliminar