This sounds like a version conflict issue. In GData v1, you had to specifiy the current versionid with the edit link. Requesting a photo entry would conveniently add it to the edit link element. In Gdata v2, we no longer support this type of optimistic concurrency. Instead you'll need to take the ETag from the last photo entry response and use it in the If-Match header for your next update request. You can also use a * for the If-Match header to effectively disable any version checking. I am not familiar at all with the Python client library, and am not sure if it even supports v2 already for the Picasa Web API. Can you log the entire HTTP requests and responses (with headers)? This should tell you if you're really sending a v2 GData request or not, and if the library is setting the headers correctly.
On Aug 7, 4:16 pm, Josep Valls <[email protected]> wrote: > Hi, > > I'd like to do some processing on the images I have posted on Picasa. > I will download them, process them and update the image data. I want > to keep all my albums and all the metadata the pictures already had > when I first uploaded them. > When I try to call UpdatePhotoBlob I get the following exception: > Traceback (most recent call last): > File "..\7.py", line 31, in <module> > ph = pws.UpdatePhotoBlob(photo, filename) > File "c:\python25\Lib\site-packages\gdata\photos\service.py", line > 581, in Upd > atePhotoBlob > raise GooglePhotosException(e.args[0]) > gdata.photos.service.GooglePhotosException: (409, 'Conflict', "<?xml > version='1. > 0' encoding='UTF-8'?><entry xmlns='http://www.w3.org/2005/Atom' > xmlns:exif='http > ://schemas.google.com/photos/exif/2007' xmlns:gphoto='http:// > schemas.google.com/ > photos/2007' xmlns:media='http://search.yahoo.com/mrss/'><id>http:// > picasaweb.go... > > This trace is from gdata 2.0.0. Same exception with 2.0.1. > > What am I doing wrong? > > Thanks! --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
