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
-~----------~----~----~----~------~----~------~--~---

Reply via email to