[ZODB-Dev] can't undo with FileStorage and ZEO

Jim Fulton jim@zope.com
Thu, 20 Dec 2001 11:04:39 -0500


Hm. What storage are you using?


Andrew Sydelko wrote:
> 
> Jim Fulton wrote:
> > I'm getting close to being stuck.
> >
> > Try cd-ing to your Zope/lib/python directory.
> >
> > Then run pyhon and typing:
> >
> > from App.Undo import Prefix
> >
> > Do you get any errors?
> 
> Hmmm... it didn't work at first, but then I
> added . to the sys.path and that failed as well
> 
> --andy.
> 
> # pwd
> /data/www/Zope.6/Zope/lib/python
> # /data/www/Zope.6/bin/python
> Python 2.1.1 (#1, Nov 14 2001, 10:57:28)
> [GCC 2.95.2 19991024 (release)] on sunos5
> Type "copyright", "credits" or "license" for more information.
> >>> from App.Undo import Prefix
> Traceback (most recent call last):
>   File "<stdin>", line 1, in ?
>   File "/data/www/Zope.6/src/Zope-2.4.3-src/lib/python/App/Undo.py", line 90, in ?
>     import Globals, ExtensionClass
>   File "/data/www/Zope.6/src/Zope-2.4.3-src/lib/python/Globals.py", line 90, in ?
>     import Acquisition, ComputedAttribute, App.PersistentExtra, os
>   File
> "/data/www/Zope.6/src/Zope-2.4.3-src/lib/python/App/PersistentExtra.py", line 87, in ?
>     from Persistence import Persistent
> ImportError: cannot import name Persistent
> >>> import sys
> >>> print sys.path
> ['', '/data/www/Zope.6/lib/python2.1',
> '/data/www/Zope.6/lib/python2.1/plat-sunos5',
> '/data/www/Zope.6/lib/python2.1/lib-tk',
> '/data/www/Zope.6/lib/python2.1/lib-dynload',
> '/data/www/Zope.6/lib/python2.1/site-packages']
> >>> sys.path.append('.')
> >>> from App.Undo import Prefix
> Traceback (most recent call last):
>   File "<stdin>", line 1, in ?
> ImportError: cannot import name Prefix
> >>>

--
Jim Fulton           mailto:jim@zope.com       Python Powered!        
CTO                  (888) 344-4332            http://www.python.org  
Zope Corporation     http://www.zope.com       http://www.zope.org