Your message dated Thu, 10 Nov 2016 12:50:15 +0000
with message-id <[email protected]>
and subject line Bug#794899: fixed in lazygal 0.9-1
has caused the Debian Bug report #794899,
regarding lazygal: fails to generate exif sorted gallery for images that lacks 
exif information
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)


-- 
794899: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=794899
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: lazygal
Version: 0.8.7-1
Severity: normal

Dear Maintainer,

I encountered a python error when trying to generate a galery with images that 
does not contain exif information:
Traceback (most recent call last):
  File "/usr/bin/lazygal", line 278, in <module>
    album.generate(progress=progress)
  File "/usr/lib/python2.7/dist-packages/lazygal/generators.py", line 921, in 
generate
    destgal.make()
  File "/usr/lib/python2.7/dist-packages/lazygal/generators.py", line 663, in 
make
    super(WebalbumDir, self).make(force or needed_build)
  File "/usr/lib/python2.7/dist-packages/lazygal/make.py", line 105, in make
    d.make()  # dependency building not forced
  File "/usr/lib/python2.7/dist-packages/lazygal/make.py", line 105, in make
    d.make()  # dependency building not forced
  File "/usr/lib/python2.7/dist-packages/lazygal/make.py", line 106, in make
    self.call_build()
  File "/usr/lib/python2.7/dist-packages/lazygal/make.py", line 115, in 
call_build
    self.build()
  File "/usr/lib/python2.7/dist-packages/lazygal/generators.py", line 82, in 
build
    reverse=self.webgal_dir.subgal_sort_by[1])
  File "/usr/lib/python2.7/dist-packages/lazygal/generators.py", line 72, in 
<lambda>
    subgal_sortkey = lambda x: x.source_dir.latest_media_stamp()
  File "/usr/lib/python2.7/dist-packages/lazygal/sourcetree.py", line 377, in 
latest_media_stamp
    media_stamp = time.mktime(m.get_mtime().timetuple())
AttributeError: 'float' object has no attribute 'timetuple'

It can be easily reproduce with some icons installed. For example with icons 
coming from xterm, vim-common, mame, emacs24-common packages.
The command that fails:
$ lazygal --check-all-dirs --subgal-sort-by=exif --clean-destination -o 
/tmp/out /usr/share/icons/hicolor/48x48/

A patch that addresses this issue is attached.

Thanks

-- System Information:
Debian Release: 8.1
  APT prefers stable-updates
  APT policy: (500, 'stable-updates'), (500, 'stable')
Architecture: amd64 (x86_64)

Kernel: Linux 3.16.0-4-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/dash
Init: systemd (via /run/systemd/system)

Versions of packages lazygal depends on:
ii  gir1.2-gexiv2-0.10  0.10.2-2
ii  python              2.7.9-1
ii  python-genshi       0.7-3
ii  python-gi           3.14.0-1
ii  python-imaging      2.6.1-2

lazygal recommends no packages.

Versions of packages lazygal suggests:
pn  gstreamer0.10-plugins-base  <none>
pn  python-gst0.10              <none>

-- no debconf information
Index: lazygal-0.8.7/lazygal/sourcetree.py
===================================================================
--- lazygal-0.8.7.orig/lazygal/sourcetree.py
+++ lazygal-0.8.7/lazygal/sourcetree.py
@@ -374,7 +374,7 @@ class Directory(File):
         if media_stamp_max is None:
             # none of the media had a reliable date, use mtime instead
             for m in all_medias:
-                media_stamp = time.mktime(m.get_mtime().timetuple())
+                media_stamp = m.get_datetime().timestamp
                 if media_stamp_max is None or media_stamp > media_stamp_max:
                     media_stamp_max = media_stamp
 

--- End Message ---
--- Begin Message ---
Source: lazygal
Source-Version: 0.9-1

We believe that the bug you reported is fixed in the latest version of
lazygal, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to [email protected],
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Michal Čihař <[email protected]> (supplier of updated lazygal package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing [email protected])


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

Format: 1.8
Date: Thu, 10 Nov 2016 13:30:19 +0100
Source: lazygal
Binary: lazygal
Architecture: source all
Version: 0.9-1
Distribution: unstable
Urgency: medium
Maintainer: Michal Čihař <[email protected]>
Changed-By: Michal Čihař <[email protected]>
Description:
 lazygal    - static web gallery generator
