placidorevilla / PicasaSync

Synchronize a local directory of albums with your picasa account
The Unlicense
8 stars 2 forks source link

Error when trying to sync #9

Open dpaneda opened 12 years ago

dpaneda commented 12 years ago

Hi there,

I'm getting this errro when trying to sync

daniel@delorean:~/fotos/procesadas$ picasasync -n -v -v .
2012-03-11 13:28:16,145 INFO [7f450c94d700] PicasaSync No upload or download specified. Using bidirectional sync.
2012-03-11 13:28:16,146 DEBUG [7f450c94d700] googlecl.config.parser Reading configuration from /home/daniel/.config/googlecl/config
2012-03-11 13:28:16,155 DEBUG [7f450c94d700] googlecl determine_terminal_encoding(): UTF-8
2012-03-11 13:28:16,156 DEBUG [7f450c94d700] googlecl.service Initialized googlecl.service.BaseServiceCL
2012-03-11 13:28:16,157 DEBUG [7f450c94d700] googlecl.authentication Loaded token from file
2012-03-11 13:28:24,972 DEBUG [7f450c94d700] googlecl.base Retrieved 65 entries, returning them all
Traceback (most recent call last):
  File "/usr/bin/picasasync", line 9, in <module>
    load_entry_point('PicasaSync==0.1', 'console_scripts', 'picasasync')()
  File "/usr/lib/python2.7/site-packages/PicasaSync/PicasaSync.py", line 655, in main
    PicasaSync().sync()
  File "/usr/lib/python2.7/site-packages/PicasaSync/PicasaSync.py", line 591, in sync
    AlbumList(self.clients, self.cl_args).sync()
  File "/usr/lib/python2.7/site-packages/PicasaSync/PicasaSync.py", line 498, in sync
    self.fillFromPicasa()
  File "/usr/lib/python2.7/site-packages/PicasaSync/PicasaSync.py", line 491, in fillFromPicasa
    self[album.title].combine(album)
  File "/usr/lib/python2.7/site-packages/PicasaSync/PicasaSync.py", line 334, in combine
    raise InvalidArguments(u'Tried to combine the album "{}" with another of the same type'.format(self.title))
PicasaSync.PicasaSync.InvalidArguments: Tried to combine the album "2011-07-16" with another of the same type

any ideas?

I don't even have an album with such a name...

Born2Crawl commented 12 years ago

For those who run into this (I also had this issue with non-existing album trying to combine with itself?), I just had to comment out this line of code and it worked fine after:

def combine(self, other):
    if self.isInDisk() and not other.isInDisk() and other.isInPicasa():
        self.picasa = other.picasa
    elif self.isInPicasa() and not other.isInPicasa() and other.isInDisk():
        self.disk = other.disk
    #else:
        #raise InvalidArguments(u'Tried to combine the album "{}" with another of the same type'.format(self.title))
Alfiegerner commented 11 years ago

Fix also works for instances where photo filenames are duplicated.