I'm trying to install bika.lims
This is the error log when I run this command sudo -u plone_daemon bin/client1 fg
Zope.configuration.xmlconfig.ZopeXMLConfigurationError: File "/usr/local/Plone/zeocluster/parts/client1/etc/site.zcml", line 12.2-12.39
ZopeXMLConfigurationError: File "/usr/local/Plone/buildout-cache/eggs/Products.CMFPlone-4.3.9-py2.7.egg/Products/CMFPlone/meta.zcml", line 42.4-46.10
Full traceback
2016-12-14 09:00:11 INFO ZServer HTTP server started at Wed Dec 14 09:00:11 2016
Hostname: 0.0.0.0
Port: 8080
2016-12-14 09:00:18 INFO Products.PloneHotfix20160419 Applied publishing patch
2016-12-14 09:00:18 INFO Products.PloneHotfix20160419 Applied dexterity patch
2016-12-14 09:00:18 INFO Products.PloneHotfix20160419 Hotfix installed
2016-12-14 09:00:19 INFO ZEO.ClientStorage zeostorage ClientStorage (pid=4042) created RW/normal for storage: '1'
2016-12-14 09:00:19 INFO ZEO.cache created temporary cache file '<fdopen>'
2016-12-14 09:00:19 INFO ZEO.ClientStorage zeostorage Testing connection <ManagedClientConnection ('127.0.0.1', 8100)>
2016-12-14 09:00:19 INFO ZEO.zrpc.Connection(C) (127.0.0.1:8100) received handshake 'Z3101'
2016-12-14 09:00:19 INFO ZEO.ClientStorage zeostorage Server authentication protocol None
2016-12-14 09:00:19 INFO ZEO.ClientStorage zeostorage Connected to storage: ('localhost', 8100)
2016-12-14 09:00:19 INFO ZEO.ClientStorage zeostorage No verification necessary -- empty cache
2016-12-14 09:00:21 INFO ZEO.ClientStorage zeostorage Disconnected from storage: "('localhost', 8100)"
Traceback (most recent call last):
File "/usr/local/Plone/zeocluster/parts/client1/bin/interpreter", line 307, in <module>
exec(compile(__file__f.read(), __file__, "exec"))
File "/usr/local/Plone/buildout-cache/eggs/Zope2-2.13.24-py2.7.egg/Zope2/Startup/run.py", line 76, in <module>
run()
File "/usr/local/Plone/buildout-cache/eggs/Zope2-2.13.24-py2.7.egg/Zope2/Startup/run.py", line 22, in run
starter.prepare()
File "/usr/local/Plone/buildout-cache/eggs/Zope2-2.13.24-py2.7.egg/Zope2/Startup/__init__.py", line 92, in prepare
self.startZope()
File "/usr/local/Plone/buildout-cache/eggs/Zope2-2.13.24-py2.7.egg/Zope2/Startup/__init__.py", line 268, in startZope
Zope2.startup()
File "/usr/local/Plone/buildout-cache/eggs/Zope2-2.13.24-py2.7.egg/Zope2/__init__.py", line 47, in startup
_startup()
File "/usr/local/Plone/buildout-cache/eggs/Zope2-2.13.24-py2.7.egg/Zope2/App/startup.py", line 118, in startup
load_zcml()
File "/usr/local/Plone/buildout-cache/eggs/Zope2-2.13.24-py2.7.egg/Zope2/App/startup.py", line 52, in load_zcml
load_site()
File "/usr/local/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 "/usr/local/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 "/usr/local/Plone/buildout-cache/eggs/zope.configuration-3.7.4-py2.7.egg/zope/configuration/xmlconfig.py", line 548, in include
processxmlfile(f, context)
File "/usr/local/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/local/Plone/Python-2.7/lib/python2.7/xml/sax/expatreader.py", line 110, in parse
xmlreader.IncrementalParser.parse(self, source)
File "/usr/local/Plone/Python-2.7/lib/python2.7/xml/sax/xmlreader.py", line 123, in parse
self.feed(buffer)
File "/usr/local/Plone/Python-2.7/lib/python2.7/xml/sax/expatreader.py", line 213, in feed
self._parser.Parse(data, isFinal)
File "/usr/local/Plone/Python-2.7/lib/python2.7/xml/sax/expatreader.py", line 365, in end_element_ns
self._cont_handler.endElementNS(pair, None)
File "/usr/local/Plone/buildout-cache/eggs/zope.configuration-3.7.4-py2.7.egg/zope/configuration/xmlconfig.py", line 359, in endElementNS
self.context.end()
File "/usr/local/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 "/usr/local/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 "/usr/local/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 "/usr/local/Plone/buildout-cache/eggs/zope.configuration-3.7.4-py2.7.egg/zope/configuration/xmlconfig.py", line 548, in include
processxmlfile(f, context)
File "/usr/local/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/local/Plone/Python-2.7/lib/python2.7/xml/sax/expatreader.py", line 110, in parse
xmlreader.IncrementalParser.parse(self, source)
File "/usr/local/Plone/Python-2.7/lib/python2.7/xml/sax/xmlreader.py", line 123, in parse
self.feed(buffer)
File "/usr/local/Plone/Python-2.7/lib/python2.7/xml/sax/expatreader.py", line 213, in feed
self._parser.Parse(data, isFinal)
File "/usr/local/Plone/Python-2.7/lib/python2.7/xml/sax/expatreader.py", line 365, in end_element_ns
self._cont_handler.endElementNS(pair, None)
File "/usr/local/Plone/buildout-cache/eggs/zope.configuration-3.7.4-py2.7.egg/zope/configuration/xmlconfig.py", line 359, in endElementNS
self.context.end()
File "/usr/local/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 "/usr/local/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 "/usr/local/Plone/buildout-cache/eggs/z3c.autoinclude-0.3.5-py2.7.egg/z3c/autoinclude/zcml.py", line 101, in includePluginsDirective
info = PluginFinder(dotted_name).includableInfo(zcml_to_look_for)
File "/usr/local/Plone/buildout-cache/eggs/z3c.autoinclude-0.3.5-py2.7.egg/z3c/autoinclude/plugin.py", line 18, in includableInfo
groups = zcml_to_include(plugin_dottedname, zcml_to_look_for)
File "/usr/local/Plone/buildout-cache/eggs/z3c.autoinclude-0.3.5-py2.7.egg/z3c/autoinclude/plugin.py", line 36, in zcml_to_include
filename = resource_filename(dotted_name, zcmlgroup)
File "/usr/local/Plone/buildout-cache/eggs/setuptools-20.1.1-py2.7.egg/pkg_resources/__init__.py", line 1149, in resource_filename
return get_provider(package_or_requirement).get_resource_filename(
File "/usr/local/Plone/buildout-cache/eggs/setuptools-20.1.1-py2.7.egg/pkg_resources/__init__.py", line 424, in get_provider
__import__(moduleOrReq)
File "/usr/local/Plone/buildout-cache/eggs/bika.lims-3.1.11-py2.7.egg/bika/lims/__init__.py", line 15, in <module>
from bika.lims.validators import *
File "/usr/local/Plone/buildout-cache/eggs/bika.lims-3.1.11-py2.7.egg/bika/lims/validators.py", line 4, in <module>
from bika.lims.utils import to_utf8
File "/usr/local/Plone/buildout-cache/eggs/bika.lims-3.1.11-py2.7.egg/bika/lims/utils/__init__.py", line 19, in <module>
from weasyprint import HTML, CSS
File "/usr/local/Plone/buildout-cache/eggs/WeasyPrint-0.19.2-py2.7.egg/weasyprint/__init__.py", line 304, in <module>
from .css import PARSER, preprocess_stylesheet
File "/usr/local/Plone/buildout-cache/eggs/WeasyPrint-0.19.2-py2.7.egg/weasyprint/css/__init__.py", line 31, in <module>
from .validation import preprocess_declarations
File "/usr/local/Plone/buildout-cache/eggs/WeasyPrint-0.19.2-py2.7.egg/weasyprint/css/validation.py", line 26, in <module>
from ..images import LinearGradient, RadialGradient
File "/usr/local/Plone/buildout-cache/eggs/WeasyPrint-0.19.2-py2.7.egg/weasyprint/images.py", line 22, in <module>
import cairosvg.parser
File "/usr/local/Plone/buildout-cache/eggs/CairoSVG-2.0.0-py2.7.egg/cairosvg/__init__.py", line 29, in <module>
from . import surface
File "/usr/local/Plone/buildout-cache/eggs/CairoSVG-2.0.0-py2.7.egg/cairosvg/surface.py", line 27, in <module>
from .defs import (
File "/usr/local/Plone/buildout-cache/eggs/CairoSVG-2.0.0-py2.7.egg/cairosvg/defs.py", line 24, in <module>
from .bounding_box import calculate_bounding_box, is_non_empty_bounding_box
File "/usr/local/Plone/buildout-cache/eggs/CairoSVG-2.0.0-py2.7.egg/cairosvg/bounding_box.py", line 27, in <module>
from .helpers import PATH_LETTERS, normalize, point, size
File "/usr/local/Plone/buildout-cache/eggs/CairoSVG-2.0.0-py2.7.egg/cairosvg/helpers.py", line 26, in <module>
from .url import parse_url
File "/usr/local/Plone/buildout-cache/eggs/CairoSVG-2.0.0-py2.7.egg/cairosvg/url.py", line 24, in <module>
from urllib.parse import urljoin, urlparse
zope.configuration.xmlconfig.ZopeXMLConfigurationError: File "/usr/local/Plone/zeocluster/parts/client1/etc/site.zcml", line 12.2-12.39
ZopeXMLConfigurationError: File "/usr/local/Plone/buildout-cache/eggs/Products.CMFPlone-4.3.9-py2.7.egg/Products/CMFPlone/meta.zcml", line 42.4-46.10
ImportError: No module named parse
Any ideas?
The dependency "CairoSVG"-2.0.0, you are using is intended to be used with Python-3, that's probably why the installation-instructions say to use a lower version compatible with Python-2. The buildout-config of the bika.lims-repo pins CairoSVG to version 1.0.20:
https://github.com/bikalabs/bika.lims/blob/master/buildout.cfg
Adjust your buildout-config accordingly, run buildout and restart the server/clients.
Related
Trying to install this package:-
https://github.com/lspvic/jupyter_tensorboard
Python 2.7
I cannot enable nbextensions in Jupyter Notebook with new Conda Environment
Here is the stacktrace
Enabling notebook extension jupyter_tensorboard/tree...
Traceback (most recent call last):
File "/opt/conda/envs/DSX-Python27/bin/jupyter-nbextension", line 11, in <module>
sys.exit(main())
File "/opt/conda/envs/DSX-Python27/lib/python2.7/site-packages/jupyter_core/application.py", line 267, in launch_instance
return super(JupyterApp, cls).launch_instance(argv=argv, **kwargs)
File "/opt/conda/envs/DSX-Python27/lib/python2.7/site-packages/traitlets/config/application.py", line 658, in launch_instance
app.start()
File "/opt/conda/envs/DSX-Python27/lib/python2.7/site-packages/notebook/nbextensions.py", line 988, in start
super(NBExtensionApp, self).start()
File "/opt/conda/envs/DSX-Python27/lib/python2.7/site-packages/jupyter_core/application.py", line 256, in start
self.subapp.start()
File "/opt/conda/envs/DSX-Python27/lib/python2.7/site-packages/notebook/nbextensions.py", line 898, in start
self.toggle_nbextension(self.extra_args[0])
File "/opt/conda/envs/DSX-Python27/lib/python2.7/site-packages/notebook/nbextensions.py", line 888, in toggle_nbextension
logger=self.log)
File "/opt/conda/envs/DSX-Python27/lib/python2.7/site-packages/notebook/nbextensions.py", line 413, in enable_nbextension
logger=logger)
File "/opt/conda/envs/DSX-Python27/lib/python2.7/site-packages/notebook/nbextensions.py", line 351, in _set_nbextension_state
cm.update(section, {"load_extensions": {require: state}})
File "/opt/conda/envs/DSX-Python27/lib/python2.7/site-packages/traitlets/config/manager.py", line 87, in update
self.set(section_name, data)
File "/opt/conda/envs/DSX-Python27/lib/python2.7/site-packages/traitlets/config/manager.py", line 71, in set
self.ensure_config_dir_exists()
File "/opt/conda/envs/DSX-Python27/lib/python2.7/site-packages/traitlets/config/manager.py", line 46, in ensure_config_dir_exists
os.makedirs(self.config_dir, 0o755)
File "/opt/conda/envs/DSX-Python27/lib/python2.7/os.py", line 157, in makedirs
mkdir(name, mode)
OSError: [Errno 13] Permission denied: '/opt/ibm/dsx/config/nbconfig'
Looks like permission error, Can it be install/enabled with user flag.
Whenever I try to run pyinstaller.py with my script it outputs a bunch of code and I have no idea what it means. All I'm trying to do is turn my python file into an executable but it isn't working. It looks like it's working until it says Traceback after 100 and then it shows a whole bunch of file locations.
C:\Users\Smith 1>python C:/py/pyinstaller.py C:/py/Calculator.py
84 INFO: PyInstaller: 3.2.1
84 INFO: Python: 3.6.0
84 INFO: Platform: Windows-10-10.0.14393-SP0
84 INFO: wrote C:\Users\Smith 1\Calculator.spec
84 INFO: UPX is not available.
100 INFO: Extending PYTHONPATH with paths
['C:\\py', 'C:\\Users\\Smith 1']
100 INFO: checking Analysis
100 INFO: Building Analysis because out00-Analysis.toc is non existent
100 INFO: Initializing module dependency graph...
100 INFO: Initializing module graph hooks...
100 INFO: Analyzing base_library.zip ...
Traceback (most recent call last):
File "C:/py/pyinstaller.py", line 15, in <module>
run()
File "C:\Users\Smith 1\AppData\Local\Programs\Python\Python36\lib\site-packages\PyInstaller\__main__.py", line 90, in run
run_build(pyi_config, spec_file, **vars(args))
File "C:\Users\Smith 1\AppData\Local\Programs\Python\Python36\lib\site-packages\PyInstaller\__main__.py", line 46, in run_build
PyInstaller.building.build_main.main(pyi_config, spec_file, **kwargs)
File "C:\Users\Smith 1\AppData\Local\Programs\Python\Python36\lib\site-packages\PyInstaller\building\build_main.py", line 788, in main
build(specfile, kw.get('distpath'), kw.get('workpath'), kw.get('clean_build'))
File "C:\Users\Smith 1\AppData\Local\Programs\Python\Python36\lib\site-packages\PyInstaller\building\build_main.py", line 734, in build
exec(text, spec_namespace)
File "<string>", line 16, in <module>
File "C:\Users\Smith 1\AppData\Local\Programs\Python\Python36\lib\site-packages\PyInstaller\building\build_main.py", line 212, in __init__
self.__postinit__()
File "C:\Users\Smith 1\AppData\Local\Programs\Python\Python36\lib\site-packages\PyInstaller\building\datastruct.py", line 161, in __postinit__
self.assemble()
File "C:\Users\Smith 1\AppData\Local\Programs\Python\Python36\lib\site-packages\PyInstaller\building\build_main.py", line 317, in assemble
excludes=self.excludes, user_hook_dirs=self.hookspath)
File "C:\Users\Smith 1\AppData\Local\Programs\Python\Python36\lib\site-packages\PyInstaller\depend\analysis.py", line 560, in initialize_modgraph
graph.import_hook(m)
File "C:\Users\Smith 1\AppData\Local\Programs\Python\Python36\lib\site-packages\PyInstaller\lib\modulegraph\modulegraph.py", line 1509, in import_hook
source_package, target_module_partname, level)
File "C:\Users\Smith 1\AppData\Local\Programs\Python\Python36\lib\site-packages\PyInstaller\lib\modulegraph\modulegraph.py", line 1661, in _find_head_package
target_module_headname, target_package_name, source_package)
File "C:\Users\Smith 1\AppData\Local\Programs\Python\Python36\lib\site-packages\PyInstaller\depend\analysis.py", line 209, in _safe_import_module
module_basename, module_name, parent_package)
File "C:\Users\Smith 1\AppData\Local\Programs\Python\Python36\lib\site-packages\PyInstaller\lib\modulegraph\modulegraph.py", line 2077, in _safe_import_module
module_name, file_handle, pathname, metadata)
File "C:\Users\Smith 1\AppData\Local\Programs\Python\Python36\lib\site-packages\PyInstaller\lib\modulegraph\modulegraph.py", line 2167, in _load_module
self._scan_code(m, co, co_ast)
File "C:\Users\Smith 1\AppData\Local\Programs\Python\Python36\lib\site-packages\PyInstaller\lib\modulegraph\modulegraph.py", line 2585, in _scan_code
module, module_code_object, is_scanning_imports=False)
File "C:\Users\Smith 1\AppData\Local\Programs\Python\Python36\lib\site-packages\PyInstaller\lib\modulegraph\modulegraph.py", line 2831, in _scan_bytecode
global_attr_name = get_operation_arg_name()
File "C:\Users\Smith 1\AppData\Local\Programs\Python\Python36\lib\site-packages\PyInstaller\lib\modulegraph\modulegraph.py", line 2731, in get_operation_arg_name
return module_code_object.co_names[co_names_index]
IndexError: tuple index out of range
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.
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.
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.