AttributeError __getitem__ after moving Plone site - plone

After moving my buildout from one server to another, along with the Data.fs and blobstorage directory
I'm starting to get the following error when I visit the site front page:
Error Type: AttributeError
Error Value: __getitem__
Here's the traceback:
2013-07-23 19:55:20 ERROR Zope.SiteErrorLog 1374602120.540.80110008228 http://myplonesite.org:19086/Plone
Module ZPublisher.Publish, line 115, in publish
Module ZPublisher.BaseRequest, line 437, in traverse
Module Products.CMFCore.PortalObject, line 78, in __before_publishing_traverse__
Module zope.event, line 23, in notify
Module zope.component._api, line 136, in subscribers
Module zope.component.registry, line 321, in subscribers
Module zope.component.event, line 32, in objectEventNotify
Module zope.component._api, line 136, in subscribers
Module zope.interface.adapter, line 583, in subscribers
Module plone.app.theming.plugins.hooks, line 37, in onRequest
AttributeError: __getitem__
2013-07-23 19:55:20 ERROR plone.subrequest Error handling subrequest to /++theme++ccrp-5.9/rules.xml
File "/home/plone/ccrp.transmorgrifier.buildout/eggs/plone.subrequest-1.6.7-py2.7.egg/plone/subrequest/__init_
_.py", line 116, in subrequest
File "/home/plone/ccrp.transmorgrifier.buildout/eggs/Zope2-2.13.8-py2.7.egg/ZPublisher/BaseRequest.py", line 4
37, in traverse
File "/home/plone/ccrp.transmorgrifier.buildout/eggs/Zope2-2.13.8-py2.7.egg/ZPublisher/BeforeTraverse.py", lin
e 97, in __call__
File "/home/plone/ccrp.transmorgrifier.buildout/eggs/Products.CMFCore-2.2.4-py2.7.egg/Products/CMFCore/PortalO
bject.py", line 78, in __before_publishing_traverse__
File "/home/plone/ccrp.transmorgrifier.buildout/eggs/zope.event-3.5.0_1-py2.7.egg/zope/event/__init__.py", lin
e 23, in notify
subscriber(event)
File "/home/plone/ccrp.transmorgrifier.buildout/eggs/zope.component-3.9.5-py2.7.egg/zope/component/event.py",
line 24, in dispatch
File "/home/plone/ccrp.transmorgrifier.buildout/eggs/zope.component-3.9.5-py2.7.egg/zope/component/_api.py", l
ine 136, in subscribers
File "/home/plone/ccrp.transmorgrifier.buildout/eggs/zope.component-3.9.5-py2.7.egg/zope/component/registry.py
", line 321, in subscribers
File "/home/plone/ccrp.transmorgrifier.buildout/eggs/zope.interface-3.6.3-py2.7-linux-x86_64.egg/zope/interfac
subscription(*objects)
line 32, in objectEventNotify
zope.component.subscribers((event.object, event), None)
ine 136, in subscribers
return sitemanager.subscribers(objects, interface)
", line 321, in subscribers
return self.adapters.subscribers(objects, provided)
File "/home/plone/ccrp.transmorgrifier.buildout/eggs/zope.interface-3.6.3-py2.7-linux-x86_64.egg/zope/interfac
e/adapter.py", line 583, in subscribers
subscription(*objects)
File "/home/plone/ccrp.transmorgrifier.buildout/eggs/plone.app.theming-1.1-py2.7.egg/plone/app/theming/plugins
/hooks.py", line 37, in onRequest
themeDirectory = queryResourceDirectory(THEME_RESOURCE_NAME, theme)
File "/home/plone/ccrp.transmorgrifier.buildout/eggs/plone.resource-1.0.2-py2.7.egg/plone/resource/utils.py",
line 62, in queryResourceDirectory
AttributeError: __getitem__
2013-07-23 19:55:20 ERROR plone.transformchain Unexpected error whilst trying to apply transform chain
Traceback (most recent call last):
File "/home/plone/ccrp.transmorgrifier.buildout/eggs/plone.transformchain-1.0-py2.7.egg/plone/transformchain/t
ransformer.py", line 42, in __call__
newResult = handler.transformIterable(result, encoding)
File "/home/plone/ccrp.transmorgrifier.buildout/eggs/plone.app.theming-1.1-py2.7.egg/plone/app/theming/transfo
rm.py", line 170, in transformIterable
transform = self.setupTransform(runtrace=runtrace)
File "/home/plone/ccrp.transmorgrifier.buildout/eggs/plone.app.theming-1.1-py2.7.egg/plone/app/theming/transfo
rm.py", line 108, in setupTransform
transform = compileThemeTransform(rules, absolutePrefix, readNetwork, parameterExpressions, runtrace=runtrac
e)
File "/home/plone/ccrp.transmorgrifier.buildout/eggs/plone.app.theming-1.1-py2.7.egg/plone/app/theming/utils.p
y", line 579, in compileThemeTransform
runtrace=runtrace,
File "/home/plone/ccrp.transmorgrifier.buildout/eggs/diazo-1.0.3-py2.7.egg/diazo/compiler.py", line 107, in co
mpile_theme
read_network=read_network,
File "/home/plone/ccrp.transmorgrifier.buildout/eggs/diazo-1.0.3-py2.7.egg/diazo/rules.py", line 166, in proce
ss_rules
rules_doc = etree.parse(rules, parser=rules_parser)
File "lxml.etree.pyx", line 2706, in lxml.etree.parse (src/lxml/lxml.etree.c:49958)
File "parser.pxi", line 1500, in lxml.etree._parseDocument (src/lxml/lxml.etree.c:71797)
File "parser.pxi", line 1529, in lxml.etree._parseDocumentFromURL (src/lxml/lxml.etree.c:72080)
File "parser.pxi", line 1429, in lxml.etree._parseDocFromFile (src/lxml/lxml.etree.c:71175)
File "parser.pxi", line 975, in lxml.etree._BaseParser._parseDocFromFile (src/lxml/lxml.etree.c:68173)
File "parser.pxi", line 539, in lxml.etree._ParserContext._handleParseResultDoc (src/lxml/lxml.etree.c:64257)
File "parser.pxi", line 625, in lxml.etree._handleParseResult (src/lxml/lxml.etree.c:65178)
File "parser.pxi", line 563, in lxml.etree._raiseParseError (src/lxml/lxml.etree.c:64493)
IOError: Error reading file '/++theme++ccrp-5.9/rules.xml': failed to load external entity "/++theme++ccrp-5.9/r
ules.xml"

