[Erp5-users] Cannot Add 'ERP5 Site' to Zope

Boris Kocherov bk at raskon.org
Wed Oct 7 14:12:14 CEST 2009


On 10/07/09 18:50, Pramono Tunggul wrote:
> Hey guys,
> 
> I'm trying to install ERP5 on hardy, everything work fine until it come to
> moment when I have to add Erp5 site to Zope and it end in error like this
> 
> Site Error
> 
> An error was encountered while publishing this resource.
> 
> *Error Type: AttributeError*
> *Error Value: ERP5Form*
>  ------------------------------
> 
> Troubleshooting Suggestions
> 
>    - The URL may be incorrect.
>    - The parameters passed to this resource may be incorrect.
>    - A resource that this resource relies on may be encountering an error.
> 
> For more detailed information about the error, please refer to the error
> log.
> 
> If the error persists please contact the site maintainer. Thank you for your
> patience.
> 
> 
> and in the error log, I find it like thie
> 
> 
> Traceback (most recent call last):
>   File "/home/erp5/erp5-buildout/parts/zope2/lib/python/OFS/Application.py",
> line 745, in install_product
>     global_dict, global_dict, silly)
>   File "/home/erp5/erp5-buildout/erp5/products/ERP5Form/__init__.py", line
> 43, in ?
>     import Form, FSForm, ListBox, ReportBox, MatrixBox, SelectionTool
>   File "/home/erp5/erp5-buildout/erp5/products/ERP5Form/Form.py", line 32,
> in ?
>     from Products.Formulator.Form import Form, BasicForm, ZMIForm
>   File "/home/erp5/erp5-buildout/erp5/products/Formulator/__init__.py", line
> 2, in ?
>     import Form
>   File "/home/erp5/erp5-buildout/erp5/products/Formulator/Form.py", line 20,
> in ?
>     from FormToXML import formToXML
>   File "/home/erp5/erp5-buildout/erp5/products/Formulator/FormToXML.py",
> line 4, in ?
>     from lxml.etree import Element, SubElement, CDATA
> ImportError: cannot import name CDATA
> ------
> 2009-10-07T23:38:30 ERROR Zope Couldn't install ERP5OOo
> Traceback (most recent call last):
>   File "/home/erp5/erp5-buildout/parts/zope2/lib/python/OFS/Application.py",
> line 745, in install_product
>     global_dict, global_dict, silly)
>   File "/home/erp5/erp5-buildout/erp5/products/ERP5OOo/__init__.py", line
> 48, in ?
>     from FormPrintout import FormPrintout
>   File "/home/erp5/erp5-buildout/erp5/products/ERP5OOo/FormPrintout.py",
> line 31, in ?
>     from Products.ERP5Form.ListBox import ListBox
>   File "/home/erp5/erp5-buildout/erp5/products/ERP5Form/__init__.py", line
> 43, in ?
>     import Form, FSForm, ListBox, ReportBox, MatrixBox, SelectionTool
>   File "/home/erp5/erp5-buildout/erp5/products/ERP5Form/Form.py", line 32,
> in ?
>     from Products.Formulator.Form import Form, BasicForm, ZMIForm
>   File "/home/erp5/erp5-buildout/erp5/products/Formulator/__init__.py", line
> 2, in ?
>     import Form
>   File "/home/erp5/erp5-buildout/erp5/products/Formulator/Form.py", line 20,
> in ?
>     from FormToXML import formToXML
>   File "/home/erp5/erp5-buildout/erp5/products/Formulator/FormToXML.py",
> line 4, in ?
>     from lxml.etree import Element, SubElement, CDATA
> ImportError: cannot import name CDATA
I am not sure. I think in you system installed old version python-lxml.
try remove it: sudo apt-get remove python-lxml
and try update erp5-buildout
and try add Site again

-- 
Crisis had come unexpectedly, just as winter comes unexpectedly to
Russia every year.



More information about the Erp5-users mailing list