Closes: 776198 782376 794899 829447 836697
Changes:
 lazygal (0.9-1) unstable; urgency=medium
 .
   * New upstream release.
     - Fixes crash with missing python-gst-1.0 (Closes: #829447).
     - Fixes sorting by timestamp (Closes: #794899).
     - Fixes crash withou input files (Closes: #776198).
     - Fixes inverted theme padding (Closes: #782376).
     - Do not warn about missing video support when no videos are
       found (Closes: #836697).
   * Bump standards to 3.9.8.
Checksums-Sha1:
 cb5a9c599b72e6da59128b3752566b08b2c08339 1989 lazygal_0.9-1.dsc
 89753fa9b10212643af031f471253caf5c89bb11 871567 lazygal_0.9.orig.tar.gz
 eb09b95154780c670ffd5c7dd751f2261b902e69 4084 lazygal_0.9-1.debian.tar.xz
 4b4ba1e1ea58e71ce56ef1c6fb9bc748f83ea1ef 191312 lazygal_0.9-1_all.deb
Checksums-Sha256:
 13f8ae3481b5cce369f32b8fb4e57affa3d07525699acb42b175742e95958be4 1989 
lazygal_0.9-1.dsc
 28cbd5b928bd11f9fcdf880d45186ffd582bd4bf3d6ff56789e3b86e1a4df953 871567 
lazygal_0.9.orig.tar.gz
 e402eb428e88d7d7ad03f1d41460d8ecf65836cc27875dd5a8407c789cdcf3c4 4084 
lazygal_0.9-1.debian.tar.xz
 df24c23b7ede3ee9685b0c4a234c120735b4c92c248e448bf62a6a29509b857d 191312 
lazygal_0.9-1_all.deb
Files:
 c2bf7ea52cad50d24cec91565ded3d08 1989 graphics optional lazygal_0.9-1.dsc
 e5c4cae90185b18973644f578f301b89 871567 graphics optional 
lazygal_0.9.orig.tar.gz
 858d88b7b8b24b28a46910f0c67dec3d 4084 graphics optional 
lazygal_0.9-1.debian.tar.xz
 ea91d6a607b253b0379ed49185d16954 191312 graphics optional lazygal_0.9-1_all.deb

-----BEGIN PGP SIGNATURE-----

iQIcBAEBCAAGBQJYJGkgAAoJEPSqIp1NWMJFNwAP/1kaCPEaX5rhT/aq9hcg8Tkz
SU//h/oH5Us5/n+9YyHkQYTc0sGliKspb3wLEANWx7SqTaOEfokUN02/QRElXCxo
fnhDfiq/W5ol2bMb7Ez00fqrZgjZqNAqm8+D+0weQpxLlv6b36CynKq6PpfsLxdm
gITnPnjh3vRRaZKL0CIIM0AjZnGY+MtuASAP57RqQFr+IQPJLqUHkzC1SAX/dDGF
n4Tbs2g5pMJV9BZN/xa5sdNOXOXrBChcM/ez8UZNtABlYHI8WPPxyO7omm8EYt3/
RwdtPAJWMs7w+fO9N65m1wMUFs/U9DNM+3OE4gCrCs4nsjqBfJhh7EKvAr/ALa2e
NfYRSwUWLVDzoV2a5SkqTZXnAVtsngfmv8xN0RSAPp+mqQ8Jrb3W1hE5EspM6KeS
+yudSReXkdpYnqySm3rlU34nIOksBo/XsuzwVGBv9vFYNyAZKfTf4IwGPeJ3qaBr
7z8sBmTi26NvuptMvNE0hD3o6XeE4jIa+tJ+O+e6p0Wfpc04AZ5e2/Og8vLBkEEA
Vh+yYGt0Jl/eMEaOXCjQB7FT+d5dd+WtrWCKM+UHmPYPJSQg/WqCHGH8p8DZmX6t
Vp7biF0ETM8o5pX/8R8YDs7XIaPGMx8f/XgCs/WNd1S3TZObiKJA6pyEbtHqjGwl
JpyZa2sD7AdaQA73HDGy
=IdB/
-----END PGP SIGNATURE-----

--- End Message ---

Reply via email to