Your message dated Sun, 08 Sep 2019 04:43:14 +0000
with message-id <[email protected]>
and subject line Bug#929542: Removed package(s) from unstable
has caused the Debian Bug report #697263,
regarding photon: Gets ZeroDivisionError: float division
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.)


-- 
697263: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=697263
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: photon
Version: 0.4.6-1.1
Severity: important
Tags: patch


Following Command generates an exception which stops the program working:

photon --sizelist=0,1600x1200,800x600 --thumbsize=320x240 -o /backup/amw/albums 
/tmp/NZ
Traceback (most recent call last):
  File "/home/amw/bin/photon", line 2290, in <module>
    main()
  File "/home/amw/bin/photon", line 298, in main
    process_directory(path,"")
  File "/home/amw/bin/photon", line 440, in process_directory
    make_image_html(relativepath,directories_list, images_list)
  File "/home/amw/bin/photon", line 905, in make_image_html
    fill_image_html_exif_window(namespace, image)
  File "/home/amw/bin/photon", line 1252, in fill_image_html_exif_window
    exif_value = exif_resolv_ratio( imageinfo['exif'][exif_key] )
  File "/home/amw/bin/photon", line 1231, in exif_resolv_ratio
    return float(m.group(1)) / float(m.group(2))
ZeroDivisionError: float division

The m.group(2) is "0" - I don't know the image which does it or exactly why but 
I hacked the code to
detect it and use the result 1.0 and it appears to work ok?

--- /usr/bin/photon     2008-07-19 01:51:16.000000000 +1000
+++ /home/amw/bin/photon        2013-01-03 16:56:33.000000000 +1100
@@ -1227,6 +1227,9 @@
     ratio = ratio_of_ifdtag
   m = re.search("^(\d+)/(\d+)$", ratio)
   if m:
+    if m.group(2) == "0":
+       print "m.group(2)=", m.group(2), "\n"
+       return 1.0
     return float(m.group(1)) / float(m.group(2))
   else:
     return float(ratio)


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

Kernel: Linux 2.6.32-5-amd64 (SMP w/2 CPU cores)
Locale: LANG=en_AU.UTF-8, LC_CTYPE=en_AU.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages photon depends on:
ii  python                  2.6.6-3+squeeze7 interactive high-level object-orie
ii  python-central          0.6.16+nmu1      register and build utility for Pyt
ii  python-imaging          1.1.7-2          Python Imaging Library

Versions of packages photon recommends:
ii  dcraw                  8.99-1+b1         decode raw digital camera images
ii  gimp                   2.6.10-1+squeeze3 The GNU Image Manipulation Program

photon suggests no packages.

-- no debconf information

--- End Message ---
--- Begin Message ---
Version: 0.4.6-3.1+rm

Dear submitter,

as the package photon has just been removed from the Debian archive
unstable we hereby close the associated bug reports.  We are sorry
that we couldn't deal with your issue properly.

For details on the removal, please see https://bugs.debian.org/929542

The version of this package that was in Debian prior to this removal
can still be found using http://snapshot.debian.org/.

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

Debian distribution maintenance software
pp.
Scott Kitterman (the ftpmaster behind the curtain)

--- End Message ---

Reply via email to