[Zope] Zope doesn't start...

Martijn Pieters mj@digicool.com
Tue, 12 Sep 2000 17:24:14 +0200


On Tue, Sep 12, 2000 at 11:24:18AM -0300, César A. K. Grossmann wrote:
> Hi
> 
> I'm having some strange problems with the RPM version of Zope 2.2.1: it
> starts, but dies without any message in /var/log/messages.
> 
> I try to run it by hand, and get these messages:
> 
> [root@server zope]# ./zserver.sh
> [root@server zope]# Traceback (innermost last):
>   File "z2.py", line 554, in ?
>     exec "import "+MODULE in {}
>   File "<string>", line 1, in ?
>   File "/usr/share/zope/lib/python/Zope/__init__.py", line 95, in ?
>     import Globals, OFS.Application, sys
>   File "/usr/share/zope/lib/python/OFS/Application.py", line 91, in ?
>     import Globals,Folder,os,sys,App.Product, App.ProductRegistry, misc_
>   File "/usr/share/zope/lib/python/App/Product.py", line 118, in ?
>     from HelpSys.HelpSys import ProductHelp
>   File "/usr/share/zope/lib/python/HelpSys/__init__.py", line 87, in ?
>     import HelpSys
>   File "/usr/share/zope/lib/python/HelpSys/HelpSys.py", line 93, in ?
>     import HelpTopic
>   File "/usr/share/zope/lib/python/HelpSys/HelpTopic.py", line 95, in ?
>     class HelpTopicBase:
>   File "/usr/share/zope/lib/python/HelpSys/HelpTopic.py", line 116, in
> HelpTopicBase
>     permissions_values=ComputedAttribute(_permissions_values, 1)
> TypeError: too many arguments; expected 2, got 3
> 
> I'm running it in a Conectiva Linux (glibc 2.1.2, similar to Red Hat
> 6.x). The packages are:
> 
> Zope-2.2.1-1
> Zope-zserver-2.2.1-1

This is a problem with the RPM's caused by the fact that an out-of-date
python version of ComputedAttribute gets selected over the newer C
extention. You can safely delete the old version, which shouldn't be in
the RPM at all.

Remove ComputedAttribute.py and things should be better. In the source
distribution it is located in lib/Components/ExtensionClass, which isn't
included in the Linux binary distribution.

This procedure hasn't been tested by me, but is based on a report from
Jeff Rush. I assumed he had removed the file already.

-- 
Martijn Pieters
| Software Engineer            mailto:mj@digicool.com
| Digital Creations          http://www.digicool.com/
| Creators of Zope               http://www.zope.org/
| ZopeStudio: http://www.zope.org/Products/ZopeStudio
-----------------------------------------------------