[ZODB-Dev] Pickling problem caused by Python 2.2.2 ?!

Guido van Rossum guido@python.org
Sun, 08 Dec 2002 11:05:56 -0500


I can't help debugging this problem; getting a running instance of the
collector requires too much setup that I'm not familiar with (CMF).
Can you try yourself?  I think at this point it's a good idea to sumit
a tracker issue, providing all the info you've submitted in this email
thread so far.  If you want to set up a sandbox Data.fs that
reproduces the problem that would be great (but make sure to include
instructions on how to configure Zope to work with it).

--Guido van Rossum (home page: http://www.python.org/~guido/)

> Line 381 contains dump(state).
> The CMFCollectorNG sources are here:
> http://sourceforge.net/project/showfiles.php?group_id=68417
> 
> Andreas
> 
> 
> 
> --On Sonntag, 8. Dezember 2002 09:56 -0500 Guido van Rossum 
> <guido@python.org> wrote:
> 
> >> Traceback (innermost last):
> >>   Module ZPublisher.Publish, line 102, in publish
> >>   Module Zope.App.startup, line 200, in commit
> >>   Module ZODB.Transaction, line 234, in commit
> >>   Module ZODB.Transaction, line 350, in _commit_objects
> >>   Module ZODB.Connection, line 381, in commit
> >>    - __traceback_info__: (('Products.CMFCollectorNG.CollectorNGIssue',
> >> 'CollectorNGIssue'), '\x00\x00\x00\x00\x00\x00\x18\xf6', '')
> >>   Module copy_reg, line 57, in _reduce
> >> TypeError: can't pickle function objects
> >
> > What does line 381 of ZODB/Connection.py look like?  Mine looks like
> >
> >                 if module: klass=module, klass.__name__
> >
> > but that doesn't sound like the right line.
> >
> > Where's the source for CMFCollectorNG?  I expect that the key to to
> > the solution is there (even if the bug is not).
> >
> > --Guido van Rossum (home page: http://www.python.org/~guido/)
> 
> 
> 
> 
>     ---------------------------------------------------------------------
>    -    Andreas Jung                     http://www.andreas-jung.com   -
>   -   EMail: andreas at andreas-jung.com                              -
>    -            "Life is too short to (re)write parsers"               -
>     ---------------------------------------------------------------------
> 
> 
> _______________________________________________
> For more information about ZODB, see the ZODB Wiki:
> http://www.zope.org/Wikis/ZODB/
> 
> ZODB-Dev mailing list  -  ZODB-Dev@zope.org
> http://lists.zope.org/mailman/listinfo/zodb-dev