[Zope3-Users] Strange ZODB error

Hermann Himmelbauer dusty at qwer.tk
Thu Aug 9 09:44:23 EDT 2007


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

-- 
x1 at aon.at
GPG key ID: 299893C7 (on keyservers)
FP: 0124 2584 8809 EF2A DBF9  4902 64B4 D16B 2998 93C7


More information about the Zope3-users mailing list