[Zope] zope and PYTHONPATH

Dieter Maurer dieter at handshake.de
Mon Sep 20 13:18:46 EDT 2004


Kalyan Jammigumpula wrote at 2004-9-20 10:18 -0500:
> ...
> From zope's python I want to use the modules we developed and installed 
>on the other python intance. So, I added the 
>/usr/lib/python2.2/site-packages, the python for our local use, to 
>PYTHONPATH by exporting PYTHONPATH from bash_profile. Invoking the 
>script from the command line with zope's python works without an import 
>error. However, zope/Plone combo wont startup with zopectl if I use one 
>of those modules in a basic zope product I am trying to develop. It 
>throws an ImportError. Am I missing something? Isnt it supposed to work 
>that way?
> ...
>   File "/home/accts/zope/srcczope/Products/plots/plots.py", line 3, in ?
>     from mx import DateTime
>ImportError: cannot import name DateTime

This means, it found an "mx" but it did not contain "DateTime".

Check which "mx" was found and why there is no "DateTime" there...

-- 
Dieter


More information about the Zope mailing list