Deadolus / googlecl

Automatically exported from code.google.com/p/googlecl
0 stars 0 forks source link

Unable to delete online photo #554

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1.Ran the command following command line 
2../google picasa delete "1998" -q "1998 - File0116-001.jpg" --yes --config 
.config
3.

What is the expected output? What do you see instead?
I expected to see a file delete confirmation string but instead recieved the 
following error message;

Traceback (most recent call last):
  File "./google", line 5, in <module>
    pkg_resources.run_script('googlecl==0.9.14', 'google')
  File "/opt/lib/python2.5/site-packages/pkg_resources.py", line 489, in run_script
    self.require(requires)[0].run_script(script_name, ns)
  File "/opt/lib/python2.5/site-packages/pkg_resources.py", line 1207, in run_script
    execfile(script_filename, namespace, namespace)
  File "/share/MD0_DATA/.qpkg/Optware/local/lib/python2.5/site-packages/googlecl-0.9.14-py2.5.egg/EGG-INFO/scripts/google", line 991, in <module>
    main()
  File "/share/MD0_DATA/.qpkg/Optware/local/lib/python2.5/site-packages/googlecl-0.9.14-py2.5.egg/EGG-INFO/scripts/google", line 977, in main
    run_once(options, args)
  File "/share/MD0_DATA/.qpkg/Optware/local/lib/python2.5/site-packages/googlecl-0.9.14-py2.5.egg/EGG-INFO/scripts/google", line 763, in run_once
    task.run(client, options, args)
  File "/share/MD0_DATA/.qpkg/Optware/local/lib/python2.5/site-packages/googlecl-0.9.14-py2.5.egg/googlecl/picasa/__init__.py", line 220, in _run_delete
    client.DeleteEntryList(entries, entry_type, options.prompt)
  File "/share/MD0_DATA/.qpkg/Optware/local/lib/python2.5/site-packages/googlecl-0.9.14-py2.5.egg/googlecl/base.py", line 130, in delete_entry_list
    self.Delete(item.GetEditLink().href)
  File "/share/MD0_DATA/.qpkg/Optware/local/lib/python2.5/site-packages/googlecl-0.9.14-py2.5.egg/googlecl/service.py", line 64, in retry_delete
    return self.retry_operation(*args, **kwargs)
  File "/share/MD0_DATA/.qpkg/Optware/local/lib/python2.5/site-packages/googlecl-0.9.14-py2.5.egg/googlecl/base.py", line 399, in retry_operation
    raise unexpected
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/' 
xmlns:gml='http://www.opengis.net/gml' 
xmlns:georss='http://www.georss.org/georss'><id>http://picasaweb.google.com/data
/entry/api/user/111140412727040148959/albumid/5995606159590261953/photoid/599560
6204532622434</id><published>2014-03-27T22:54:11.000Z</published><updated>2014-0
3-28T00:35:03.320Z</updated><category 
scheme='http://schemas.google.com/g/2005#kind' 
term='http://schemas.google.com/photos/2007#photo'/><title 
type='text'>Photo1138.jpg</title><summary type='text'/><content 
type='image/jpeg' 
src='http://lh3.ggpht.com/-gz_o-oiKDCQ/UzSsE7JLhGI/AAAAAAAAaVE/GQvnjGS_Gk0/Photo
1138.jpg'/><link rel='http://schemas.google.com/g/2005#feed' 
type='application/atom+xml' 
href='http://picasaweb.google.com/data/feed/api/user/111140412727040148959/album
id/5995606159590261953/photoid/5995606204532622434'/><link rel='alternate' 
type='text/html' 
href='https://picasaweb.google.com/111140412727040148959/2012#599560620453262243
4'/><link rel='http://schemas.google.com/photos/2007#canonical' 
type='text/html' 
href='https://picasaweb.google.com/lh/photo/5DRs8LXgrRpqCtiSCF1_3tMTjNZETYmyPJy0
liipFm0'/><link rel='self' type='application/atom+xml' 
href='http://picasaweb.google.com/data/entry/api/user/111140412727040148959/albu
mid/5995606159590261953/photoid/5995606204532622434'/><link rel='edit' 
type='application/atom+xml' 
href='http://picasaweb.google.com/data/entry/api/user/111140412727040148959/albu
mid/5995606159590261953/photoid/5995606204532622434/3'/><link rel='edit-media' 
type='image/jpeg' 
href='http://picasaweb.google.com/data/media/api/user/111140412727040148959/albu
mid/5995606159590261953/photoid/5995606204532622434/3'/><link rel='media-edit' 
type='image/jpeg' 
href='http://picasaweb.google.com/data/media/api/user/111140412727040148959/albu
mid/5995606159590261953/photoid/5995606204532622434/3'/><link 
rel='http://schemas.google.com/photos/2007#report' type='text/html' 
href='https://picasaweb.google.com/lh/reportAbuse?uname=111140412727040148959&am
p;aid=5995606159590261953&amp;iid=5995606204532622434'/><gphoto:id>5995606204532
622434</gphoto:id><gphoto:version>3</gphoto:version><gphoto:albumid>599560615959
0261953</gphoto:albumid><gphoto:access>only_you</gphoto:access><gphoto:width>153
6</gphoto:width><gphoto:height>2048</gphoto:height><gphoto:size>1220381</gphoto:
size><gphoto:client>picasa</gphoto:client><gphoto:checksum>bca28112</gphoto:chec
ksum><gphoto:timestamp>1342683816000</gphoto:timestamp><gphoto:imageVersion>2696
1</gphoto:imageVersion><gphoto:commentingEnabled>true</gphoto:commentingEnabled>
<gphoto:commentCount>0</gphoto:commentCount><gphoto:streamId>shared_group_599560
6204532622434</gphoto:streamId><gphoto:shapes 
faces='done'/><exif:tags><exif:fstop>2.6386719</exif:fstop><exif:make>SAMSUNG   

