[prev in list] [next in list] [prev in thread] [next in thread] 

List:       zope
Subject:    Re: [Zope] help debugging a "can't pickle" error deep within a catalog
From:       "Dieter Maurer" <dieter () handshake ! de>
Date:       2008-06-19 18:56:08
Message-ID: 18522.43976.179792.263331 () gargle ! gargle ! HOWL
[Download RAW message or body]

Rob Miller wrote at 2008-6-17 15:47 -0700:
> ...
>Traceback (most recent call last):
> ....
>"/home/rob/topp/14000/builds/20080611/opencore/lib/zope/lib/python/ZODB/serialize.py", 
>line 407, in serialize
>     return self._dump(meta, obj.__getstate__())
>   File 
>"/home/rob/topp/14000/builds/20080611/opencore/lib/zope/lib/python/ZODB/serialize.py", 
>line 416, in _dump
>     self._p.dump(state)
>   File "copy_reg.py", line 69, in _reduce_ex
>     raise TypeError, "can't pickle %s objects" % base.__name__
>TypeError: can't pickle instancemethod objects

Reproduce the problem in an interactive Python interpreter
("bin/zopectl debug" on *nix; alternatives for Win*).
Call "pdb.pm()" (or probably better "dm.pdb.zpdb.pm()" ("dm.pdb"
can be found on PyPI)) and go up two call frames.
Look at "obj". With a bit of looks, you see which objects
this is and where it comes from.

-- 
Dieter
_______________________________________________
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic