[Zope-dev] Dependency problem with SimpleItem

Shane Hathaway shane@zope.com
Wed, 06 Feb 2002 17:33:39 -0500


Romain Slootmaekers wrote:
> Yo dudes,
> I have problems with dependencies on Zope 2.4.3:
> 
> If I try to import OFS.SimpleItem directly, I get following problem.
 > (snip)
> ImportError: cannot import name Persistent
> If you do 'import Zope' first, you don't have this problem.
> 
> But I can't do that because I use my SimpleItem in a process other than
> the zope server. and then I get problems with the lock on the Zope
> database. I just want to construct a SimpleItem, and store it somewhere
> else than the database that the zope server uses.... 

It usually works to import ZODB instead.

Shane