In moving the site I did not relocate the blobstorage files properly on the new server. After putting blobstorage and filestorage in the right place, everything just worked as expected. These errors were caused by missing blobstorage items.

Related

Airflow Web UI LDAP authentication throws AttributeError: 'NoneType' object has no attribute 'username

I have configured LDAP authentication for airflow, managed in OpenShift.
If I access the web UI, without clearing cache, after a redeployment, it throws the following error in web server.
It works after the browser cache is cleared.
Traceback (most recent call last):
File "/usr/local/lib/python3.7/site-packages/gunicorn/workers/sync.py", line 134, in handle
self.handle_request(listener, req, client, addr)
File "/usr/local/lib/python3.7/site-packages/gunicorn/workers/sync.py", line 175, in handle_request
respiter = self.wsgi(environ, resp.start_response)
File "/usr/local/lib/python3.7/site-packages/werkzeug/middleware/dispatcher.py", line 66, in __call__
return app(environ, start_response)
File "/usr/local/lib/python3.7/site-packages/flask/app.py", line 2464, in __call__
return self.wsgi_app(environ, start_response)
File "/usr/local/lib/python3.7/site-packages/werkzeug/middleware/proxy_fix.py", line 232, in __call__
return self.app(environ, start_response)
File "/usr/local/lib/python3.7/site-packages/flask/app.py", line 2450, in wsgi_app
response = self.handle_exception(e)
File "/usr/local/lib/python3.7/site-packages/flask/app.py", line 1879, in handle_exception
server_error = handler(server_error)
File "/usr/local/lib/python3.7/site-packages/airflow/www/views.py", line 776, in show_traceback
fallback=True) else 'Error! Please contact server admin'), 500
File "/usr/local/lib/python3.7/site-packages/flask/templating.py", line 136, in render_template
ctx.app.update_template_context(context)
File "/usr/local/lib/python3.7/site-packages/flask/app.py", line 838, in update_template_context
context.update(func())
File "/usr/local/lib/python3.7/site-packages/flask_login/utils.py", line 368, in _user_context_processor
return dict(current_user=_get_user())
File "/usr/local/lib/python3.7/site-packages/flask_login/utils.py", line 335, in _get_user
current_app.login_manager._load_user()
File "/usr/local/lib/python3.7/site-packages/flask_login/login_manager.py", line 359, in _load_user
return self.reload_user()
File "/usr/local/lib/python3.7/site-packages/flask_login/login_manager.py", line 321, in reload_user
user = self.user_callback(user_id)
File "/usr/local/lib/python3.7/site-packages/airflow/utils/db.py", line 74, in wrapper
return func(*args, **kwargs)
File "/usr/local/lib/python3.7/site-packages/airflow/contrib/auth/backends/ldap_auth.py", line 280, in load_user
return LdapUser(user)
File "<string>", line 4, in __init__
File "/usr/local/lib/python3.7/site-packages/sqlalchemy/orm/state.py", line 433, in _initialize_instance
manager.dispatch.init_failure(self, args, kwargs)
File "/usr/local/lib/python3.7/site-packages/sqlalchemy/util/langhelpers.py", line 69, in __exit__
exc_value, with_traceback=exc_tb,
File "/usr/local/lib/python3.7/site-packages/sqlalchemy/util/compat.py", line 182, in raise_
raise exception
File "/usr/local/lib/python3.7/site-packages/sqlalchemy/orm/state.py", line 430, in _initialize_instance
return manager.original_init(*mixed[1:], **kwargs)
File "/usr/local/lib/python3.7/site-packages/airflow/contrib/auth/backends/ldap_auth.py", line 184, in __init__
user.username
AttributeError: 'NoneType' object has no attribute 'username
Am I missing out anything in airflow.cfg?