</exif:make><exif:model>GT-S8500</exif:model><exif:exposure>0.0063041765</exif:e
xposure><exif:flash>false</exif:flash><exif:focallength>3.79</exif:focallength><
exif:iso>50</exif:iso><exif:time>1342687416000</exif:time><exif:imageUniqueID>96
037b182e2f6269e75f21c4aed1c99a</exif:imageUniqueID></exif:tags><media:group><med
ia:content 
url='http://lh3.ggpht.com/-gz_o-oiKDCQ/UzSsE7JLhGI/AAAAAAAAaVE/GQvnjGS_Gk0/Photo
1138.jpg' height='512' width='384' type='image/jpeg' 
medium='image'/><media:credit>Nas Mason</media:credit><media:description 
type='plain'/><media:keywords/><media:thumbnail 
url='http://lh3.ggpht.com/-gz_o-oiKDCQ/UzSsE7JLhGI/AAAAAAAAaVE/GQvnjGS_Gk0/s72/P
hoto1138.jpg' height='72' width='54'/><media:thumbnail 
url='http://lh3.ggpht.com/-gz_o-oiKDCQ/UzSsE7JLhGI/AAAAAAAAaVE/GQvnjGS_Gk0/s144/
Photo1138.jpg' height='144' width='108'/><media:thumbnail 
url='http://lh3.ggpht.com/-gz_o-oiKDCQ/UzSsE7JLhGI/AAAAAAAAaVE/GQvnjGS_Gk0/s288/
Photo1138.jpg' height='288' width='216'/><media:title 
type='plain'>Photo1138.jpg</media:title></media:group><georss:where><gml:Point><
gml:pos>51.693056 -0.421389</gml:pos></gml:Point></georss:where></entry>")
[/share/MD0_DATA/Application Data/GooglePhotos] #

What version of the product are you using? 
0.9.14
On what operating system? 
QNAP ARM busybox
What version of gdata-python-client (aka python-gdata)?
gdata-2.0.18.tar.gz

Please provide any additional information below.

Original issue reported on code.google.com by NAS.Emb...@gmail.com on 28 Mar 2014 at 4:33