[Nuxeo-tickets] [Nuxeo Repository] #1848: All functional tests break with error message "TypeError: Can't pickle objects in acquisition wrappers"

Nuxeo Repository trac at nuxeo.com
Tue Jun 26 09:47:41 CEST 2007


#1848: All functional tests break with error message "TypeError: Can't pickle
objects in acquisition wrappers"
--------------------------+-------------------------------------------------
 Reporter:  madarche      |       Owner:  madarche 
     Type:  defect        |      Status:  new      
 Priority:  P2            |   Milestone:  CPS 3.4.5
Component:  CPS (global)  |     Version:  TRUNK    
 Severity:  normal        |    Keywords:           
--------------------------+-------------------------------------------------
 All functional tests relying on the CPSTestCase.CPSDefaultLayer ends with
 the following error message:
 {{{
   Set up Products.CPSDefault.tests.CPSTestCase.CPSDefaultLayer
 <SubscriberDef at /portal/portal_eventservice/event_recorder>
 Traceback (most recent call last):
   File "/usr/local/zope/2.9.7/bin/test.py", line 117, in ?
     sys.exit(testrunner.run(defaults))
   File "/usr/local/zope/2.9.7/lib/python/zope/testing/testrunner.py", line
 271, in run
     failed = not run_with_options(options)
   File "/usr/local/zope/2.9.7/lib/python/zope/testing/testrunner.py", line
 433, in run_with_options
     setup_layers, failures, errors)
   File "/usr/local/zope/2.9.7/lib/python/zope/testing/testrunner.py", line
 604, in run_layer
     setup_layer(layer, setup_layers)
   File "/usr/local/zope/2.9.7/lib/python/zope/testing/testrunner.py", line
 692, in setup_layer
     layer.setUp()
   File
 "/usr/local/zope/instance/cps/Products/CPSDefault/tests/CPSTestCase.py",
 line 152, in setUp
     self.install()
   File
 "/usr/local/zope/instance/cps/Products/CPSDefault/tests/CPSTestCase.py",
 line 178, in install
     transaction.commit()
   File "/usr/local/zope/2.9.7/lib/python/transaction/_manager.py", line
 96, in commit
     return self.get().commit(sub, deprecation_wng=False)
   File
 "/usr/local/zope/instance/cps/Products/CPSCompat/PatchZODBTransaction.py",
 line 175, in commit
     self._commitResources()
   File "/usr/local/zope/2.9.7/lib/python/transaction/_transaction.py",
 line 433, in _commitResources
     rm.commit(self)
   File "/usr/local/zope/2.9.7/lib/python/ZODB/Connection.py", line 484, in
 commit
     self._commit(transaction)
   File "/usr/local/zope/2.9.7/lib/python/ZODB/Connection.py", line 526, in
 _commit
     self._store_objects(ObjectWriter(obj), transaction)
   File "/usr/local/zope/2.9.7/lib/python/ZODB/Connection.py", line 553, in
 _store_objects
     p = writer.serialize(obj)  # This calls __getstate__ of obj
   File "/usr/local/zope/2.9.7/lib/python/ZODB/serialize.py", line 412, in
 serialize
     return self._dump(meta, obj.__getstate__())
 TypeError: Can't pickle objects in acquisition wrappers.
 }}}

 What is strange is that it does not happen on all machines and seems to
 only happen on faster machines.

-- 
Ticket URL: <http://svn.nuxeo.org/trac/pub/ticket/1848>
Nuxeo Repository <http://www.cps-project.org/>
Nuxeo Repository



This list archive provided by Nuxeo, the leaders of open source ECM. Check out the Nuxeo 5 open source, standards-based ECM project.