Plone upgrade 2.1.3 > 3.0.6 fails with catalog errors

I'm upgrading an almost vanilla Plone from 2.1.3 to 3.0.6 (that's old stuff, I know). portal_migration successfully performs the migration, but then reports errors in rebuilding the catalog
End of upgrade path, migration has finished
Your ZODB and Filesystem Plone instances are now up-to-date.
Exception was thrown while cataloging
File "/home/applinet/local/intranet/plone/intranet/Products/CMFPlone/MigrationTool.py", line 262, in upgrade catalog.refreshCatalog(clear=1)
File "/home/applinet/local/intranet/plone/installation/lib/python/Products/ZCatalog/ZCatalog.py", line 281, in refreshCatalog cat.clear()
File "/home/applinet/local/intranet/plone/installation/lib/python/Products/ZCatalog/Catalog.py", line 108, in clear self.getIndex(index).clear()
Viewing the site fails with an exception in event.log that also seems catalog related:
2017-09-05T17:33:27 ERROR Zope.SiteErrorLog
http://stretch.fritz.box:49171/intranet/folder_listing
Traceback (innermost last):
Module ZPublisher.Publish, line 119, in publish
Module ZPublisher.mapply, line 88, in mapply
Module ZPublisher.Publish, line 42, in call_object
Module Shared.DC.Scripts.Bindings, line 313, in __call__
Module Shared.DC.Scripts.Bindings, line 350, in _bindAndExec
Module Products.CMFCore.FSPageTemplate, line 216, in _exec
Module Products.CMFCore.FSPageTemplate, line 155, in pt_render
Module Products.PageTemplates.PageTemplate, line 89, in pt_render
Module zope.pagetemplate.pagetemplate, line 117, in pt_render
- Warning: Macro expansion failed
- Warning: exceptions.KeyError: 'kss_generic_macros'
Module zope.tal.talinterpreter, line 271, in __call__
Module zope.tal.talinterpreter, line 346, in interpret
Module zope.tal.talinterpreter, line 891, in do_useMacro
Module zope.tal.talinterpreter, line 346, in interpret
Module zope.tal.talinterpreter, line 536, in do_optTag_tal
Module zope.tal.talinterpreter, line 521, in do_optTag
Module zope.tal.talinterpreter, line 516, in no_tag
Module zope.tal.talinterpreter, line 346, in interpret
Module zope.tal.talinterpreter, line 891, in do_useMacro
Module zope.tal.talinterpreter, line 346, in interpret
Module zope.tal.talinterpreter, line 586, in do_setLocal_tal
Module zope.tales.tales, line 696, in evaluate
- URL: file:/home/applinet/local/intranet/plone/intranet/Products/CMFPlone/skins/plone_templates/global_defines.pt
- Line 8, Column 0
- Expression: <PathExpr standard:u'plone_view/globalize'>
- Names:
{'container': <PloneSite at /intranet>,
'context': <PloneSite at /intranet>,
'default': <object object at 0x7ff78a528200>,
'here': <PloneSite at /intranet>,
'loop': {},
'nothing': None,
'options': {'args': ()},
'repeat': <Products.PageTemplates.Expressions.SafeMapping object at 0x7ff76027e758>,
'request': <HTTPRequest, URL=http://stretch.fritz.box:49171/intranet/folder_listing>,
'root': <Application at >,
'template': <FSPageTemplate at /intranet/folder_listing>,
'traverse_subpath': [],
'user': <PropertiedUser 'admin'>}
Module zope.tales.expressions, line 217, in __call__
Module Products.PageTemplates.Expressions, line 161, in _eval
Module Products.PageTemplates.Expressions, line 123, in render
Module Products.CMFPlone.browser.ploneview, line 68, in globalize
Module Products.CMFPlone.browser.ploneview, line 125, in _initializeData
Module Products.CMFPlone.browser.navigation, line 182, in topLevelTabs
Module Products.ZCatalog.Lazy, line 158, in __getitem__
Module Products.ZCatalog.Catalog, line 127, in __getitem__
KeyError: 403495479
An attempt to update the catalog in ZMI > site > portal_catalog > Advanced also fails:
2017-09-05T18:05:03 ERROR Zope.SiteErrorLog http://stretch.fritz.box:49171/intranet/portal_catalog/manage_catalogReindex
Traceback (innermost last):
Module ZPublisher.Publish, line 119, in publish
Module ZPublisher.mapply, line 88, in mapply
Module ZPublisher.Publish, line 42, in call_object
Module Products.ZCatalog.ZCatalog, line 260, in manage_catalogReindex
Module Products.ZCatalog.ZCatalog, line 281, in refreshCatalog
Module Products.ZCatalog.Catalog, line 108, in clear
AttributeError: clear
Any tips or ideas as to what may be causing this?
I found the problem. The list of indexes in the Plone Catalog Tool shows three indexes in broken state, because the product TextIndexNG3 was not installed.
I installed TextIndexNG3 3.2.5 and that solved it.

