[ZODB-Dev] Looking for a specific object...

Greg Ward gward@mems-exchange.org
Wed, 6 Mar 2002 15:25:58 -0500


On 06 March 2002, Andrew Sydelko said:
> If I get an error like this:
> 
> 2002-03-06T19:39:43 ERROR(200) ZODB Couldn't load state for 
> '\x00\x00\x00\x00\x00\x08\x1dS'
> Traceback (innermost last):
>   File /data/www/Zope.9/src/Zope-2.5.0b4-src/lib/python/ZODB/Connection.py, 
> line 471, in setstate
> ImportError: No module named Splitter
> 
> how can I see what object '\x00\x00\x00\x00\x00\x08\x1dS' is referring to?

  storage = ... open Storage ...
  db = DB(storage)
  conn = db.open()
  object = conn['\x00\x00\x00\x00\x00\x08\x1dS']

However, it'll probably crash again with the same ImportError.  Try it
and see.

Are you sure your sys.path is correct, ie. Python can find all the
modules that provide classes whose instances are pickled in your
database?

        Greg
-- 
Greg Ward - software developer                gward@mems-exchange.org
MEMS Exchange                            http://www.mems-exchange.org