[Zope3-Users] 'exceptions.TypeError: can't pickle Checker objects' in zope.scheduler task in transaction.commit()

Adam Groszer adamg at fw.hu
Tue Feb 13 07:49:20 EST 2007


Hello Alek,

'can't pickle Checker objects' happened to me, when I tried to write a
security proxied object to the ZODB.

Monday, February 12, 2007, 4:49:01 PM, you wrote:

AK> Hello,

AK> I finally managed to access local components from zope.scheduler, but I felt to
AK> another, even worse trouble.

AK> In the zope.scheduler task I create and/or update some local objects, but then I
AK> fall into the following exception:
AK> 'exceptions.TypeError: can't pickle Checker objects' in zope.scheduler task in
AK> transaction.commit()'

AK> I scanned through web but got no clue, except that this may be something with
AK> Security Proxies. Anyway, I have no clue how to deal with that issue.

AK> The full stack trace, starting from commit() call is attached.

AK>   File XXXX, line 31, in myZopeScehdulerTask
AK>     transaction.commit()
AK>   File "C:\Python24\Lib\site-packages\transaction\_manager.py", line 96, in commit
AK>     return self.get().commit(sub, deprecation_wng=False)
AK>   File
AK> "C:\Python24\Lib\site-packages\transaction\_transaction.py", line 395, in
AK> commit
AK>     self._commitResources()
AK>   File
AK> "C:\Python24\Lib\site-packages\transaction\_transaction.py", line 495, in
AK> _commitResources
AK>     rm.commit(self)
AK>   File "C:\Python24\Lib\site-packages\ZODB\Connection.py", line 498, in commit
AK>     self._commit(transaction)
AK>   File "C:\Python24\Lib\site-packages\ZODB\Connection.py", line 543, in _commit
AK>     self._store_objects(ObjectWriter(obj), transaction)
AK>   File "C:\Python24\Lib\site-packages\ZODB\Connection.py", line 570, in
AK> _store_objects
AK>     p = writer.serialize(obj)  # This calls __getstate__ of obj
AK>   File "C:\Python24\Lib\site-packages\ZODB\serialize.py", line 407, in serialize
AK>     return self._dump(meta, obj.__getstate__())
AK>   File "C:\Python24\Lib\site-packages\ZODB\serialize.py", line 416, in _dump
AK>     self._p.dump(state)
AK>   File "C:\Python24\Lib\copy_reg.py", line 69, in _reduce_ex
AK>     raise TypeError, "can't pickle %s objects" % base.__name__
AK> exceptions.TypeError: can't pickle Checker objects


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

-- 
Best regards,
 Groszer Adam
--
Quote of the day:
The difference between a hero and a coward is one step sideways. 
- Gene Hackman 



More information about the Zope3-users mailing list