[Zope-PTK] trouble's building CMF on Windows 98 box, zope 2.3.0

Jeffrey P Shell jeffrey@Digicool.com
Sun, 25 Feb 2001 23:10:30 -0500


> I did a fresh install of zope 2.3.0 from the win32 installer. Then i
> downloaded the CMF alpha tar ball. Moved the PTKBase, PTKDemo and
> ProtalTopic folders to the products directory. On start up, there are many
> errors, but from the zope management interface, here are the tracebacks. I
> have had the CMF working on my win98 box before...
> Thanks for all the great work!
> jos yule

The CMF requires Zope 2.3.1.  This bug has been fixed in it.  Simple
instructions on fixing the bug in 2.3.0 follow below.

> PTKBase:
> Import Traceback
> Traceback (innermost last):
> File "C:\Program Files\WebSite\lib\python\OFS\Application.py", line 530,
> in import_products
>   product=__import__(pname, global_dict, global_dict, silly)
> File "C:\Program Files\WebSite\lib\python\Products\PTKBase\__init__.py",
> line 89, in ?
>   import MemberFolder, PortalObject, PortalContent, PortalFolder
> File "C:\Program
> Files\WebSite\lib\python\Products\PTKBase\PortalObject.py", line 87, in ?
>   from PortalFolder import PortalFolder
> File "C:\Program
> Files\WebSite\lib\python\Products\PTKBase\PortalFolder.py", line 119, in ?
>   class PortalFolder( Folder, DynamicType ):
> File "C:\Program Files\WebSite\lib\python\OFS\ObjectManager.py", line 221,
> in __class_init__
>   default__class_init__(self)
> File "C:\Program Files\WebSite\lib\python\App\class_init.py", line 117, in
> default__class_init__
>   security_info.apply(self)
> File "C:\Program Files\WebSite\lib\python\AccessControl\SecurityInfo.py",
> line 245, in apply
>   entry = (permission_name, tuple(names), tuple(roles))
> TypeError: tuple() argument must be a sequence

In this file (....\AccessControl\SecurityInfo.py) change line 245 from:

entry = (permission_name, tuple(names), tuple(roles))

to

entry = (permission_name, tuple(names), tuple(roles.keys()))

> PTKDemo:
> Import Traceback
> Traceback (innermost last):
> File "C:\Program Files\WebSite\lib\python\OFS\Application.py", line 530,
> in import_products
>   product=__import__(pname, global_dict, global_dict, silly)
> File "C:\Program Files\WebSite\lib\python\Products\PTKDemo\__init__.py",
> line 90, in ?
>   import Portal, ZODBMember, SQLMember
> File "C:\Program Files\WebSite\lib\python\Products\PTKDemo\Portal.py",
> line 87, in ?
>   from Products.PTKBase.PortalObject import PortalObjectBase
> ImportError: cannot import name PortalObjectBase
> 
> PortalTopic:
> Import Traceback
> Traceback (innermost last):
> File "C:\Program Files\WebSite\lib\python\OFS\Application.py", line 530,
> in import_products
>   product=__import__(pname, global_dict, global_dict, silly)
> File "C:\Program
> Files\WebSite\lib\python\Products\PortalTopic\__init__.py", line 86, in ?
>   import Topic
> File "C:\Program Files\WebSite\lib\python\Products\PortalTopic\Topic.py",
> line 87, in ?
>   from Products.PTKBase.PortalFolder import PortalFolder
> ImportError: cannot import name PortalFolder

The above fix, or Zope 2.3.1b1 or greater, will fix this problem.

--
Jeffrey P Shell, jeffrey@Digicool.com
http://www.zope.org/ | http://www.digicool.com/