Hi thomas, Yes, you have found a bug and diagnosed it exactly! I have opened an issue in the issue tracker for the Python client library:
http://code.google.com/p/gdata-python-client/issues/detail?id=50 Your suggested patch has been committed to Subversion and will be included in the next zipped release of the library. Thanks for your help and happy coding! -Jeff On Jul 29, 9:51 pm, thomas <[EMAIL PROTECTED]> wrote: > Hello. > > I tried to upload some images into Picasa web site using python GData > API. But the testing result showed me error like this: > > 1. picasa_upload.py > 2. upload2picasa.py > (http://wanted.eu.org/en/computers/linux/ > uploading_photos_to_picasaweb) > > It works only in Linux platform, not Windows. So I tested some testing > module in 'tests/gdata/service_test.py'. I got the same error result. > Picasa didn't return 'OK' sign. > > After some tests, I reached a bug-like code in setFile function of > MediaSource class. > > '__init.py__' file under 'gdata' directory > > orginal: > 59 line: self.file_handle = open(file_name, 'r') > > patch: > 59 line: self.file_handle = open(file_name, 'rb') > > I just added 'b' flag which meant binary format. It made picasa upload > software work in Window platform. > > Is it a bug? --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Google Data 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-help-dataapi?hl=en -~----------~----~----~----~------~----~------~--~---
