Mailing List Archive

[Zope-PTK] PTK install failure
Using Zope 2.1.4 on the Debian 2.2 pre-release, I can't get DemoPortal.zexp
imported. In fact, I don't think I've ever succeeded in importing a Z class.
The stack trace is below. Would one of you like to look at my system?

Thanks

Bruce

<!--
Error type: KeyError
Error value: finish
-->
<p><a href="http://www.zope.org/Credits"><img src="http://root.perens.com/p_/ZopeButton" width="115" height="50" border="0" alt="Powered by Zope"></a></p>
</BODY></HTML>
<!--
Traceback (innermost last):
File /usr/lib/zope/lib/python/ZPublisher/Publish.py, line 232, in publish_module
File /usr/lib/zope/lib/python/ZPublisher/Publish.py, line 197, in publish
File /usr/lib/zope/lib/python/Zope/__init__.py, line 202, in zpublisher_exception_hook
(Object: ElementWithAttributes)
File /usr/lib/zope/lib/python/ZPublisher/Publish.py, line 183, in publish
File /usr/lib/zope/lib/python/ZPublisher/mapply.py, line 160, in mapply
(Object: manage_importObject)
File /usr/lib/zope/lib/python/ZPublisher/Publish.py, line 110, in call_object
(Object: manage_importObject)
File /usr/lib/zope/lib/python/OFS/ObjectManager.py, line 482, in manage_importObject
(Object: ElementWithAttributes)
File /usr/lib/zope/lib/python/OFS/ObjectManager.py, line 232, in _setObject
(Object: ElementWithAttributes)
File /usr/lib/zope/lib/python/OFS/ObjectManager.py, line 248, in manage_afterAdd
(Object: ElementWithAttributes)
File /usr/lib/zope/lib/python/ZClasses/ZClass.py, line 413, in manage_afterAdd
(Object: Portal)
File /usr/lib/zope/lib/python/OFS/ObjectManager.py, line 245, in manage_afterAdd
(Object: ElementWithAttributes)
File /usr/lib/zope/lib/python/OFS/ObjectManager.py, line 293, in objectValues
(Object: ElementWithAttributes)
File /usr/lib/zope/lib/python/ZClasses/Method.py, line 204, in _getOb
(Object: ElementWithAttributes)
File /usr/lib/zope/lib/python/ZClasses/ZClass.py, line 498, in getClassAttr
(Object: Portal)
KeyError: (see above)
Re: [Zope-PTK] PTK install failure [ In reply to ]
Bruce Perens wrote:
>
> Using Zope 2.1.4 on the Debian 2.2 pre-release, I can't get DemoPortal.zexp
> imported. In fact, I don't think I've ever succeeded in importing a Z class.
> The stack trace is below. Would one of you like to look at my system?

Just a quick check -- you are importing into the Control Panel | Products
folder, right? ZClass-based products are still products, and can only live
there. ZClass _instances_, on the other hand, can be imported almost anywhere
_except_ there.

>
> Thanks
>
> Bruce
>
> <!--
> Error type: KeyError
> Error value: finish
> -->
> <p><a href="http://www.zope.org/Credits"><img src="http://root.perens.com/p_/ZopeButton" width="115" height="50" border="0" alt="Powered by Zope"></a></p>
> </BODY></HTML>
> <!--
> Traceback (innermost last):
> File /usr/lib/zope/lib/python/ZPublisher/Publish.py, line 232, in publish_module
> File /usr/lib/zope/lib/python/ZPublisher/Publish.py, line 197, in publish
> File /usr/lib/zope/lib/python/Zope/__init__.py, line 202, in zpublisher_exception_hook
> (Object: ElementWithAttributes)
> File /usr/lib/zope/lib/python/ZPublisher/Publish.py, line 183, in publish
> File /usr/lib/zope/lib/python/ZPublisher/mapply.py, line 160, in mapply
> (Object: manage_importObject)
> File /usr/lib/zope/lib/python/ZPublisher/Publish.py, line 110, in call_object
> (Object: manage_importObject)
> File /usr/lib/zope/lib/python/OFS/ObjectManager.py, line 482, in manage_importObject
> (Object: ElementWithAttributes)
> File /usr/lib/zope/lib/python/OFS/ObjectManager.py, line 232, in _setObject
> (Object: ElementWithAttributes)
> File /usr/lib/zope/lib/python/OFS/ObjectManager.py, line 248, in manage_afterAdd
> (Object: ElementWithAttributes)
> File /usr/lib/zope/lib/python/ZClasses/ZClass.py, line 413, in manage_afterAdd
> (Object: Portal)
> File /usr/lib/zope/lib/python/OFS/ObjectManager.py, line 245, in manage_afterAdd
> (Object: ElementWithAttributes)
> File /usr/lib/zope/lib/python/OFS/ObjectManager.py, line 293, in objectValues
> (Object: ElementWithAttributes)
> File /usr/lib/zope/lib/python/ZClasses/Method.py, line 204, in _getOb
> (Object: ElementWithAttributes)
> File /usr/lib/zope/lib/python/ZClasses/ZClass.py, line 498, in getClassAttr
> (Object: Portal)
> KeyError: (see above)

I could be wrong above -- this is not the error I see when trying to import a
"product" export file into a normal folder.

Tres.
--
=========================================================
Tres Seaver tseaver@palladion.com 713-523-6582
Palladion Software http://www.palladion.com
Re: [Zope-PTK] PTK install failure [ In reply to ]
On Sun, 27 Feb 2000, Bruce Perens wrote:

> Using Zope 2.1.4 on the Debian 2.2 pre-release, I can't get DemoPortal.zexp
> imported. In fact, I don't think I've ever succeeded in importing a Z class.
> The stack trace is below. Would one of you like to look at my system?

That's a new one to me. I don't have a solution off the top of my
head. Is this typical of the error you get trying to import other
ZClasses? Are you aware of anything unusual about your installation?
(Perhaps a split software and instance home?) Can you _create_
through-the-web products and ZClasses? Export them? Reimport them?
Especially one which uses base classes defined in a python product. I'm
grasping at straws a bit here, obviously, but maybe one will turn
something up.

Mike.

--
Mike Pelletier email: mike@digicool.com
Mild mannered software developer icq: 7127228
by day, super villain by night. phone: 519-884-2434