[Zope] 2.13 upgrade problems

2011-06-03 Thread Peter Bengtsson
I'm getting the error below when trying to boot up a zope 2.13.7 using
a Data.fs I took from a zope 2.8.12 instance.
Having Products.ZSQLMethods-2.13.3 installed or not installed doesn't
appear to be relevant.
The fortunate thing, in this instance, is that the SQLMethods in that
instance are not important to me so I'd be happy to delete them if I
could.
However, I tried with ./bin/zopectl debug
 del app.www['id_of_a_zsql_method']
but that raises the same TypeError.

Any ideas?


2011-06-03 11:36:27 ERROR ZODB.Connection Couldn't load state for 0x5528
Traceback (most recent call last):
  File 
/Users/peterbe/dev/ZOPE/Zope2-2.13.7/eggs/ZODB3-3.10.2-py2.6-macosx-10.4-x86_64.egg/ZODB/Connection.py,
line 856, in setstate
self._setstate(obj)
  File 
/Users/peterbe/dev/ZOPE/Zope2-2.13.7/eggs/ZODB3-3.10.2-py2.6-macosx-10.4-x86_64.egg/ZODB/Connection.py,
line 910, in _setstate
self._reader.setGhostState(obj, p)
  File 
/Users/peterbe/dev/ZOPE/Zope2-2.13.7/eggs/ZODB3-3.10.2-py2.6-macosx-10.4-x86_64.egg/ZODB/serialize.py,
line 612, in setGhostState
state = self.getState(pickle)
  File 
/Users/peterbe/dev/ZOPE/Zope2-2.13.7/eggs/ZODB3-3.10.2-py2.6-macosx-10.4-x86_64.egg/ZODB/serialize.py,
line 605, in getState
return unpickler.load()
TypeError: ('argument list must be a tuple', class
'Shared.DC.ZRDB.DA.SQL', None)

-- 
Peter Bengtsson,
home www.peterbe.com
fun donecal.com
work www.mozilla.com
___
Zope maillist  -  Zope@zope.org
https://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 https://mail.zope.org/mailman/listinfo/zope-announce
 https://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] 2.13 upgrade problems

2011-06-03 Thread Martijn Pieters
On Fri, Jun 3, 2011 at 12:42, Peter Bengtsson m...@peterbe.com wrote:
 I'm getting the error below when trying to boot up a zope 2.13.7 using
 a Data.fs I took from a zope 2.8.12 instance.

You may want to try to boot up the instance on intermediary Zope
versions first, it may well update the pickles for you along the way.

-- 
Martijn Pieters
___
Zope maillist  -  Zope@zope.org
https://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 https://mail.zope.org/mailman/listinfo/zope-announce
 https://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] 2.13 upgrade problems

2011-06-03 Thread Chris Withers
On 03/06/2011 15:25, Martijn Pieters wrote:
 On Fri, Jun 3, 2011 at 12:42, Peter Bengtssonm...@peterbe.com  wrote:
 I'm getting the error below when trying to boot up a zope 2.13.7 using
 a Data.fs I took from a zope 2.8.12 instance.

 You may want to try to boot up the instance on intermediary Zope
 versions first, it may well update the pickles for you along the way.

Not quite.

I hit this problem going from Zope 2.9 to 2.12.

The answer was to load up on 2.9, save all the affected objects 
(_p_changed = 1 or some such) and then try moving to 2.12 again...

cheers,

Chris

-- 
Simplistix - Content Management, Batch Processing  Python Consulting
- http://www.simplistix.co.uk
___
Zope maillist  -  Zope@zope.org
https://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 https://mail.zope.org/mailman/listinfo/zope-announce
 https://mail.zope.org/mailman/listinfo/zope-dev )