Bug/crash due to date comparison

Chris Green cl at isbd.net
Sun Jan 8 13:51:24 CET 2017


As I said in my other posting here I get a crash running photofloat on
one of my directory trees of images:-

    2017-01-08T12:41:54.118515   |  |  |  |--[thumbing] p61_01_013.jpg -> 150px, square
    2017-01-08T12:41:54.177078   |  |  |  |--[thumbing] p61_01_013.jpg -> 640px
    2017-01-08T12:41:54.253785   |  |  |  |--[thumbing] p61_01_013.jpg -> 800px
    2017-01-08T12:41:54.341188   |  |  |  |--[thumbing] p61_01_013.jpg -> 1024px
    2017-01-08T12:41:54.447971   |  |  |  |--[metainfo]      p61_01_016.jpg
    2017-01-08T12:41:54.460887   |  |  |  |--[thumbing] p61_01_016.jpg -> 75px, square
    2017-01-08T12:41:54.611572   |  |  |  |--[thumbing] p61_01_016.jpg -> 150px, square
    2017-01-08T12:41:54.678471   |  |  |  |--[thumbing] p61_01_016.jpg -> 640px
    2017-01-08T12:41:54.770237   |  |  |  |--[thumbing] p61_01_016.jpg -> 800px
    2017-01-08T12:41:54.871359   |  |  |  |--[thumbing] p61_01_016.jpg -> 1024px
    2017-01-08T12:41:54.989794   |  |  |--[caching]       #4 - Industrial Tour, Sheffield-Chesterfield
    Traceback (most recent call last):
      File "/usr/bin/photofloat", line 21, in <module> main()
      File "/usr/bin/photofloat", line 15, in main
        TreeWalker(sys.argv[1], sys.argv[2])
      File "/usr/share/photofloat/scanner/TreeWalker.py", line 16, in __init__
        self.walk(self.album_path)
      File "/usr/share/photofloat/scanner/TreeWalker.py", line 55, in walk
        album.add_album(self.walk(entry))
      File "/usr/share/photofloat/scanner/TreeWalker.py", line 55, in walk
        album.add_album(self.walk(entry))
      File "/usr/share/photofloat/scanner/TreeWalker.py", line 55, in walk
        album.add_album(self.walk(entry))
      File "/usr/share/photofloat/scanner/TreeWalker.py", line 76, in walk
        album.cache(self.cache_path)
      File "/usr/share/photofloat/scanner/PhotoAlbum.py", line 68, in cache
        self._sort()
      File "/usr/share/photofloat/scanner/PhotoAlbum.py", line 51, in _sort
        self._photos.sort()
      File "/usr/share/photofloat/scanner/PhotoAlbum.py", line 318, in __cmp__
        date_compare = cmp(self.date, other.date)
    TypeError: can't compare datetime.datetime to unicode

Presumably one of my images has something odd in it but it shouldn't
crash the program really.

How can I find the image with the problem?

-- 
Chris Green


More information about the PhotoFloat mailing list