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

Sidnei da Silva sidnei at awkly.org
Mon Oct 25 10:56:50 MEST 2004


On Mon, Oct 25, 2004 at 09:45:08AM +0200, Jan-Wijbrand Kolman wrote:
| 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.

I'm pretty sure this is written somewhere, that you should put just
the 'zope' and 'persistent' packages on PYTHONPATH. I usually make
symlinks from the z3 installation to a 'five' directory and put that
in the PYTHONPATH instead.

-- 
Sidnei da Silva <sidnei at awkly.org>
http://awkly.org - dreamcatching :: making your dreams come true
http://www.enfoldsystems.com
http://plone.org/about/team#dreamcatcher

The only "intuitive" interface is the nipple.  After that, it's all learned.
	-- Bruce Ediger, bediger at teal.csn.org, on X interfaces


More information about the z3-five mailing list