4 messages in com.googlegroups.google-picasa-data-apiRe: Broken pipe when uploading photos
FromSent OnAttachments
Guerra26 Apr 2008 14:48 
Guerra26 Apr 2008 15:43 
Jeff Fisher (Google)28 Apr 2008 09:41 
Cameron Hinkle28 Apr 2008 10:03 
Subject:Re: Broken pipe when uploading photos
From:Jeff Fisher (Google) (api.@google.com)
Date:04/28/2008 09:41:17 AM
List:com.googlegroups.google-picasa-data-api

Hi Guerra,

When using the album name in the feed URL directly there are certain constraints (no spaces, no utf-8 characters), so often times it is better to work with feeds by using the album ID instead of the name. If you do want to use the name, you can retrieve the album feed and take a look at the <gphoto:name> element in the album entry.

Cheers, -Jeff

On Apr 26, 3:44 pm, Guerra <isra@gmail.com> wrote:

I found out that when i used an album name without space in its name the script worked. I will make some tests and will report here.

On Apr 26, 6:49 pm, Guerra <isra@gmail.com> wrote:

Hi,

i'm writing a python script to upload photos to picasa.

It connects to the account, it creates an album, but when it starts to uplaod somethin i get this error:

content_type = 'image/jpg') File "/usr/lib/python2.5/site-packages/gdata/photos/service.py", line 474, in InsertPhotoSimple content_type) File "/usr/lib/python2.5/site-packages/gdata/photos/service.py", line 430, in InsertPhoto converter=gdata.photos.PhotoEntryFromString) File "/usr/lib/python2.5/site-packages/gdata/service.py", line 642, in Post media_source=media_source, converter=converter) File "/usr/lib/python2.5/site-packages/gdata/service.py", line 716, in PostOrPut content_type='multipart/related; boundary=END_OF_PART') File "/usr/lib/python2.5/site-packages/atom/service.py", line 322, in HttpRequest __SendDataPart(data_part, connection) File "/usr/lib/python2.5/site-packages/atom/service.py", line 344, in __SendDataPart connection.send(binarydata) File "/usr/lib/python2.5/httplib.py", line 711, in send self.sock.sendall(str) File "<string>", line 1, in sendall socket.error: (32, 'Broken pipe')

I even uploaded 1 photo once, but after i got this error and didnt change anything on the script.

Can anyone give me a clue of where i should start to look for the problem?

Thanks and best regards,