[Zope] Product module reloading
Sean Treadway
seant@factory.dk
Thu, 16 Sep 1999 18:33:31 +0200
Kevin Dangoor wrote:
> In there, I think DC recommends developing your class logic from within
> python (not through the web, initially), because you don't need to worry
> about restarting servers, etc.
Yes, I would much rather debug outside of the web server but I do not
have much experience with python (this product is also an endevor to
bone up on python). When I load my product's __init__.py or most any
other module that imports Globals from the cmd line, I get get the
following:
[seant@ember Product]$ python __init__.py
Traceback (innermost last):
File "__init__.py", line 4, in ?
from ImageFile import ImageFile
File "/usr/local/zope/lib/python/ImageFile.py", line 97, in ?
from App.ImageFile import ImageFile
File "/usr/local/zope/lib/python/App/ImageFile.py", line 90, in ?
from Globals import package_home
File "/usr/local/zope/lib/python/Globals.py", line 90, in ?
import Acquisition, ComputedAttribute, App.PersistentExtra, os
File "/usr/local/zope/lib/python/App/PersistentExtra.py", line 87, in
?
from Persistence import Persistent
ImportError: cannot import name Persistent
There is nothing defined in the module Persistence which makes me wonder
a bit about what is going on. My PYTHONPATH includes
.../zope/lib/python and I am running the python binary from a 1.5.2
installation rather than the Zope installation.
Any insight would be appreciated.
Thanks,
-Sean
P.S. This product is going to be used for building dynamic SMIL
multimedia presentations (drag and drop style, thanks to Zope). There
are some interesting challenges regarding multiple visual areas, media
sources, timing, live/archived, etc. If you are interested in
talking/thinking about this product let me know, I would love some
collaboration.