Mostrando entradas con la etiqueta Bugs. Mostrar todas las entradas
Mostrando entradas con la etiqueta Bugs. Mostrar todas las entradas

sábado, 1 de mayo de 2010

Bug in Picasa web album python client library

I write it here because I did not find any clear resource on the web.

I have found an error executing the first line of code in the API documentation (after the authentication section) of Picasa python library:

try to get the albums:
albums =  self.gd_client.GetUserFeed().entry

this code:
def AnyFeedFromString(xml_string):
   tree = ElementTree.fromstring(xml_string)

fire:
 tree = ElementTree.fromstring(xml_string)
  File "", line 85, in XML
SyntaxError: syntax error: line 1, column 0



Workaround:
Some problems with SSL:
self.gd_client.ssl = False

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.