Re: buildout error on plone 5

"Nestor A. Diaz" <nestor-NS/[email protected]> Tue, 13 Oct 2015 17:49:07 -0500
Newsgroups gmane.comp.web.zope.plone.user
Message-ID <[email protected]>
Hi, I finally was able to install plone 5, just executing:

# pip install setuptools --upgrade

However, when working with the interface I got the attached error when
trying to install the product: archetypes.multilingual

So I have to undo that from the management console and then install all
archetypes products before that.

Next test is triying to make it work under relstorage under postgresql,
then nginx + uwsgi + emperor and that's all for now.


AttributeError('portal_factory',) (Also, the following error occurred
while attempting to render the standard error message, please see the
event log for full details: portal_factory)

2015-10-13 17:37:52 ERROR root Exception while rendering an error message
Traceback (most recent call last):
  File
"/usr/local/plone5.0/eggs/Zope2-2.13.23-py2.7.egg/OFS/SimpleItem.py",
line 242, in raise_standardErrorMessage
    v = s(**kwargs)
  File
"/usr/local/plone5.0/eggs/Products.CMFCore-2.2.10-py2.7.egg/Products/CMFCore/FSPythonScript.py",
line 127, in __call__
    return Script.__call__(self, *args, **kw)
  File
"/usr/local/plone5.0/eggs/Zope2-2.13.23-py2.7.egg/Shared/DC/Scripts/Bindings.py",
line 322, in __call__
    return self._bindAndExec(args, kw, None)
  File
"/usr/local/plone5.0/eggs/Zope2-2.13.23-py2.7.egg/Shared/DC/Scripts/Bindings.py",
line 359, in _bindAndExec
    return self._exec(bound_data, args, kw)
  File
"/usr/local/plone5.0/eggs/Products.PythonScripts-2.13.2-py2.7.egg/Products/PythonScripts/PythonScript.py",
line 344, in _exec
    result = f(*args, **kw)
  File "Script (Python)", line 35, in standard_error_message
  File
"/usr/local/plone5.0/eggs/Zope2-2.13.23-py2.7.egg/Shared/DC/Scripts/Bindings.py",
line 322, in __call__
    return self._bindAndExec(args, kw, None)
  File
"/usr/local/plone5.0/eggs/Zope2-2.13.23-py2.7.egg/Shared/DC/Scripts/Bindings.py",
line 359, in _bindAndExec
    return self._exec(bound_data, args, kw)
  File
"/usr/local/plone5.0/eggs/Products.CMFCore-2.2.10-py2.7.egg/Products/CMFCore/FSPageTemplate.py",
line 237, in _exec
    result = self.pt_render(extra_context=bound_names)
  File
"/usr/local/plone5.0/eggs/Products.CMFCore-2.2.10-py2.7.egg/Products/CMFCore/FSPageTemplate.py",
line 177, in pt_render
    self, source, extra_context
  File
"/usr/local/plone5.0/eggs/Zope2-2.13.23-py2.7.egg/Products/PageTemplates/PageTemplate.py",
line 87, in pt_render
    showtal=showtal)
  File
"/usr/local/plone5.0/eggs/zope.pagetemplate-3.6.3-py2.7.egg/zope/pagetemplate/pagetemplate.py",
line 132, in pt_render
    strictinsert=0, sourceAnnotations=sourceAnnotations
  File
"/usr/local/plone5.0/eggs/five.pt-2.2.3-py2.7.egg/five/pt/engine.py",
line 93, in __call__
    return self.template.render(**kwargs)
  File
"/usr/local/plone5.0/eggs/z3c.pt-3.0.0a1-py2.7.egg/z3c/pt/pagetemplate.py",
line 163, in render
    return base_renderer(**context)
  File
"/usr/local/plone5.0/eggs/Chameleon-2.22-py2.7.egg/chameleon/zpt/template.py",
line 258, in render
    return super(PageTemplate, self).render(**vars)
  File
"/usr/local/plone5.0/eggs/Chameleon-2.22-py2.7.egg/chameleon/template.py",
line 191, in render
    raise_with_traceback(exc, tb)
  File
"/usr/local/plone5.0/eggs/Chameleon-2.22-py2.7.egg/chameleon/template.py",
line 171, in render
    self._render(stream, econtext, rcontext)
  File "f3457a3a9c62802ca8feae3703a9c900.py", line 1492, in render
  File "d4e82480045353e8920168e093a0555a.py", line 1192, in render_master
  File
"/usr/local/plone5.0/eggs/z3c.pt-3.0.0a1-py2.7.egg/z3c/pt/expressions.py",
line 71, in render_content_provider
    cp.update()
  File
"/usr/local/plone5.0/eggs/zope.viewlet-3.7.2-py2.7.egg/zope/viewlet/manager.py",
line 112, in update
    self._updateViewlets()
  File
"/usr/local/plone5.0/eggs/zope.viewlet-3.7.2-py2.7.egg/zope/viewlet/manager.py",
line 118, in _updateViewlets
    viewlet.update()
  File
"/usr/local/plone5.0/eggs/archetypes.multilingual-3.0.1-py2.7.egg/archetypes/multilingual/browser/viewlets.py",
line 27, in update
    if self.context.portal_factory.isTemporary(self.context):
AttributeError: portal_factory

 - Expression: "provider:plone.abovecontent"
 - Filename:   ... egg/Products/CMFPlone/browser/templates/main_template.pt
 - Location:   (line 67: col 63)
 - Source:     ...
                                       ^
 - Arguments:  repeat: {...} (0)
               template: <ImplicitAcquisitionWrapper
default_error_message at 0x7d54cd0>
               modules: <instance - at 0x26aff80>
               here: <ImplicitAcquisitionWrapper front-page at 0x7617370>
               user: <ImplicitAcquisitionWrapper - at 0x7035eb0>
               nothing: <NoneType - at 0x8879c0>
               container: <ImplicitAcquisitionWrapper Plone at 0x7831aa0>
               default: <object - at 0x7fc457c0b4f0>
               request: <instance - at 0xb521560>
               wrapped_repeat: <SafeMapping - at 0xb89a260>
               traverse_subpath: <list - at 0x997dbd8>
               loop: {...} (0)
               context: <ImplicitAcquisitionWrapper front-page at 0x7617370>
               translate: <function translate at 0x96b4c08>
               root: <ImplicitAcquisitionWrapper Zope at 0x6caa4b0>
               options: {...} (9)
               target_language: <NoneType - at 0x8879c0>

slds.

-- 
Typed on my key64.org keyboard

Nestor A Diaz


------------------------------------------------------------------------------