[Zope] Re: No module named GenericUserFolder

Dieter Maurer dieter at handshake.de
Fri Aug 15 22:19:04 EDT 2003


Andreas Tille wrote at 2003-8-15 08:29 +0200:
 > ...
 > >  >     * Module Shared.DC.ZRDB.DA, line 483, in manage_product_zclass_info
 > >  >     * Module ZODB.Connection, line 534, in setstate
 > >  >
 > >  > ImportError: No module named GenericUserFolder
 > >
 > > "Shared/DC/ZRDB/DA.py" (this contains the Z SQL Method implementation)
 > > line 483 is the place where you should place a "try: ... except: ..."
 > > around.
 >   s/should/could/
 > I definitely will not do anything if I do not know exactly what I'm doing.
 > That's why I only *could* change something if I would have some internal
 > knowledge.

Fine. It may mean however, that you have to live with your problem...

 > > Sure, you will *not* find a "GenericUserFolder" there.
 > > Zope tries to load an element from the ZODB (that is the "setstate" method
 > > in your traceback) which references "GenericUserFolder".
 > > You no longer have this product installed. Therefore, you get
 > > the ImportError.
 > In my opinion this means there is some bug regarding the referential integrity
 > and this should be fixed at first before fixing the symptoms above.

One of your ZODB objects references "GenericUserFolder" and
you have it not longer installed ...

 > If there
 > is a reference to a not existing object something is broken.  Perhaps I misunderstood
 > something and I'm requesting something which can not be implemented.
 > 
 > Is there any way to find out *which* element tries to reference "GenericUserFolder"?

You can use a debugger (--> see mailing list archives and HowTos)
to analyse the object causing the exception. You should be able to find its
class (I expect a ZClass) and its "_p_oid".



Dieter



More information about the Zope mailing list