gpt4 book ai didi

centos - 无法在 Centos 上使用 Diazo (plone.app.theming)

转载 作者:太空宇宙 更新时间:2023-11-03 17:13:25 25 4
gpt4 key购买 nike

我使用 plone4.1 和 Diazo 在我的 mac 上制作了一个 webportal。

现在,我正在尝试将它部署到我的服务器 (CentOs) 上,那里还有另一个站点,其中包含 plone4.0.5 + collectivexdv。

当我用我的 diazotheme 运行网站(在全新的构建中)时,我通过 shell(实例 fg)获得了这些行:

2011-09-27 09:32:10 ERROR plone.transformchain Unexpected error whilst trying to apply transform chain
Traceback (most recent call last):
File "/home/plone/.buildout/eggs/plone.transformchain-1.0-py2.6.egg/plone/transformchain/transformer.py", line 42, in __call__
newResult = handler.transformIterable(result, encoding)
File "/home/plone/.buildout/eggs/plone.app.theming-1.0b8-py2.6.egg/plone/app/theming/transform.py", line 205, in transformIterable
transform = self.setupTransform()
File "/home/plone/.buildout/eggs/plone.app.theming-1.0b8-py2.6.egg/plone/app/theming/transform.py", line 150, in setupTransform
xsl_params=xslParams,
File "/home/plone/.buildout/eggs/diazo-1.0rc3-py2.6.egg/diazo/compiler.py", line 106, in compile_theme
read_network=read_network,
File "/home/plone/.buildout/eggs/diazo-1.0rc3-py2.6.egg/diazo/rules.py", line 160, in process_rules
rules_doc = fixup_themes(rules_doc)
File "/home/plone/.buildout/eggs/diazo-1.0rc3-py2.6.egg/diazo/utils.py", line 49, in __call__
result = self.xslt(*args, **kw)
File "xslt.pxi", line 568, in lxml.etree.XSLT.__call__ (src/lxml/lxml.etree.c:120289)
XSLTApplyError: xsltValueOf: text copy failed

怎么了?

最佳答案

我遇到了完全相同的问题,这是由于旧的 libxml2/libxslt。在您的构建中添加这些行:

[buildout]
parts =
lxml # keep lxml as the first one!
...
instance

[lxml]
recipe = z3c.recipe.staticlxml
egg = lxml
libxml2-url = ftp://xmlsoft.org/libxml2/libxml2-2.7.8.tar.gz
libxslt-url = ftp://xmlsoft.org/libxml2/libxslt-1.1.26.tar.gz
static-build = true
force = false

关于centos - 无法在 Centos 上使用 Diazo (plone.app.theming),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/7570183/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com