[Zope-dev] Strange serializing error when commiting
Hermann Himmelbauer
dusty at qwer.tk
Mon Jun 2 14:04:51 EDT 2008
Hi,
In my zope3 tests, I set up some basic test data. After that, I'm calling
transaction.commit(). However, I get the following traceback:
--------------- snip -------------------
Error in test /home/dusty/prog/zope3-inst/lib/python/zbsp/tests/../auth.txt
Traceback (most recent call last):
File "/local/home/dusty/python/Python-2.4.4/lib/python2.4/unittest.py", line
251, in run
self.setUp()
File "/local/home/dusty/Zope-3.4.0c1/lib/python/zope/testing/doctest.py",
line 2283, in setUp
self._dt_setUp(test)
File "/local/home/dusty/Zope-3.4.0c1/lib/python/zope/app/testing/functional.py",
line 739, in setUp
kwsetUp(test)
File "/home/dusty/prog/zope3-inst/lib/python/zbsp/tests/test_doc.py", line
141, in setUp
commit()
File "/local/home/dusty/Zope-3.4.0c1/lib/python/transaction/_manager.py",
line 93, in commit
return self.get().commit()
File "/local/home/dusty/Zope-3.4.0c1/lib/python/transaction/_transaction.py",
line 325, in commit
self._commitResources()
File "/local/home/dusty/Zope-3.4.0c1/lib/python/transaction/_transaction.py",
line 424, in _commitResources
rm.commit(self)
File "/local/home/dusty/Zope-3.4.0c1/lib/python/ZODB/Connection.py", line
541, in commit
self._commit(transaction)
File "/local/home/dusty/Zope-3.4.0c1/lib/python/ZODB/Connection.py", line
586, in _commit
self._store_objects(ObjectWriter(obj), transaction)
File "/local/home/dusty/Zope-3.4.0c1/lib/python/ZODB/Connection.py", line
613, in _store_objects
p = writer.serialize(obj) # This calls __getstate__ of obj
File "/local/home/dusty/Zope-3.4.0c1/lib/python/ZODB/serialize.py", line
407, in serialize
return self._dump(meta, obj.__getstate__())
File "/local/home/dusty/Zope-3.4.0c1/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 module objects
------------------ snip -------------------
Does anyone know what this means and what I can do against it?
Best Regards,
Hermann
--
hermann at qwer.tk
GPG key ID: 299893C7 (on keyservers)
FP: 0124 2584 8809 EF2A DBF9 4902 64B4 D16B 2998 93C7
More information about the Zope-Dev
mailing list