« Return to Thread: Can't install SignupSheet on Zope 2.9 / Plone 2.5.2
RE: Can't install SignupSheet on Zope 2.9 / Plone 2.5.2
thanks Paul,
I tried adding manually, but I get the same error albeit with prettier
presentation.
I'm now looking at PloneFormGen. Installing both the stable and beta
releases make my entire site disappear, so just trawling through logs to
see what might be the cause..
Seems it can't install the compatibility product "Five" - will take a
look to see what that's about
File "/usr/lib/zope2.9/lib/python/Products/Five/fiveconfigure.py",
line 89, in loadProducts
handleBrokenProduct(product)
File "/usr/lib/zope2.9/lib/python/Products/Five/fiveconfigure.py",
line 67, in handleBrokenProduct
logger.error('Could not import Product %s' % product.__name__,
error=exc)
File "logging/__init__.py", line 999, in error
ZopeXMLConfigurationError: File
"/usr/lib/zope2.9/lib/python/Products/Five/skel/site.zcml", line
13.2-13.23
TypeError: _log() got an unexpected keyword argument 'error'
with PloneFormGen error the next to follow, which seems to be an issue
with the Scriptable Field bundles install of TALESField,
------
2007-06-08T16:34:06 ERROR Zope Couldn't install PloneFormGen
Traceback (most recent call last):
File "/usr/lib/zope2.9/lib/python/OFS/Application.py", line 783, in
install_product
initmethod(context)
File
"/var/lib/zope2.9/instance/plone-site/Products/PloneFormGen/__init__.py"
, line 15, in initialize
import content, validators, tools, widgets
File
"/var/lib/zope2.9/instance/plone-site/Products/PloneFormGen/content/__in
it__.py", line 7, in ?
import fields, form, fieldset
File
"/var/lib/zope2.9/instance/plone-site/Products/PloneFormGen/content/fiel
ds.py", line 15, in ?
from Products.TALESField import TALESString, TALESLines
ImportError: No module named TALESField
and finally the site doesn't render, throwing this error:
------
2007-06-08T16:35:20 ERROR root Exception while rendering an error
message
Traceback (most recent call last):
File "/usr/lib/zope2.9/lib/python/OFS/SimpleItem.py", line 223, in
raise_standardErrorMessage
v = s(**kwargs)
File
"/var/lib/zope2.9/instance/plone-site/Products/CMFCore/FSPythonScript.py
", line 108, in __call__
return Script.__call__(self, *args, **kw)
File "/usr/lib/zope2.9/lib/python/Shared/DC/Scripts/Bindings.py", line
311, in __call__
return self._bindAndExec(args, kw, None)
File "/usr/lib/zope2.9/lib/python/Shared/DC/Scripts/Bindings.py", line
348, in _bindAndExec
return self._exec(bound_data, args, kw)
File
"/var/lib/zope2.9/instance/plone-site/Products/CMFCore/FSPythonScript.py
", line 164, in _exec
result = f(*args, **kw)
File "Script (Python)", line 25, in standard_error_message
File "/usr/lib/zope2.9/lib/python/Shared/DC/Scripts/Bindings.py", line
311, in __call__
return self._bindAndExec(args, kw, None)
File "/usr/lib/zope2.9/lib/python/Shared/DC/Scripts/Bindings.py", line
348, in _bindAndExec
return self._exec(bound_data, args, kw)
File
"/var/lib/zope2.9/instance/plone-site/Products/CMFCore/FSPageTemplate.py
", line 195, in _exec
result = self.pt_render(extra_context=bound_names)
File
"/var/lib/zope2.9/instance/plone-site/Products/CMFCore/FSPageTemplate.py
", line 134, in pt_render
result = FSPageTemplate.inheritedAttribute('pt_render')(
File
"/usr/lib/zope2.9/lib/python/Products/PageTemplates/PageTemplate.py",
line 104, in pt_render
tal=not source, strictinsert=0)()
File "/usr/lib/zope2.9/lib/python/TAL/TALInterpreter.py", line 238, in
__call__
self.interpret(self.program)
File "/usr/lib/zope2.9/lib/python/TAL/TALInterpreter.py", line 281, in
interpret
handlers[opcode](self, args)
File "/usr/lib/zope2.9/lib/python/TAL/TALInterpreter.py", line 735, in
do_useMacro
macro = self.engine.evaluateMacro(macroExpr)
File "/usr/lib/zope2.9/lib/python/Products/PageTemplates/TALES.py",
line 221, in evaluate
return expression(self)
File
"/usr/lib/zope2.9/lib/python/Products/PageTemplates/Expressions.py",
line 185, in __call__
return self._eval(econtext)
File
"/usr/lib/zope2.9/lib/python/Products/PageTemplates/Expressions.py",
line 173, in _eval
ob = self._subexprs[-1](econtext)
File
"/usr/lib/zope2.9/lib/python/Products/PageTemplates/Expressions.py",
line 127, in _eval
ob = restrictedTraverse(ob, path, getSecurityManager())
File
"/usr/lib/zope2.9/lib/python/Products/PageTemplates/Expressions.py",
line 286, in restrictedTraverse
o=t(REQUEST, name)
File
"/var/lib/zope2.9/instance/plone-site/Products/Archetypes/BaseObject.py"
, line 1129, in __bobo_traverse__
raise AttributeError(name)
AttributeError: main_template
------
cheers, Nick
-----Original Message-----
From: Paul Roe - TheVirtual Limited [mailto:paul@...]
Sent: Friday, 8 June 2007 1:06 p.m.
Hi Nick,
On Fri, 2007-06-08 at 11:44 +1200, Nick Jones wrote:
> Hi all,
>
> File
>
"/var/lib/zope2.9/instance/plone-site/Products/SignupSheet/Extensions/In
stall.py", line 188, in install
>
> kupuTool.updateResourceTypes(({'resource_type' : 'linkable',
>
>
>
> File
>
"/var/lib/zope2.9/instance/plone-site/Products/kupu/plone/librarytool.py
", line 159, in updateResourceTypes
>
> portal_types = self._validate_portal_types(resource_type,
> type['portal_types'])
>
>
>
> File
>
"/var/lib/zope2.9/instance/plone-site/Products/kupu/plone/librarytool.py
", line 146, in _validate_portal_types
>
> raise KupuError, "Resource type: %s, invalid type: %s" %
> (resource_type, p)
>
>
>
> KupuError: Resource type: linkable, invalid type: SignupSheet
>
>
Usually this error happens when adding an invalid type in kupu's
resources, which it seems to be trying to do. Not sure why the
SignupSheet is not in the portal types that its looking through.
Since you're in a hurry my guess at a the quickest and dirtiest fix is
to comment out lines 188 - 193 in SignupSheet/Extensions/Install.py
aka kupuTool.updateResourceTypes(({'resource_type' : 'linkabl etc...
restart and try the install again.
If it works add the kupu bit manually via
site setup -> kupu visual editor -> resource types
Paul
--------------------------------------------------------------------------------
CAUTION: This email message and accompanying data may contain information that
is confidential and subject to legal privilege. If you are not the intended
recipient, you are notified that any use, dissemination, or copying of any part
of this message and accompanying data, is prohibited. If you have received
this message in error, please notify me immediately and delete this email
message from your computer. Thank you. Please also note that this message may
have been intercepted and modified by unknown third parties prior to its
receipt by you.
--------------------------------------------------------------------------------
_______________________________________________
NZZUG mailing list
NZZUG@...
http://lists.thevirtual.co.nz/cgi-bin/mailman/listinfo/nzzug
I tried adding manually, but I get the same error albeit with prettier
presentation.
I'm now looking at PloneFormGen. Installing both the stable and beta
releases make my entire site disappear, so just trawling through logs to
see what might be the cause..
Seems it can't install the compatibility product "Five" - will take a
look to see what that's about
File "/usr/lib/zope2.9/lib/python/Products/Five/fiveconfigure.py",
line 89, in loadProducts
handleBrokenProduct(product)
File "/usr/lib/zope2.9/lib/python/Products/Five/fiveconfigure.py",
line 67, in handleBrokenProduct
logger.error('Could not import Product %s' % product.__name__,
error=exc)
File "logging/__init__.py", line 999, in error
ZopeXMLConfigurationError: File
"/usr/lib/zope2.9/lib/python/Products/Five/skel/site.zcml", line
13.2-13.23
TypeError: _log() got an unexpected keyword argument 'error'
with PloneFormGen error the next to follow, which seems to be an issue
with the Scriptable Field bundles install of TALESField,
------
2007-06-08T16:34:06 ERROR Zope Couldn't install PloneFormGen
Traceback (most recent call last):
File "/usr/lib/zope2.9/lib/python/OFS/Application.py", line 783, in
install_product
initmethod(context)
File
"/var/lib/zope2.9/instance/plone-site/Products/PloneFormGen/__init__.py"
, line 15, in initialize
import content, validators, tools, widgets
File
"/var/lib/zope2.9/instance/plone-site/Products/PloneFormGen/content/__in
it__.py", line 7, in ?
import fields, form, fieldset
File
"/var/lib/zope2.9/instance/plone-site/Products/PloneFormGen/content/fiel
ds.py", line 15, in ?
from Products.TALESField import TALESString, TALESLines
ImportError: No module named TALESField
and finally the site doesn't render, throwing this error:
------
2007-06-08T16:35:20 ERROR root Exception while rendering an error
message
Traceback (most recent call last):
File "/usr/lib/zope2.9/lib/python/OFS/SimpleItem.py", line 223, in
raise_standardErrorMessage
v = s(**kwargs)
File
"/var/lib/zope2.9/instance/plone-site/Products/CMFCore/FSPythonScript.py
", line 108, in __call__
return Script.__call__(self, *args, **kw)
File "/usr/lib/zope2.9/lib/python/Shared/DC/Scripts/Bindings.py", line
311, in __call__
return self._bindAndExec(args, kw, None)
File "/usr/lib/zope2.9/lib/python/Shared/DC/Scripts/Bindings.py", line
348, in _bindAndExec
return self._exec(bound_data, args, kw)
File
"/var/lib/zope2.9/instance/plone-site/Products/CMFCore/FSPythonScript.py
", line 164, in _exec
result = f(*args, **kw)
File "Script (Python)", line 25, in standard_error_message
File "/usr/lib/zope2.9/lib/python/Shared/DC/Scripts/Bindings.py", line
311, in __call__
return self._bindAndExec(args, kw, None)
File "/usr/lib/zope2.9/lib/python/Shared/DC/Scripts/Bindings.py", line
348, in _bindAndExec
return self._exec(bound_data, args, kw)
File
"/var/lib/zope2.9/instance/plone-site/Products/CMFCore/FSPageTemplate.py
", line 195, in _exec
result = self.pt_render(extra_context=bound_names)
File
"/var/lib/zope2.9/instance/plone-site/Products/CMFCore/FSPageTemplate.py
", line 134, in pt_render
result = FSPageTemplate.inheritedAttribute('pt_render')(
File
"/usr/lib/zope2.9/lib/python/Products/PageTemplates/PageTemplate.py",
line 104, in pt_render
tal=not source, strictinsert=0)()
File "/usr/lib/zope2.9/lib/python/TAL/TALInterpreter.py", line 238, in
__call__
self.interpret(self.program)
File "/usr/lib/zope2.9/lib/python/TAL/TALInterpreter.py", line 281, in
interpret
handlers[opcode](self, args)
File "/usr/lib/zope2.9/lib/python/TAL/TALInterpreter.py", line 735, in
do_useMacro
macro = self.engine.evaluateMacro(macroExpr)
File "/usr/lib/zope2.9/lib/python/Products/PageTemplates/TALES.py",
line 221, in evaluate
return expression(self)
File
"/usr/lib/zope2.9/lib/python/Products/PageTemplates/Expressions.py",
line 185, in __call__
return self._eval(econtext)
File
"/usr/lib/zope2.9/lib/python/Products/PageTemplates/Expressions.py",
line 173, in _eval
ob = self._subexprs[-1](econtext)
File
"/usr/lib/zope2.9/lib/python/Products/PageTemplates/Expressions.py",
line 127, in _eval
ob = restrictedTraverse(ob, path, getSecurityManager())
File
"/usr/lib/zope2.9/lib/python/Products/PageTemplates/Expressions.py",
line 286, in restrictedTraverse
o=t(REQUEST, name)
File
"/var/lib/zope2.9/instance/plone-site/Products/Archetypes/BaseObject.py"
, line 1129, in __bobo_traverse__
raise AttributeError(name)
AttributeError: main_template
------
cheers, Nick
-----Original Message-----
From: Paul Roe - TheVirtual Limited [mailto:paul@...]
Sent: Friday, 8 June 2007 1:06 p.m.
Hi Nick,
On Fri, 2007-06-08 at 11:44 +1200, Nick Jones wrote:
> Hi all,
>
> File
>
"/var/lib/zope2.9/instance/plone-site/Products/SignupSheet/Extensions/In
stall.py", line 188, in install
>
> kupuTool.updateResourceTypes(({'resource_type' : 'linkable',
>
>
>
> File
>
"/var/lib/zope2.9/instance/plone-site/Products/kupu/plone/librarytool.py
", line 159, in updateResourceTypes
>
> portal_types = self._validate_portal_types(resource_type,
> type['portal_types'])
>
>
>
> File
>
"/var/lib/zope2.9/instance/plone-site/Products/kupu/plone/librarytool.py
", line 146, in _validate_portal_types
>
> raise KupuError, "Resource type: %s, invalid type: %s" %
> (resource_type, p)
>
>
>
> KupuError: Resource type: linkable, invalid type: SignupSheet
>
>
Usually this error happens when adding an invalid type in kupu's
resources, which it seems to be trying to do. Not sure why the
SignupSheet is not in the portal types that its looking through.
Since you're in a hurry my guess at a the quickest and dirtiest fix is
to comment out lines 188 - 193 in SignupSheet/Extensions/Install.py
aka kupuTool.updateResourceTypes(({'resource_type' : 'linkabl etc...
restart and try the install again.
If it works add the kupu bit manually via
site setup -> kupu visual editor -> resource types
Paul
--------------------------------------------------------------------------------
CAUTION: This email message and accompanying data may contain information that
is confidential and subject to legal privilege. If you are not the intended
recipient, you are notified that any use, dissemination, or copying of any part
of this message and accompanying data, is prohibited. If you have received
this message in error, please notify me immediately and delete this email
message from your computer. Thank you. Please also note that this message may
have been intercepted and modified by unknown third parties prior to its
receipt by you.
--------------------------------------------------------------------------------
_______________________________________________
NZZUG mailing list
NZZUG@...
http://lists.thevirtual.co.nz/cgi-bin/mailman/listinfo/nzzug
« Return to Thread: Can't install SignupSheet on Zope 2.9 / Plone 2.5.2
| Free embeddable forum powered by Nabble | Forum Help |