Package: python-gamera
Version: 3.2.3-1
Severity: minor

gamera.util.CallbackSet objects are meant to be picklable/unpicklable
(__setstate__ method is implemented), but in fact they are not:

from gamera.util import CallbackSet
from pickle import loads, dumps
s = CallbackSet()
loads(dumps(s))
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/lib/python2.5/pickle.py", line 1374, in loads
    return Unpickler(file).load()
  File "/usr/lib/python2.5/pickle.py", line 858, in load
    dispatch[key](self)
  File "/usr/lib/python2.5/pickle.py", line 1217, in load_build
    setstate(state)
  File "/usr/lib/pymodules/python2.5/gamera/util.py", line 567, in __setstate__
    self.trigger_callback('remove', self)
  File "/usr/lib/pymodules/python2.5/gamera/util.py", line 389, in 
trigger_callback
    category = self._callbacks.get(alert, [])
AttributeError: 'CallbackSet' object has no attribute '_callbacks'


-- System Information:
Debian Release: squeeze/sid
  APT prefers unstable
  APT policy: (900, 'unstable'), (500, 'experimental')
Architecture: i386 (x86_64)

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

Versions of packages python-gamera depends on:
ii  libc6                         2.10.1-5   GNU C Library: Shared libraries
ii  libga2                        2.4.7-3    C++ Library of Genetic Algorithm C
ii  libgcc1                       1:4.4.2-2  GCC support library
ii  libpng12-0                    1.2.40-1   PNG library - runtime
ii  libstdc++6                    4.4.2-2    The GNU Standard C++ Library v3
ii  libtiff4                      3.9.1-1    Tag Image File Format (TIFF) libra
ii  python                        2.5.4-2    An interactive high-level object-o
ii  python-support                1.0.4      automated rebuilding support for P

Versions of packages python-gamera recommends:
ii  python-imaging              1.1.6-3.1    Python Imaging Library
ii  python-numpy                1:1.3.0-3    Numerical Python adds a fast array
ii  python-wxgtk2.8             2.8.7.1-2+b1 wxWidgets Cross-platform C++ GUI t

Versions of packages python-gamera suggests:
pn  gamera-doc                    <none>     (no description available)

-- no debconf information

--
Jakub Wilk



--
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to