[ZODB-Dev] Note for the docs: RelStorage requires at least MySQLdb 1.2.2 to work with Mysql

Anton Stonor anton at headnet.dk
Wed May 7 10:58:17 EDT 2008


Hi there,

Just wanted to share that RelStorage does not work with the MySQLdb 
1.2.1 adapter. 1.2.2 seems to work fine.

The symptom is this error message while starting up Zope:

   cPickle.UnpicklingError: unpickling stack underflow

The reason is that MySQLdb 1.2.1 tampers with the pickles while reading 
them from the db. It wraps the string "array('c', pickle)" around them, 
and of cause CPickle barfs on that.

Maybe this requirement could go into the docs?

Anton



More information about the ZODB-Dev mailing list