[Zope-PTK] Yet another install failure for DemoPortal

Jim Cain me@jimcain.net
Mon, 7 Feb 2000 14:34:47 -0500 (EST)


On Mon, 7 Feb 2000, Mike Pelletier wrote:

> On Mon, 7 Feb 2000, Jim Cain wrote:
> 
> > All,
> > 
> > When I attempt to import DemoPortal.zexp, I get the following error:
> > 
> > Error Type: ImportError
> > Error Value: No module named ZopeOrg.PortalContent
> > 
> > I'm wondering if this has something to do with an old ZopeOrg product that
> > is left over from my previous attempt at installing the packaged version
> > of PTK.
> 
>     Quite probably.  I had the same problem when trying to convert a
> ZClass to use a class I had moved to a different package.  If the old
> package was visible, it would always use that one regardless of which I
> had selected in the ZClass add form.  I had no end of headaches getting it
> to behave.
> 
> > I cannot delete this package however. This is the error I get:
> 
>     Such as this one.
> 
> > Error Type: SystemError
> > Error Value: Failed to import class _ZClass_for_ZopeOrgPortalBase from
> > module Products.PTKBase
> >
> > Any suggestions?
> 
>     The easiest thing to do (depending on your circumstances) is to start
> with a fresh database.  You can just delete/rename your var/Data.fs file,
> and it will generate a virgin database.  Let me know if that's not a
> feasable solution, I'll see if I can figure out how to trick it.

Okay, I rebuilt the database from scratch, which was not a big deal since
this is running on a test Zope instance.

I imported the DemoPortal and began to create a portal in my top-level
folder. On step 3 of the wizard, after clicking "Finish," I get the
following error:

Error Type: TypeError
Error Value: not enough arguments; expected 6, got 3

Traceback (innermost last):
  File /usr/local/src/Zope-2.1.3/lib/python/ZPublisher/Publish.py, line
214, in publish_module
  File /usr/local/src/Zope-2.1.3/lib/python/ZPublisher/Publish.py, line
179, in publish
  File /usr/local/src/Zope-2.1.3/lib/python/Zope/__init__.py, line 202, in
zpublisher_exception_hook
  File /usr/local/src/Zope-2.1.3/lib/python/ZPublisher/Publish.py, line
165, in publish
  File /usr/local/src/Zope-2.1.3/lib/python/ZPublisher/mapply.py, line
160, in mapply
    (Object: Portal_add)
  File /usr/local/src/Zope-2.1.3/lib/python/ZPublisher/Publish.py, line
102, in call_object
    (Object: Portal_add)
  File /usr/local/src/Zope-2.1.3/lib/python/OFS/DTMLMethod.py, line 145,
in __call__
    (Object: Portal_add)
  File /usr/local/src/Zope-2.1.3/lib/python/DocumentTemplate/DT_String.py,
line 502, in __call__
    (Object: Portal_add)
  File /usr/local/src/Zope-2.1.3/lib/python/DocumentTemplate/DT_With.py,
line 148, in render
    (Object: Portal.createInObjectManager(REQUEST['id'], REQUEST))
  File /usr/local/src/Zope/lib/python/Products/PTKDemo/Portal.py, line 56,
in install
    (Object: DemoPortalBase)
TypeError: (see above)

I'm getting closer, a little at a time. :-)

Jim