[Zope] "No module named rotor"

Dennis Allison allison at shasta.stanford.edu
Tue Mar 14 16:38:56 EST 2006


Jeff,

Looks like you've happened on a real bug.  rotor() is used when building 
and loading pyp files but is no longer provided with Python.  You should 
file a bug report.

lib/python/App/Extensions.py
lib/python/App/Product.py

both contain references.  If you do not need cross Zope compatibility you 
should be able to safely remove the calls to rotor objects.  
Alternatively, you can write a rotor object which does nothing and use 
that.  Rotor is used to "encrypt" and "decrypt" products.  This is an
obsolete feature of Zope and generally not used (hence, no bug reports).

If you must have compatability, you can download Python1.5 and take the 
rotormodule extension (it's in C) and use it.  You'll possibly have to 
upgrade the API to conform with Zope 2.9.1 and Python 2.4.2.

Me, I'd strip out rotor and be done with it.






On Tue, 14 Mar 2006, Jeff Gentry wrote:

> On Tue, 14 Mar 2006, Jeff Gentry wrote:
> > On Tue, 14 Mar 2006, Andreas Jung wrote:
> > > Scary enough, but obviously this is dead code...otherwise Zope would
> > > not work.
> > Okay ... I will try upgrading Zope (which I've been meaning to do
> > anyways) and see if that changes things.
> 
> So I upgraded to Zope 2.9.1, using Python 2.4.2, and get the exact same
> problem.  I should note that if I make an empty product, ie just "add
> product", enter it and go to distribute that I get this same error.
> 
> exceptions.ImportError
> Sorry, a site error occurred.
> 
> Traceback (innermost last):
> 
>     * Module ZPublisher.Publish, line 188, in publish_module_standard
>     * Module ZPublisher.Publish, line 145, in publish
>     * Module ZPublisher.Publish, line 114, in publish
>     * Module ZPublisher.mapply, line 88, in mapply
>     * Module ZPublisher.Publish, line 40, in call_object
>     * Module App.Product, line 491, in index_html
>     * Module App.Product, line 202, in _distribution
> 
> ImportError: No module named rotor
> 
> 
> 
> 

-- 



More information about the Zope mailing list