[z3-five] ImportError in ZEO setups when [zope3]/lib/python is added to path

Jan-Wijbrand Kolman jw at infrae.com
Mon Oct 25 09:45:08 MEST 2004


Hi,


I guess this is not strictly a Five-problem. I'd like to describe it 
anyway and maybe someone has a better idea of where to post this issue 
to. Or has ideas how to solve this 'properly'.

Or maybe this is somewhat related to the "Zope 3 a la carte" thread on 
Zope-dev?

Anyway, if Zope-X3's lib/python is on the python path (e.g. by using 
the path directive in the zope.conf) for a ZEO Client Zope instance, 
an ImportError is raised (last couple of lines pasted):

   File "/home/jw/projects/zope273/lib/python/ZODB/config.py", line 
133, in open
     from ZEO.ClientStorage import ClientStorage
   File 
"/home/jw/projects/sandbox/ZopeX3-3.0.0b4/zope3//lib/python/ZEO/ClientStorage.py", 
line 35, in ?
   File 
"/home/jw/projects/sandbox/ZopeX3-3.0.0b4/zope3//lib/python/ZEO/zrpc/client.py", 
line 26, in ?
ImportError: No module named loglevels

IOW, the Zope-X3's /lib/python/ZEO package is imported first instead 
of Zope-2.7.3's (which then doesn't work).

I got the ZC working again by just removing the ZEO package from the 
Zope-X3 install I use for Five.


regards,
jw

-- 
Jan-Wijbrand Kolman
jw at infrae.com


More information about the z3-five mailing list