You probably need to find out what the object is for anyone to have a chance of helping.

I usually just put a pdb in the ZODB that is triggered if there's an error here, and then start poking around. Using the postmortem debug publisher might work too, but it has caused enough problems for me in the past that I dropped it, myself.


Gary

On Aug 9, 2007, at 9:44 AM, Hermann Himmelbauer wrote:

Hi,
After updating some z3c packages and changing some of my code, I receive a
very strange traceback from Zope3:

------------------
Traceback (most recent call last):
File "/local/home/dusty/Zope-3.4.0b1/lib/python/zope/publisher/ publish.py",
line 138, in publish
    publication.afterCall(request, obj)

File "/local/home/dusty/Zope-3.4.0b1/lib/python/zope/app/ publication/browser.py",
line 78, in afterCall
    super(BrowserPublication, self).afterCall(request, ob)

File "/local/home/dusty/Zope-3.4.0b1/lib/python/zope/app/ publication/zopepublication.py",
line 175, in afterCall
    txn.commit()

File "/local/home/dusty/Zope-3.4.0b1/lib/python/transaction/ _transaction.py",
line 325, in commit
    self._commitResources()

File "/local/home/dusty/Zope-3.4.0b1/lib/python/transaction/ _transaction.py",
line 424, in _commitResources
    rm.commit(self)
File "/local/home/dusty/Zope-3.4.0b1/lib/python/ZODB/ Connection.py", line
524, in commit
    self._commit(transaction)
File "/local/home/dusty/Zope-3.4.0b1/lib/python/ZODB/ Connection.py", line
569, in _commit
    self._store_objects(ObjectWriter(obj), transaction)
File "/local/home/dusty/Zope-3.4.0b1/lib/python/ZODB/ Connection.py", line
596, in _store_objects
    p = writer.serialize(obj)  # This calls __getstate__ of obj
File "/local/home/dusty/Zope-3.4.0b1/lib/python/ZODB/ serialize.py", line
407, in serialize
    return self._dump(meta, obj.__getstate__())
File "/local/home/dusty/Zope-3.4.0b1/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 file objects
----------------------

I ran all tests of additional z3c/zc packages, all went well, so it seems there's something wrong in my code, however I don't see where. I don't use
any file objects, so I'm clueless...

Best Regards,
Hermann

--
[EMAIL PROTECTED]
GPG key ID: 299893C7 (on keyservers)
FP: 0124 2584 8809 EF2A DBF9  4902 64B4 D16B 2998 93C7
_______________________________________________
Zope3-users mailing list
Zope3-users@zope.org
http://mail.zope.org/mailman/listinfo/zope3-users

_______________________________________________
Zope3-users mailing list
Zope3-users@zope.org
http://mail.zope.org/mailman/listinfo/zope3-users

Reply via email to