I got a POSKeyError in my plone site, and only broken in a floder, other contents are correct

In my plone site, an error message in a folder, as below
POSKeyError('\x00\x00\x00\x00\x00\x00s\x10',) (Also, the following error occurred while attempting to render the standard error message, please see the event log for full details: s)
And, in client1/event.log, I can find the detail message as below:
Traceback (innermost last):
Module ZPublisher.Publish, line 138, in publish
Module ZPublisher.mapply, line 77, in mapply
Module ZPublisher.Publish, line 48, in call_object
Module plone.dexterity.content, line 707, in manage_delObjects
Module OFS.ObjectManager, line 540, in manage_delObjects
Module Products.BTreeFolder2.BTreeFolder2, line 477, in _delObject
Module zope.event, line 31, in notify
Module zope.component.event, line 24, in dispatch
Module zope.component._api, line 136, in subscribers
Module zope.component.registry, line 321, in subscribers
Module zope.interface.adapter, line 585, in subscribers
Module zope.component.event, line 32, in objectEventNotify
Module zope.component._api, line 136, in subscribers
Module zope.component.registry, line 321, in subscribers
Module zope.interface.adapter, line 585, in subscribers
Module OFS.subscribers, line 101, in dispatchObjectWillBeMovedEvent
Module zope.container.contained, line 152, in dispatchToSublocations
Module OFS.subscribers, line 81, in sublocations
Module plone.folder.ordered, line 87, in objectValues
Module plone.folder.ordered, line 75, in objectIds
Module plone.folder.default, line 152, in idsInOrder
Module plone.folder.default, line 163, in _order
Module zope.annotation.attribute, line 44, in get
Module ZODB.Connection, line 860, in setstate
Module ZODB.Connection, line 901, in _setstate
Module ZEO.ClientStorage, line 833, in load
Module ZEO.ServerStub, line 176, in loadEx
Module ZEO.zrpc.connection, line 768, in call
POSKeyError: 0x7310
I have no idea to solve it, Any suggestions?
I solve this problem reference this post:
http://plonechix.blogspot.tw/2009/12/definitive-guide-to-poskeyerror.html
The complete operation like below,
Into the command line
bin/zopepy
And then,
from AccessControl.SecurityManagement import newSecurityManager
from Testing import makerequest
from ZODB import FileStorage, DB
import transaction
storage = FileStorage.FileStorage('path_to/Data.fs')
db = DB(storage)
connection = db.open()
root = connection.root()
app = root['Application']
admin = app.acl_users.getUserById('admin')
admin = admin.of(app.acl_users)
newSecurityManager(None, admin)
req=makerequest.makerequest(app.mysite.bad_folder)
req.manage_delObjects(['bad_content'])
transaction.commit()
At last, must be clear and rebuild catalog at portal_catalog in ZMI.

Plone Multilang Sitemaps are Empty

