[Zope3-Users] 'exceptions.TypeError: can't pickle Checker objects'
in zope.scheduler task in transaction.commit()
Alek Kowalczyk
thealx at poczta.onet.pl
Mon Feb 12 10:49:01 EST 2007
Hello,
I finally managed to access local components from zope.scheduler, but I felt to
another, even worse trouble.
In the zope.scheduler task I create and/or update some local objects, but then I
fall into the following exception:
'exceptions.TypeError: can't pickle Checker objects' in zope.scheduler task in
transaction.commit()'
I scanned through web but got no clue, except that this may be something with
Security Proxies. Anyway, I have no clue how to deal with that issue.
The full stack trace, starting from commit() call is attached.
File XXXX, line 31, in myZopeScehdulerTask
transaction.commit()
File "C:\Python24\Lib\site-packages\transaction\_manager.py", line 96, in commit
return self.get().commit(sub, deprecation_wng=False)
File "C:\Python24\Lib\site-packages\transaction\_transaction.py", line 395, in
commit
self._commitResources()
File "C:\Python24\Lib\site-packages\transaction\_transaction.py", line 495, in
_commitResources
rm.commit(self)
File "C:\Python24\Lib\site-packages\ZODB\Connection.py", line 498, in commit
self._commit(transaction)
File "C:\Python24\Lib\site-packages\ZODB\Connection.py", line 543, in _commit
self._store_objects(ObjectWriter(obj), transaction)
File "C:\Python24\Lib\site-packages\ZODB\Connection.py", line 570, in
_store_objects
p = writer.serialize(obj) # This calls __getstate__ of obj
File "C:\Python24\Lib\site-packages\ZODB\serialize.py", line 407, in serialize
return self._dump(meta, obj.__getstate__())
File "C:\Python24\Lib\site-packages\ZODB\serialize.py", line 416, in _dump
self._p.dump(state)
File "C:\Python24\Lib\copy_reg.py", line 69, in _reduce_ex
raise TypeError, "can't pickle %s objects" % base.__name__
exceptions.TypeError: can't pickle Checker objects
More information about the Zope3-users
mailing list