[Zope] ZODB issues

Dieter Maurer dieter at handshake.de
Tue Mar 1 14:35:25 EST 2005


Craig Lewis wrote at 2005-2-28 16:21 -0600:
> ...
>    klass=self._db._classFactory(self, module, name)
>  File "/www/htdocs/esginc.com/zope/lib/python/ZODB/DB.py", line 127, in 
>_classFactory
>    return getattr(__import__(location, _globals, _globals, _silly),
>ImportError: No module named *ED1fLY3QImx5D39mCNz0gw==

This is a missing ZClass...

> ...
>  File "lib/python/ZODB/fsrecover.py", line 226, in main
>    opts, (inp, outp) = getopt.getopt(sys.argv[1:], "fv:pP:")
>ValueError: unpack list of wrong size

This is a wrong call of "fsrecover.py". It need 2 non-option
arguments.

> ...
> >>> from Zope.Startup.run import configure
> >>> configure('/www/htdocs/esginc.com/zope/etc/zope.conf')
> >>> from ZODB.POSException import POSKeyError
> >>> obj=root.unrestrictedTraverse('/site1')
>Traceback (most recent call last):
>  File "<stdin>", line 1, in ?
>NameError: name 'root' is not defined

You forgot to define "root":

    from Zope import app
    root = app()

-- 
Dieter


More information about the Zope mailing list