Running Plone version 5.0.5 with plone.app.multilingual activated I have noticed the site maps behaving strangely.
If I go to mysite.com/en-gb/sitemap I get the sitemap view for that language, fine.
If I go then go to mysite.com/en-gb/sitemap.xml.gz, download and extract the file .xml file, I get an empty site map (please see contents of file, below):
<?xml version="1.0" encoding="UTF-8"?>
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.sitemaps.org/schemas/sitemap/0.9 http://www.sitemaps.org/schemas/sitemap/0.9/sitemap.xsd">
</urlset>
I get the same site map if I go to mysite.com/sitemap.xml.gz.
Control Panel
I've tried checking over the "Languages" section but I can't see anything related to a site map there. I have of course ensured "Expose sitemap.xml.gz" is ticked in "Site".
Portal Catalog
I tried a clear and rebuild of the catalog to no avail.
collective.linguasitemap
Tried installing this but I don't think it works for Plone 5.0.5. When I try to install it on this Plone 5.0.5 site, buildout goes through okay but I get the following when trying to load my client:
Traceback (most recent call last):
File "/opt/plone/z01/parts/client1/bin/interpreter", line 302, in <module>
exec(compile(__file__f.read(), __file__, "exec"))
File "/opt/plone/buildout-cache/eggs/Zope2-2.13.24-py2.7.egg/Zope2/Startup/run.py", line 76, in <module>
run()
File "/opt/plone/buildout-cache/eggs/Zope2-2.13.24-py2.7.egg/Zope2/Startup/run.py", line 22, in run
starter.prepare()
File "/opt/plone/buildout-cache/eggs/Zope2-2.13.24-py2.7.egg/Zope2/Startup/__init__.py", line 92, in prepare
self.startZope()
File "/opt/plone/buildout-cache/eggs/Zope2-2.13.24-py2.7.egg/Zope2/Startup/__init__.py", line 268, in startZope
Zope2.startup()
File "/opt/plone/buildout-cache/eggs/Zope2-2.13.24-py2.7.egg/Zope2/__init__.py", line 47, in startup
_startup()
File "/opt/plone/buildout-cache/eggs/Zope2-2.13.24-py2.7.egg/Zope2/App/startup.py", line 118, in startup
load_zcml()
File "/opt/plone/buildout-cache/eggs/Zope2-2.13.24-py2.7.egg/Zope2/App/startup.py", line 52, in load_zcml
load_site()
File "/opt/plone/buildout-cache/eggs/Zope2-2.13.24-py2.7.egg/Zope2/App/zcml.py", line 46, in load_site
_context = xmlconfig.file(site_zcml)
File "/opt/plone/buildout-cache/eggs/zope.configuration-3.7.4-py2.7.egg/zope/configuration/xmlconfig.py", line 649, in file
include(context, name, package)
File "/opt/plone/buildout-cache/eggs/zope.configuration-3.7.4-py2.7.egg/zope/configuration/xmlconfig.py", line 548, in include
processxmlfile(f, context)
File "/opt/plone/buildout-cache/eggs/zope.configuration-3.7.4-py2.7.egg/zope/configuration/xmlconfig.py", line 380, in processxmlfile
parser.parse(src)
File "/usr/lib/python2.7/xml/sax/expatreader.py", line 110, in parse
xmlreader.IncrementalParser.parse(self, source)
File "/usr/lib/python2.7/xml/sax/xmlreader.py", line 123, in parse
self.feed(buffer)
File "/usr/lib/python2.7/xml/sax/expatreader.py", line 213, in feed
self._parser.Parse(data, isFinal)
File "/usr/lib/python2.7/xml/sax/expatreader.py", line 365, in end_element_ns
self._cont_handler.endElementNS(pair, None)
File "/opt/plone/buildout-cache/eggs/zope.configuration-3.7.4-py2.7.egg/zope/configuration/xmlconfig.py", line 359, in endElementNS
self.context.end()
File "/opt/plone/buildout-cache/eggs/zope.configuration-3.7.4-py2.7.egg/zope/configuration/config.py", line 558, in end
self.stack.pop().finish()
File "/opt/plone/buildout-cache/eggs/zope.configuration-3.7.4-py2.7.egg/zope/configuration/config.py", line 706, in finish
actions = self.handler(context, **args)
File "/opt/plone/buildout-cache/eggs/Zope2-2.13.24-py2.7.egg/OFS/metaconfigure.py", line 46, in loadProducts
xmlconfig.include(_context, zcml, package=product)
File "/opt/plone/buildout-cache/eggs/zope.configuration-3.7.4-py2.7.egg/zope/configuration/xmlconfig.py", line 548, in include
processxmlfile(f, context)
File "/opt/plone/buildout-cache/eggs/zope.configuration-3.7.4-py2.7.egg/zope/configuration/xmlconfig.py", line 380, in processxmlfile
parser.parse(src)
File "/usr/lib/python2.7/xml/sax/expatreader.py", line 110, in parse
xmlreader.IncrementalParser.parse(self, source)
File "/usr/lib/python2.7/xml/sax/xmlreader.py", line 123, in parse
self.feed(buffer)
File "/usr/lib/python2.7/xml/sax/expatreader.py", line 213, in feed
self._parser.Parse(data, isFinal)
File "/usr/lib/python2.7/xml/sax/expatreader.py", line 365, in end_element_ns
self._cont_handler.endElementNS(pair, None)
File "/opt/plone/buildout-cache/eggs/zope.configuration-3.7.4-py2.7.egg/zope/configuration/xmlconfig.py", line 359, in endElementNS
self.context.end()
File "/opt/plone/buildout-cache/eggs/zope.configuration-3.7.4-py2.7.egg/zope/configuration/config.py", line 558, in end
self.stack.pop().finish()
File "/opt/plone/buildout-cache/eggs/zope.configuration-3.7.4-py2.7.egg/zope/configuration/config.py", line 706, in finish
actions = self.handler(context, **args)
File "/opt/plone/buildout-cache/eggs/zope.configuration-3.7.4-py2.7.egg/zope/configuration/xmlconfig.py", line 548, in include
processxmlfile(f, context)
File "/opt/plone/buildout-cache/eggs/zope.configuration-3.7.4-py2.7.egg/zope/configuration/xmlconfig.py", line 380, in processxmlfile
parser.parse(src)
File "/usr/lib/python2.7/xml/sax/expatreader.py", line 110, in parse
xmlreader.IncrementalParser.parse(self, source)
File "/usr/lib/python2.7/xml/sax/xmlreader.py", line 123, in parse
self.feed(buffer)
File "/usr/lib/python2.7/xml/sax/expatreader.py", line 213, in feed
self._parser.Parse(data, isFinal)
File "/usr/lib/python2.7/xml/sax/expatreader.py", line 365, in end_element_ns
self._cont_handler.endElementNS(pair, None)
File "/opt/plone/buildout-cache/eggs/zope.configuration-3.7.4-py2.7.egg/zope/configuration/xmlconfig.py", line 359, in endElementNS
self.context.end()
File "/opt/plone/buildout-cache/eggs/zope.configuration-3.7.4-py2.7.egg/zope/configuration/config.py", line 558, in end
self.stack.pop().finish()
File "/opt/plone/buildout-cache/eggs/zope.configuration-3.7.4-py2.7.egg/zope/configuration/config.py", line 706, in finish
actions = self.handler(context, **args)
File "/opt/plone/buildout-cache/eggs/zope.configuration-3.7.4-py2.7.egg/zope/configuration/xmlconfig.py", line 548, in include
processxmlfile(f, context)
File "/opt/plone/buildout-cache/eggs/zope.configuration-3.7.4-py2.7.egg/zope/configuration/xmlconfig.py", line 380, in processxmlfile
parser.parse(src)
File "/usr/lib/python2.7/xml/sax/expatreader.py", line 110, in parse
xmlreader.IncrementalParser.parse(self, source)
File "/usr/lib/python2.7/xml/sax/xmlreader.py", line 123, in parse
self.feed(buffer)
File "/usr/lib/python2.7/xml/sax/expatreader.py", line 213, in feed
self._parser.Parse(data, isFinal)
File "/usr/lib/python2.7/xml/sax/expatreader.py", line 365, in end_element_ns
self._cont_handler.endElementNS(pair, None)
File "/opt/plone/buildout-cache/eggs/zope.configuration-3.7.4-py2.7.egg/zope/configuration/xmlconfig.py", line 359, in endElementNS
self.context.end()
File "/opt/plone/buildout-cache/eggs/zope.configuration-3.7.4-py2.7.egg/zope/configuration/config.py", line 558, in end
self.stack.pop().finish()
File "/opt/plone/buildout-cache/eggs/zope.configuration-3.7.4-py2.7.egg/zope/configuration/config.py", line 705, in finish
args = toargs(context, *self.argdata)
File "/opt/plone/buildout-cache/eggs/zope.configuration-3.7.4-py2.7.egg/zope/configuration/config.py", line 1397, in toargs
args[str(name)] = field.fromUnicode(s)
File "/opt/plone/buildout-cache/eggs/zope.configuration-3.7.4-py2.7.egg/zope/configuration/fields.py", line 227, in fromUnicode
v = vt.fromUnicode(s)
File "/opt/plone/buildout-cache/eggs/zope.configuration-3.7.4-py2.7.egg/zope/configuration/fields.py", line 137, in fromUnicode
value = self.context.resolve(name)
File "/opt/plone/buildout-cache/eggs/zope.configuration-3.7.4-py2.7.egg/zope/configuration/config.py", line 179, in resolve
mod = __import__(mname, *_import_chickens)
File "/opt/plone/buildout-cache/eggs/Products.LinguaPlone-4.1.5-py2.7.egg/Products/LinguaPlone/browser/controlpanel.py", line 6, in <module>
from plone.app.controlpanel.language import LanguageControlPanel as BasePanel
File "/opt/plone/buildout-cache/eggs/plone.app.controlpanel-3.0.4-py2.7.egg/plone/app/controlpanel/language.py", line 3, in <module>
from Products.CMFPlone.interfaces import ILanguageSelectionSchema # noqa
zope.configuration.xmlconfig.ZopeXMLConfigurationError: File "/opt/plone/z01/parts/client1/etc/site.zcml", line 16.2-16.23
ZopeXMLConfigurationError: File "/opt/plone/buildout-cache/eggs/Products.ATContentTypes-2.2.12-py2.7.egg/Products/ATContentTypes/configure.zcml", line 8.2-9.44
ZopeXMLConfigurationError: File "/opt/plone/buildout-cache/eggs/Products.LinguaPlone-4.1.5-py2.7.egg/Products/LinguaPlone/configure.zcml", line 9.2-9.31
ZopeXMLConfigurationError: File "/opt/plone/buildout-cache/eggs/Products.LinguaPlone-4.1.5-py2.7.egg/Products/LinguaPlone/browser/configure.zcml", line 12.2-12.70
ImportError: cannot import name ILanguageSelectionSchema
We have a few other Plone 5.0.5 sites that still create the sitemap.xml.gz file without any problems. It seems to only effect the site with multilang installed.
Is there something obvious I'm doing wrong or can anyone shed any light on this issue?
Thanks in advance!
Edit #1
This is being discussed here:
https://github.com/plone/plone.app.layout/issues/91
This was a bug that has since been resolved.

