Bug#630572: lazygal: failed with AttributeError: 'str' object has no attribute 'timetuple'
tag 630572 patch fixed-upstream thanks This should be fixed in the development version. Patch available. http://sousmonlit.dyndns.org/~niol/repositories/lazygal/rev/69b4062bb1b2 Thanks for the bug report. Alex -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Bug#630572: lazygal: failed with AttributeError: 'str' object has no attribute 'timetuple'
Package: lazygal Version: 0.6.1-1 Severity: normal When running lazygal, it failed with the following backtrace: [Entering %ALBUMROOT%/selection mariage/2010-05-10] BREAKING web gallery into multiple pages SORTING pics and subdirs Traceback (most recent call last): File /usr/bin/lazygal, line 319, in module options.check_all_dirs, options.clean_dest) File /usr/lib/python2.6/dist-packages/lazygal/generators.py, line 763, in generate destgal.make(force=True) # avoid another needs_build() call in make() File /usr/lib/python2.6/dist-packages/lazygal/generators.py, line 439, in make super(WebalbumDir, self).make(force or needed_build) File /usr/lib/python2.6/dist-packages/lazygal/make.py, line 110, in make d.make() # dependency building not forced File /usr/lib/python2.6/dist-packages/lazygal/make.py, line 110, in make d.make() # dependency building not forced File /usr/lib/python2.6/dist-packages/lazygal/make.py, line 111, in make self.call_build() File /usr/lib/python2.6/dist-packages/lazygal/make.py, line 120, in call_build self.build() File /usr/lib/python2.6/dist-packages/lazygal/generators.py, line 81, in build self.webgal_dir.medias.sort(sorter, reverse=self.album.pic_sort_by[1]) File /usr/lib/python2.6/dist-packages/lazygal/generators.py, line 73, in lambda sorter = lambda x, y: x.media.compare_to_sort(y.media) File /usr/lib/python2.6/dist-packages/lazygal/sourcetree.py, line 177, in compare_to_sort return self.compare_date_taken(other_media) File /usr/lib/python2.6/dist-packages/lazygal/sourcetree.py, line 162, in compare_date_taken date1 = time.mktime(self.get_date_taken().timetuple()) AttributeError: 'str' object has no attribute 'timetuple' This happen after processing half of the subdirectories of the album's root directory. -- System Information: Debian Release: wheezy/sid APT prefers unstable APT policy: (700, 'unstable'), (500, 'oldstable'), (500, 'testing'), (50, 'experimental') Architecture: amd64 (x86_64) Kernel: Linux 2.6.39-2-amd64 (SMP w/2 CPU cores) Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/bash Versions of packages lazygal depends on: ii python2.6.6-14 interactive high-level object-orie ii python-genshi 0.6-1+b1 Python XML-based template engine ii python-imaging1.1.7-2+b1 Python Imaging Library ii python-pyexiv20.3.0-4+b1 Python binding to Exiv2 ii python2.6 2.6.7-1An interactive high-level object-o ii python2.7 2.7.2-1An interactive high-level object-o lazygal recommends no packages. Versions of packages lazygal suggests: ii gstreamer0.10-plugins-base 0.10.34-1GStreamer plugins from the base ii python-gst0.10 0.10.21-2+b1 generic media-playing framework (P -- no debconf information -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Bug#630572: lazygal: failed with AttributeError: 'str' object has no attribute 'timetuple'
Hi, File /usr/lib/python2.6/dist-packages/lazygal/sourcetree.py, line 162, in compare_date_taken date1 = time.mktime(self.get_date_taken().timetuple()) AttributeError: 'str' object has no attribute 'timetuple' This seems to be that exiv2 cannot parse the date. The output of the attached script with the failling files as argument should help me handle this case. Usage is : $ python exif_date_repr.py /path/to/*.jpg Thanks, Alex exif_date_repr.py Description: Binary data
Bug#630572: lazygal: failed with AttributeError: 'str' object has no attribute 'timetuple'
Alexandre Rossi alexandre.ro...@gmail.com writes: Hi, File /usr/lib/python2.6/dist-packages/lazygal/sourcetree.py, line 162, in compare_date_taken date1 = time.mktime(self.get_date_taken().timetuple()) AttributeError: 'str' object has no attribute 'timetuple' This seems to be that exiv2 cannot parse the date. I confirm: using exiv2 to suppress exif information fix my problem The output of the attached script with the failling files as argument should help me handle this case. Usage is : $ python exif_date_repr.py /path/to/*.jpg 50ans0002.jpg None '2010 :05 :10 10 :14 ' 50ans0003.jpg None '2010 :05 :10 10 :14 ' 50ans0004.jpg None '2010 :05 :10 10 :15 ' 50ans0005.jpg None '2010 :05 :10 10 :28 ' 50ans0006.jpg None '2010 :05 :10 10 :28 ' 50ans0007.jpg None '2010 :05 :10 10 :28 ' 50ans0008.jpg None '2010 :05 :10 10 :28 ' 50ans0009.jpg None '2010 :05 :10 10 :40 ' 50ans0010.jpg None '2010 :05 :10 10 :40 ' 50ans0011.jpg None None 50ans0013.jpg None '2010 :05 :10 10 :43 ' 50ans0014.jpg None '2010 :05 :10 10 :43 ' 50ans0015.jpg None '2010 :05 :10 10 :53 ' 50ans0016.jpg None '2010 :05 :10 10 :53 ' 50ans0017.jpg None '2010 :05 :10 10 :53 ' 50ans0018.jpg None '2010 :05 :10 10 :53 ' 50ans0019.jpg None '2010 :05 :10 10 :57 ' 50ans0020.jpg None '2010 :05 :10 10 :57 ' 50ans0021.jpg None '2010 :05 :10 10 :57 ' 50ans0022.jpg None '2010 :05 :10 11 :02 ' 50ans0023.jpg None '2010 :05 :10 11 :02 ' 50ans0024.jpg None '2010 :05 :10 11 :02 ' 50ans0025.jpg None '2010 :05 :10 11 :09 ' 50ans0026.jpg None '2010 :05 :10 11 :09 ' 50ans0027.jpg None '2010 :05 :10 11 :09 ' 50ans0028.jpg None '2010 :05 :10 11 :11 ' 50ans0029.jpg None '2010 :05 :10 11 :11 ' 50ans0030 - Copie.jpg None '2010 :05 :10 11 :17 ' 50ans0030.jpg None '2010 :05 :10 11 :17 ' 50ans0031.jpg None '2010 :05 :10 11 :25 ' 50ans0032.jpg None '2010 :05 :10 14 :17 ' 50ans0033.jpg None '2010 :05 :10 14 :17 ' 50ans0034 - Copie.jpg None '2010 :05 :10 14 :18 ' 50ans0034.jpg None '2010 :05 :10 14 :18 ' 50ans0035.jpg None '2010 :05 :10 14 :20 ' 50ans0036.jpg None '2010 :05 :10 14 :20 ' 50ans0037.jpg None '2010 :05 :10 14 :20 ' 50ans0038.jpg None '2010 :05 :10 14 :21 ' 50ans0039.jpg None '2010 :05 :10 14 :22 ' 50ans0040.jpg None '2010 :05 :10 14 :30 ' 50ans0041.jpg None '2010 :05 :10 14 :30 ' 50ans0042.jpg None '2010 :05 :10 14 :37 ' 50ans0043.jpg None '2010 :05 :10 14 :37 ' 50ans0044.jpg None '2010 :05 :10 14 :44 ' 50ans0045.jpg None '2010 :05 :10 14 :44 ' 50ans0046.jpg None '2010 :05 :10 14 :44 ' 50ans0047.jpg None '2010 :05 :10 14 :46 ' 50ans0048.jpg None '2010 :05 :10 14 :46 ' 50ans0049.jpg None '2010 :05 :10 14 :46 ' 50ans0050.jpg None '2010 :05 :10 14 :50 ' 50ans0051.jpg None '2010 :05 :10 14 :52 ' 50ans0052.jpg None '2010 :05 :10 14 :55 ' 50ans0053.jpg None '2010 :05 :10 14 :56 ' 50ans0054.jpg None '2010 :05 :10 14 :57 ' 50ans0055.jpg None '2010 :05 :10 14 :57 ' 50ans0056.jpg None '2010 :05 :10 15 :01 ' 50ans0057.jpg None '2010 :05 :10 15 :01 ' 50ans0058.jpg None '2010 :05 :10 15 :01 ' 50ans0059.jpg None '2010 :05 :10 15 :03 ' 50ans0060.jpg None '2010 :05 :10 15 :07 ' 50ans0061.jpg None '2010 :05 :10 15 :13 ' 50ans0062.jpg None '2010 :05 :10 15 :14 ' 50ans0063.jpg None '2010 :05 :10 15 :14 ' 50ans0064.jpg None '2010 :05 :10 15 :16 ' 50ans0065.jpg None '2010 :05 :10 15 :16 ' 50ans0066.jpg None '2010 :05 :10 18 :46 ' 50ans0067.jpg None '2010 :05 :10 15 :20 ' 50ans0068.jpg None '2010 :05 :10 15 :20 ' 50ans0069.jpg None '2010 :05 :10 15 :20 ' 50ans0070.jpg None '2010 :05 :10 15 :25 ' 50ans0071.jpg None '2010 :05 :10 15 :28 ' 50ans0072.jpg None '2010 :05 :10 15 :28 ' 50ans0073.jpg None '2010 :05 :10 15 :29 ' 50ans0074.jpg None '2010 :05 :10 15 :33 ' 50ans0075.jpg None '2010 :05 :10 15 :33 ' 50ans0076.jpg None '2010 :05 :10 15 :33 ' 50ans0077.jpg None '2010 :05 :10 15 :37 ' 50ans0078.jpg None '2010 :05 :10 15 :40 ' 50ans0079.jpg None '2010 :05 :10 15 :41 ' 50ans0080.jpg None '2010 :05 :10 15 :41 ' 50ans0081.jpg None '2010 :05 :10 15 :42 ' 50ans0082.jpg None '2010 :05 :10 15 :42 ' 50ans0083.jpg None '2010 :05 :10 15 :42 ' 50ans0084.jpg None '2010 :05 :10 15 :44 ' 50ans0085.jpg None '2010 :05 :10 15 :47 ' 50ans0086.jpg None '2010 :05 :10 15 :49 ' 50ans0087.jpg None '2010 :05 :10 15 :49 ' 50ans0088.jpg None '2010 :05 :10 15 :50 ' 50ans0089.jpg None '2010 :05 :10 15 :50 ' 50ans0090.jpg None '2010 :05 :10 15 :54 ' 50ans0091.jpg None '2010 :05 :10 15 :54 ' 50ans0092.jpg None '2010 :05 :10 15 :54 ' 50ans0093.jpg None '2010 :05 :10 16 :03 ' 50ans0094.jpg None '2010 :05 :10 16 :03 ' 50ans0095.jpg None '2010 :05 :10 18 :48 ' 50ans0096.jpg None None 50ans50001.jpg None '2010 :05 :10 09 :55 ' 50ans50002.jpg None '2010 :05 :10 09 :56 ' 50ans5.jpg None '2010 :05 :10 09 :55 ' 50ans60001.jpg None '2010 :05 :10 10 :01 ' 50ans6.jpg None '2010 :05 :10 10 :01 ' 50ans.jpg None '2010 :05 :10 10 :14 ' -- Rémi Vanicat -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Bug#630572: lazygal: failed with AttributeError: 'str' object has no attribute 'timetuple'
The output of the attached script with the failling files as argument should help me handle this case. Usage is : $ python exif_date_repr.py /path/to/*.jpg 50ans0002.jpg None '2010 :05 :10 10 :14 ' [...] Thanks a lot. Can you send me one of the pictures? One with a date inside, not one outputting x.jpg None None. I'm interested in the EXIF tags, therefore putting a big black square on the picture to anonymize it should not change the metadata and should suit my needs. Are those photos from a particular camera or particular software? Thanks, Alex -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org