2

我正在尝试在本地 Mac 上安装collective.xdv。我按照这里的说明进行操作:http: //plone.org/products/collective.xdv/documentation/tutorial/advanced-xdv-theming/prerequisites

只有当我在 buildout.cfg 中删除所有对collective.xdv 的引用时,我的站点才有效。如果我包含对collective.xdv 的引用,那么我的网站不会加载,并且我的日志文件显示:错误应用程序无法安装五个(我已经看到在线论坛,人们在安装其他产品时收到此错误消息。我试过了建议进行修复,但它们对我不起作用。)

编辑: “应用程序无法安装五个”错误似乎是一种通用错误,因此追溯最可能的重要部分是:ImportError: dlopen(/Applications/Plone/buildout-cache/eggs/lxml-2.2 .4-py2.6-macosx-10.4-i386.egg/lxml/etree.so, 2):找不到合适的图像。确实找到了:/Applications/Plone/buildout-cache/eggs/lxml-2.2.4-py2.6-macosx-10.4-i386.egg/lxml/etree.so: mach-o,但是架构错误

    2011-07-29T13:44:57 ERROR Application Couldn't install Five
    Traceback (most recent call last):
      File "/Applications/Plone/buildout-cache/eggs/Zope2-2.12.11-py2.6-macosx-10.4-i386.egg/OFS/Application.py", line 671, in install_product
        initmethod(context)
      File "/Applications/Plone/buildout-cache/eggs/Zope2-2.12.11-py2.6-macosx-10.4-i386.egg/Products/Five/__init__.py", line 31, in initialize
        zcml.load_site()
      File "/Applications/Plone/buildout-cache/eggs/Zope2-2.12.11-py2.6-macosx-10.4-i386.egg/Products/Five/zcml.py", line 51, in load_site
        _context = xmlconfig.file(file)
      File "/Applications/Plone/buildout-cache/eggs/zope.configuration-3.6.0-py2.6.egg/zope/configuration/xmlconfig.py", line 647, in file
        include(context, name, package)
      File "/Applications/Plone/buildout-cache/eggs/zope.configuration-3.6.0-py2.6.egg/zope/configuration/xmlconfig.py", line 546, in include
        processxmlfile(f, context)
      File "/Applications/Plone/buildout-cache/eggs/zope.configuration-3.6.0-py2.6.egg/zope/configuration/xmlconfig.py", line 378, in processxmlfile
        parser.parse(src)
      File "/Applications/Plone/Python-2.6/lib/python2.6/xml/sax/expatreader.py", line 107, in parse
        xmlreader.IncrementalParser.parse(self, source)
      File "/Applications/Plone/Python-2.6/lib/python2.6/xml/sax/xmlreader.py", line 123, in parse
        self.feed(buffer)
      File "/Applications/Plone/Python-2.6/lib/python2.6/xml/sax/expatreader.py", line 207, in feed
        self._parser.Parse(data, isFinal)
      File "/Applications/Plone/Python-2.6/lib/python2.6/xml/sax/expatreader.py", line 349, in end_element_ns
        self._cont_handler.endElementNS(pair, None)
      File "/Applications/Plone/buildout-cache/eggs/zope.configuration-3.6.0-py2.6.egg/zope/configuration/xmlconfig.py", line 357, in endElementNS
        self.context.end()
      File "/Applications/Plone/buildout-cache/eggs/zope.configuration-3.6.0-py2.6.egg/zope/configuration/config.py", line 537, in end
        self.stack.pop().finish()
      File "/Applications/Plone/buildout-cache/eggs/zope.configuration-3.6.0-py2.6.egg/zope/configuration/config.py", line 685, in finish
        actions = self.handler(context, **args)
      File "/Applications/Plone/buildout-cache/eggs/Zope2-2.12.11-py2.6-macosx-10.4-i386.egg/Products/Five/fiveconfigure.py", line 74, in loadProducts
        handleBrokenProduct(product)
      File "/Applications/Plone/buildout-cache/eggs/Zope2-2.12.11-py2.6-macosx-10.4-i386.egg/Products/Five/fiveconfigure.py", line 72, in loadProducts
        xmlconfig.include(_context, zcml, package=product)
      File "/Applications/Plone/buildout-cache/eggs/zope.configuration-3.6.0-py2.6.egg/zope/configuration/xmlconfig.py", line 546, in include
        processxmlfile(f, context)
      File "/Applications/Plone/buildout-cache/eggs/zope.configuration-3.6.0-py2.6.egg/zope/configuration/xmlconfig.py", line 378, in processxmlfile
        parser.parse(src)
      File "/Applications/Plone/Python-2.6/lib/python2.6/xml/sax/expatreader.py", line 107, in parse
        xmlreader.IncrementalParser.parse(self, source)
      File "/Applications/Plone/Python-2.6/lib/python2.6/xml/sax/xmlreader.py", line 123, in parse
        self.feed(buffer)
      File "/Applications/Plone/Python-2.6/lib/python2.6/xml/sax/expatreader.py", line 207, in feed
        self._parser.Parse(data, isFinal)
      File "/Applications/Plone/Python-2.6/lib/python2.6/xml/sax/expatreader.py", line 349, in end_element_ns
        self._cont_handler.endElementNS(pair, None)
      File "/Applications/Plone/buildout-cache/eggs/zope.configuration-3.6.0-py2.6.egg/zope/configuration/xmlconfig.py", line 357, in endElementNS
        self.context.end()
      File "/Applications/Plone/buildout-cache/eggs/zope.configuration-3.6.0-py2.6.egg/zope/configuration/config.py", line 537, in end
        self.stack.pop().finish()
      File "/Applications/Plone/buildout-cache/eggs/zope.configuration-3.6.0-py2.6.egg/zope/configuration/config.py", line 685, in finish
        actions = self.handler(context, **args)
      File "/Applications/Plone/buildout-cache/eggs/z3c.autoinclude-0.3.2-py2.6.egg/z3c/autoinclude/zcml.py", line 104, in includePluginsDirective
        includeZCMLGroup(_context, info, filename)
      File "/Applications/Plone/buildout-cache/eggs/z3c.autoinclude-0.3.2-py2.6.egg/z3c/autoinclude/zcml.py", line 30, in includeZCMLGroup
        include(_context, filename, includable_package)
      File "/Applications/Plone/buildout-cache/eggs/zope.configuration-3.6.0-py2.6.egg/zope/configuration/xmlconfig.py", line 546, in include
        processxmlfile(f, context)
      File "/Applications/Plone/buildout-cache/eggs/zope.configuration-3.6.0-py2.6.egg/zope/configuration/xmlconfig.py", line 378, in processxmlfile
        parser.parse(src)
      File "/Applications/Plone/Python-2.6/lib/python2.6/xml/sax/expatreader.py", line 107, in parse
        xmlreader.IncrementalParser.parse(self, source)
      File "/Applications/Plone/Python-2.6/lib/python2.6/xml/sax/xmlreader.py", line 123, in parse
        self.feed(buffer)
      File "/Applications/Plone/Python-2.6/lib/python2.6/xml/sax/expatreader.py", line 207, in feed
        self._parser.Parse(data, isFinal)
      File "/Applications/Plone/Python-2.6/lib/python2.6/xml/sax/expatreader.py", line 349, in end_element_ns
        self._cont_handler.endElementNS(pair, None)
      File "/Applications/Plone/buildout-cache/eggs/zope.configuration-3.6.0-py2.6.egg/zope/configuration/xmlconfig.py", line 357, in endElementNS
        self.context.end()
      File "/Applications/Plone/buildout-cache/eggs/zope.configuration-3.6.0-py2.6.egg/zope/configuration/config.py", line 537, in end
        self.stack.pop().finish()
      File "/Applications/Plone/buildout-cache/eggs/zope.configuration-3.6.0-py2.6.egg/zope/configuration/config.py", line 684, in finish
        args = toargs(context, *self.argdata)
      File "/Applications/Plone/buildout-cache/eggs/zope.configuration-3.6.0-py2.6.egg/zope/configuration/config.py", line 1376, in toargs
        args[str(name)] = field.fromUnicode(s)
      File "/Applications/Plone/buildout-cache/eggs/zope.configuration-3.6.0-py2.6.egg/zope/configuration/fields.py", line 229, in fromUnicode
        v = vt.fromUnicode(s)
      File "/Applications/Plone/buildout-cache/eggs/zope.configuration-3.6.0-py2.6.egg/zope/configuration/fields.py", line 139, in fromUnicode
        value = self.context.resolve(name)
      File "/Applications/Plone/buildout-cache/eggs/zope.configuration-3.6.0-py2.6.egg/zope/configuration/config.py", line 180, in resolve
        mod = __import__(mname, *_import_chickens)
      File "/Applications/Plone/buildout-cache/eggs/collective.xdv-1.0rc11-py2.6.egg/collective/xdv/transform.py", line 4, in <module>
        from lxml import etree
    ZopeXMLConfigurationError: File "/Applications/Plone/zinstance/parts/instance/etc/site.zcml", line 16.2-16.23
        ZopeXMLConfigurationError: File "/Applications/Plone/buildout-cache/eggs/Plone-4.0.1-py2.6.egg/Products/CMFPlone/configure.zcml", line 94.4-98.10
        ZopeXMLConfigurationError: File "/Applications/Plone/buildout-cache/eggs/collective.xdv-1.0rc11-py2.6.egg/collective/xdv/configure.zcml", line 25.4-28.10
        ImportError: dlopen(/Applications/Plone/buildout-cache/eggs/lxml-2.2.4-py2.6-macosx-10.4-i386.egg/lxml/etree.so, 2): no suitable image found.  Did find:
        /Applications/Plone/buildout-cache/eggs/lxml-2.2.4-py2.6-macosx-10.4-i386.egg/lxml/etree.so: mach-o, but wrong architecture
4

1 回答 1

2

您的 lxml egg 似乎有构建/编译问题,这对于 OS X 人来说很常见。尝试这个:

http://plone.org/documentation/error/python-crashes-on-mac-os-x-lxml-related

于 2011-07-29T21:56:08.763 回答