Funnelweb error, cannot import OrderedDict

I am trying to import some static pages from a site using funnelweb add-on for plone. Here is what I write: bin/funnelweb --crawler:url=http://wiki.scandiatransplant.com --crawler:max=50 --ploneupload=http://admin:admin#localhost:8080/TestPage.
I get get this error:
ImportError: cannot import name OrderedDict
The full traceback is added below. Does anyone know how to solve this?
Traceback (most recent call last):
File "bin/funnelweb", line 116, in <module>
mr.migrator.runner.runner({},"funnelweb.remote")
File "/home/magiq/Plone/buildout-cache/eggs/mr.migrator-1.0.1-py2.6.egg/mr/migrator/runner/__init__.py", line 69, in runner
load_config('autoinclude.zcml', mr.migrator)
File "/home/magiq/Plone/buildout-cache/eggs/Zope2-2.13.12-py2.6.egg/Zope2/App/zcml.py", line 55, in load_config
_context = xmlconfig.file(config, package, _context, execute=execute)
File "/home/magiq/Plone/buildout-cache/eggs/zope.configuration-3.7.4-py2.6.egg/zope/configuration/xmlconfig.py", line 649, in file
include(context, name, package)
File "/home/magiq/Plone/buildout-cache/eggs/zope.configuration-3.7.4-py2.6.egg/zope/configuration/xmlconfig.py", line 548, in include
processxmlfile(f, context)
File "/home/magiq/Plone/buildout-cache/eggs/zope.configuration-3.7.4-py2.6.egg/zope/configuration/xmlconfig.py", line 380, in processxmlfile
parser.parse(src)
File "/home/magiq/Plone/Python-2.6/lib/python2.6/xml/sax/expatreader.py", line 107, in parse
xmlreader.IncrementalParser.parse(self, source)
File "/home/magiq/Plone/Python-2.6/lib/python2.6/xml/sax/xmlreader.py", line 123, in parse
self.feed(buffer)
File "/home/magiq/Plone/Python-2.6/lib/python2.6/xml/sax/expatreader.py", line 207, in feed
self._parser.Parse(data, isFinal)
File "/home/magiq/Plone/Python-2.6/lib/python2.6/xml/sax/expatreader.py", line 349, in end_element_ns
self._cont_handler.endElementNS(pair, None)
File "/home/magiq/Plone/buildout-cache/eggs/zope.configuration-3.7.4-py2.6.egg/zope/configuration/xmlconfig.py", line 359, in endElementNS
self.context.end()
File "/home/magiq/Plone/buildout-cache/eggs/zope.configuration-3.7.4-py2.6.egg/zope/configuration/config.py", line 558, in end
self.stack.pop().finish()
File "/home/magiq/Plone/buildout-cache/eggs/zope.configuration-3.7.4-py2.6.egg/zope/configuration/config.py", line 706, in finish
actions = self.handler(context, **args)
File "/home/magiq/Plone/buildout-cache/eggs/z3c.autoinclude-0.3.4-py2.6.egg/z3c/autoinclude/zcml.py", line 104, in includePluginsDirective
includeZCMLGroup(_context, info, filename)
File "/home/magiq/Plone/buildout-cache/eggs/z3c.autoinclude-0.3.4-py2.6.egg/z3c/autoinclude/zcml.py", line 30, in includeZCMLGroup
include(_context, filename, includable_package)
File "/home/magiq/Plone/buildout-cache/eggs/zope.configuration-3.7.4-py2.6.egg/zope/configuration/xmlconfig.py", line 548, in include
processxmlfile(f, context)
File "/home/magiq/Plone/buildout-cache/eggs/zope.configuration-3.7.4-py2.6.egg/zope/configuration/xmlconfig.py", line 380, in processxmlfile
parser.parse(src)
File "/home/magiq/Plone/Python-2.6/lib/python2.6/xml/sax/expatreader.py", line 107, in parse
xmlreader.IncrementalParser.parse(self, source)
File "/home/magiq/Plone/Python-2.6/lib/python2.6/xml/sax/xmlreader.py", line 123, in parse
self.feed(buffer)
File "/home/magiq/Plone/Python-2.6/lib/python2.6/xml/sax/expatreader.py", line 207, in feed
self._parser.Parse(data, isFinal)
File "/home/magiq/Plone/Python-2.6/lib/python2.6/xml/sax/expatreader.py", line 349, in end_element_ns
self._cont_handler.endElementNS(pair, None)
File "/home/magiq/Plone/buildout-cache/eggs/zope.configuration-3.7.4-py2.6.egg/zope/configuration/xmlconfig.py", line 359, in endElementNS
self.context.end()
File "/home/magiq/Plone/buildout-cache/eggs/zope.configuration-3.7.4-py2.6.egg/zope/configuration/config.py", line 558, in end
self.stack.pop().finish()
File "/home/magiq/Plone/buildout-cache/eggs/zope.configuration-3.7.4-py2.6.egg/zope/configuration/config.py", line 705, in finish
args = toargs(context, *self.argdata)
File "/home/magiq/Plone/buildout-cache/eggs/zope.configuration-3.7.4-py2.6.egg/zope/configuration/config.py", line 1397, in toargs
args[str(name)] = field.fromUnicode(s)
File "/home/magiq/Plone/buildout-cache/eggs/zope.configuration-3.7.4-py2.6.egg/zope/configuration/fields.py", line 137, in fromUnicode
value = self.context.resolve(name)
File "/home/magiq/Plone/buildout-cache/eggs/zope.configuration-3.7.4-py2.6.egg/zope/configuration/config.py", line 179, in resolve
mod = __import__(mname, *_import_chickens)
File "/home/magiq/Plone/buildout-cache/eggs/transmogrify.webcrawler-1.2.1-py2.6.egg/transmogrify/webcrawler/webcrawler.py", line 21, in <module>
from collections import OrderedDict
zope.configuration.xmlconfig.ZopeXMLConfigurationError: File "/home/magiq/Plone/buildout-cache/eggs/mr.migrator-1.0.1-py2.6.egg/mr/migrator/autoinclude.zcml", line 10.4-10.85
ZopeXMLConfigurationError: File "/home/magiq/Plone/buildout-cache/eggs/transmogrify.webcrawler-1.2.1-py2.6.egg/transmogrify/webcrawler/configure.zcml", line 9.4-10.46
ImportError: cannot import name OrderedDict
OrderedDict is a new class added to Python 2.7, so it is missing in your case.
You can install a backport:
pip install ordereddict
or add that as a dependency in your buildout, and edit Plone/buildout-cache/eggs/transmogrify.webcrawler-1.2.1-py2.6.egg/transmogrify/webcrawler/webcrawler.py line 21 to change the import from:
from collections import OrderedDict
to
try:
from collections import OrderedDict
except ImportError:
# python 2.6 or earlier, use backport
from ordereddict import OrderedDict
I have filed an issue in the funnelweb issue tracker to request that this is added to a future release of the package, see issue 22.

Resources