Vit*_*ito 4 lxml plone centos deliverance diazo
我使用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
Run Code Online (Sandbox Code Playgroud)
怎么了?
我有完全相同的问题,它是由于一个旧的libxml2/libxslt.在您的buildout上添加以下行:
[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
Run Code Online (Sandbox Code Playgroud)
小智 5
请参阅Plone - XSLTApplyError:xsltValueOf:文本复制失败.可能你有一个过时的libxml,因为像CentOS这样的旧发行版总是如此.
使用z3c.recipe.staticlxml.
归档时间: |
|
查看次数: |
898 次 |
最近记录: |