Hi,
I had looked through the entire forum for my problem, but all of them
did not address it totally. Desperately needed help. Below is my
simple app.

import wsgiref.handlers
from google.appengine.ext import webapp
from google.appengine.api import users
import atom.url
import gdata.service
import gdata.alt.appengine
import gdata.photos.service
import gdata.media
import gdata.urlfetch

class Fetcher(webapp.RequestHandler):

 def get(self):

   client = gdata.photos.service.PhotosService()
   gdata.alt.appengine.run_on_appengine(client)

   albums = client.GetUserFeed(user='castwind')
   for album in albums.entry:
     print 'title: %s, number of photos: %s, id: %s' %
(album.title.text,

album.numphotos.text, album.gphoto_id.text)


When I run the code on http://localhost:8080/
I saw the following error

 File "C:\Python26\lib\xml\etree\ElementTree.py", line 962, in XML
   parser = XMLTreeBuilder()
 File "C:\Python26\lib\xml\etree\ElementTree.py", line 1118, in
__init__
   "No module named expat; use SimpleXMLTreeBuilder instead"
ImportError: No module named expat; use SimpleXMLTreeBuilder instead

Jeff mentioned that he missed the import for the non-c version of
ElementTree throughout the gdata-python-client library and he had
fixed them in several places. And since my version  is 1.2.2, I
guessed that it not the source of the my problem. I think the problem
lies with xml.etree.ElementTree (line 1114) when it tried to import
expat

try:
           from xml.parsers import expat
       except ImportError:
           raise ImportError(
               "No module named expat; use SimpleXMLTreeBuilder
instead"
               )

I had tried many workarounds but all are not working. =( Please
help....

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google Picasa Web Albums API" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Picasa-Data-API?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to