<br><br><div class="gmail_quote">On Wed, Oct 7, 2009 at 7:35 PM, Jean-Paul Smets <span dir="ltr"><<a href="mailto:jp@nexedi.com">jp@nexedi.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi,<br>
<br>
Did you follow this page ?<br>
<a href="http://www.erp5.org/HowToUseBuildout" target="_blank">http://www.erp5.org/HowToUseBuildout</a><br>
<br>
Regards,<br>
<br>
JPS.<br>
<div><div></div><div class="h5"><br>
<br>
<br>
<br>
Pramono Tunggul wrote:<br>
> Hey guys,<br>
><br>
> I'm trying to install ERP5 on hardy, everything work fine until it<br>
> come to moment when I have to add Erp5 site to Zope and it end in<br>
> error like this<br>
><br>
><br>
> Site Error<br>
><br>
> An error was encountered while publishing this resource.<br>
><br>
> *Error Type: AttributeError*<br>
> *Error Value: ERP5Form*<br>
><br>
> ------------------------------------------------------------------------<br>
><br>
> Troubleshooting Suggestions<br>
><br>
> * The URL may be incorrect.<br>
> * The parameters passed to this resource may be incorrect.<br>
> * A resource that this resource relies on may be encountering an<br>
> error.<br>
><br>
> For more detailed information about the error, please refer to the<br>
> error log.<br>
><br>
> If the error persists please contact the site maintainer. Thank you<br>
> for your patience.<br>
><br>
><br>
> and in the error log, I find it like thie<br>
><br>
><br>
> Traceback (most recent call last):<br>
> File<br>
> "/home/erp5/erp5-buildout/parts/zope2/lib/python/OFS/Application.py",<br>
> line 745, in install_product<br>
> global_dict, global_dict, silly)<br>
> File "/home/erp5/erp5-buildout/erp5/products/ERP5Form/__init__.py",<br>
> line 43, in ?<br>
> import Form, FSForm, ListBox, ReportBox, MatrixBox, SelectionTool<br>
> File "/home/erp5/erp5-buildout/erp5/products/ERP5Form/Form.py", line<br>
> 32, in ?<br>
> from Products.Formulator.Form import Form, BasicForm, ZMIForm<br>
> File<br>
> "/home/erp5/erp5-buildout/erp5/products/Formulator/__init__.py", line<br>
> 2, in ?<br>
> import Form<br>
> File "/home/erp5/erp5-buildout/erp5/products/Formulator/Form.py",<br>
> line 20, in ?<br>
> from FormToXML import formToXML<br>
> File<br>
> "/home/erp5/erp5-buildout/erp5/products/Formulator/FormToXML.py", line<br>
> 4, in ?<br>
> from lxml.etree import Element, SubElement, CDATA<br>
> ImportError: cannot import name CDATA<br>
> ------<br>
> 2009-10-07T23:38:30 ERROR Zope Couldn't install ERP5OOo<br>
> Traceback (most recent call last):<br>
> File<br>
> "/home/erp5/erp5-buildout/parts/zope2/lib/python/OFS/Application.py",<br>
> line 745, in install_product<br>
> global_dict, global_dict, silly)<br>
> File "/home/erp5/erp5-buildout/erp5/products/ERP5OOo/__init__.py",<br>
> line 48, in ?<br>
> from FormPrintout import FormPrintout<br>
> File<br>
> "/home/erp5/erp5-buildout/erp5/products/ERP5OOo/FormPrintout.py", line<br>
> 31, in ?<br>
> from Products.ERP5Form.ListBox import ListBox<br>
> File "/home/erp5/erp5-buildout/erp5/products/ERP5Form/__init__.py",<br>
> line 43, in ?<br>
> import Form, FSForm, ListBox, ReportBox, MatrixBox, SelectionTool<br>
> File "/home/erp5/erp5-buildout/erp5/products/ERP5Form/Form.py", line<br>
> 32, in ?<br>
> from Products.Formulator.Form import Form, BasicForm, ZMIForm<br>
> File<br>
> "/home/erp5/erp5-buildout/erp5/products/Formulator/__init__.py", line<br>
> 2, in ?<br>
> import Form<br>
> File "/home/erp5/erp5-buildout/erp5/products/Formulator/Form.py",<br>
> line 20, in ?<br>
> from FormToXML import formToXML<br>
> File<br>
> "/home/erp5/erp5-buildout/erp5/products/Formulator/FormToXML.py", line<br>
> 4, in ?<br>
> from lxml.etree import Element, SubElement, CDATA<br>
> ImportError: cannot import name CDATA<br>
> ------<br>
> 2009-10-07T23:38:38 ERROR Zope Couldn't install Formulator<br>
> Traceback (most recent call last):<br>
> File<br>
> "/home/erp5/erp5-buildout/parts/zope2/lib/python/OFS/Application.py",<br>
> line 745, in install_product<br>
> global_dict, global_dict, silly)<br>
> File<br>
> "/home/erp5/erp5-buildout/erp5/products/Formulator/__init__.py", line<br>
> 2, in ?<br>
> import Form<br>
> File "/home/erp5/erp5-buildout/erp5/products/Formulator/Form.py",<br>
> line 20, in ?<br>
> from FormToXML import formToXML<br>
> File<br>
> "/home/erp5/erp5-buildout/erp5/products/Formulator/FormToXML.py", line<br>
> 4, in ?<br>
> from lxml.etree import Element, SubElement, CDATA<br>
> ImportError: cannot import name CDATA<br>
> ------<br>
> 2009-10-07T23:38:38 INFO Zope Ready to handle requests<br>
> ------<br>
> 2009-10-07T23:38:40 INFO ZServer Timerserver ready, starting timer<br>
> services.<br>
> ------<br>
> 2009-10-07T23:39:08 WARNING Base._aq_dynamic unable to create methods<br>
> for PreferenceTool<br>
> cannot import name CDATA<br>
> ------<br>
> 2009-10-07T23:39:08 WARNING Base._aq_dynamic unable to create methods<br>
> for PreferenceTool<br>
> cannot import name CDATA<br>
> ------<br>
> 2009-10-07T23:39:08 WARNING Base._aq_dynamic unable to create methods<br>
> for PreferenceTool<br>
> cannot import name CDATA<br>
> ------<br>
> 2009-10-07T23:39:08 WARNING Base._aq_dynamic unable to create methods<br>
> for PreferenceTool<br>
> cannot import name CDATA<br>
> ------<br>
> 2009-10-07T23:39:08 WARNING Base._aq_dynamic unable to create methods<br>
> for PreferenceTool<br>
> cannot import name CDATA<br>
> ------<br>
> 2009-10-07T23:39:08 WARNING Base._aq_dynamic unable to create methods<br>
> for PreferenceTool<br>
> cannot import name CDATA<br>
> ------<br>
> 2009-10-07T23:39:08 WARNING Base._aq_dynamic unable to create methods<br>
> for PreferenceTool<br>
> cannot import name CDATA<br>
> ------<br>
> 2009-10-07T23:39:08 WARNING Base._aq_dynamic unable to create methods<br>
> for PreferenceTool<br>
> cannot import name CDATA<br>
> ------<br>
> 2009-10-07T23:39:08 WARNING Base._aq_dynamic unable to create methods<br>
> for PreferenceTool<br>
> cannot import name CDATA<br>
> ------<br>
> 2009-10-07T23:39:08 WARNING Base._aq_dynamic unable to create methods<br>
> for PreferenceTool<br>
> cannot import name CDATA<br>
> ------<br>
> 2009-10-07T23:39:08 WARNING Base._aq_dynamic unable to create methods<br>
> for PreferenceTool<br>
> cannot import name CDATA<br>
> ------<br>
> 2009-10-07T23:39:08 WARNING Base._aq_dynamic unable to create methods<br>
> for PreferenceTool<br>
> cannot import name CDATA<br>
> ------<br>
> 2009-10-07T23:39:08 WARNING Base._aq_dynamic unable to create methods<br>
> for PreferenceTool<br>
> cannot import name CDATA<br>
> ------<br>
> 2009-10-07T23:39:08 WARNING Base._aq_dynamic unable to create methods<br>
> for PreferenceTool<br>
> cannot import name CDATA<br>
> ------<br>
> 2009-10-07T23:39:08 WARNING Base._aq_dynamic unable to create methods<br>
> for PreferenceTool<br>
> cannot import name CDATA<br>
> ------<br>
> 2009-10-07T23:39:08 WARNING Base._aq_dynamic unable to create methods<br>
> for PreferenceTool<br>
> cannot import name CDATA<br>
> ------<br>
> 2009-10-07T23:39:08 ERROR Zope.SiteErrorLog<br>
> <a href="http://localhost:8080/manage_addProduct/ERP5/manage_addERP5Site" target="_blank">http://localhost:8080/manage_addProduct/ERP5/manage_addERP5Site</a><br>
> Traceback (most recent call last):<br>
> File<br>
> "/home/erp5/erp5-buildout/parts/zope2/lib/python/ZPublisher/Publish.py",<br>
> line 114, in publish<br>
> request, bind=1)<br>
> File<br>
> "/home/erp5/erp5-buildout/parts/zope2/lib/python/ZPublisher/mapply.py",<br>
> line 88, in mapply<br>
> if debug is not None: return debug(object,args,context)<br>
> File<br>
> "/home/erp5/erp5-buildout/parts/zope2/lib/python/ZPublisher/Publish.py",<br>
> line 40, in call_object<br>
> result=apply(object,args) # Type s<cr> to step into published object.<br>
> File "/home/erp5/erp5-buildout/erp5/products/ERP5/ERP5Site.py", line<br>
> 92, in manage_addERP5Site<br>
> reindex=reindex)<br>
> File "/home/erp5/erp5-buildout/erp5/products/ERP5/ERP5Site.py", line<br>
> 1257, in create<br>
> reindex=reindex, **kw)<br>
> File "/home/erp5/erp5-buildout/erp5/products/ERP5/ERP5Site.py", line<br>
> 1661, in setup<br>
> self.setupTools(p, **kw)<br>
> File "/home/erp5/erp5-buildout/erp5/products/ERP5/ERP5Site.py", line<br>
> 1420, in setupTools<br>
> addTool = p.manage_addProduct['ERP5Form'].manage_addTool<br>
> File<br>
> "/home/erp5/erp5-buildout/parts/zope2/lib/python/App/FactoryDispatcher.py",<br>
> line 26, in __getitem__<br>
> return self.__bobo_traverse__(None, name)<br>
> File<br>
> "/home/erp5/erp5-buildout/parts/zope2/lib/python/App/FactoryDispatcher.py",<br>
> line 29, in __bobo_traverse__<br>
> product=self.aq_acquire('_getProducts')()._product(name)<br>
> File<br>
> "/home/erp5/erp5-buildout/parts/zope2/lib/python/App/Product.py", line<br>
> 69, in _product<br>
> def _product(self, name): return getattr(self, name)<br>
> AttributeError: ERP5Form<br>
><br>
><br>
> is anyone has solution for this problem?<br>
><br>
> Thanks in advance.<br>
><br>
> Best regards,<br>
><br>
><br>
> Pramono Tunggul<br>
</div></div>> ------------------------------------------------------------------------<br>
<div class="im">><br>
> _______________________________________________<br>
> Erp5-users mailing list<br>
> <a href="mailto:Erp5-users@erp5.org">Erp5-users@erp5.org</a><br>
> <a href="http://mail.nexedi.com/mailman/listinfo/erp5-users" target="_blank">http://mail.nexedi.com/mailman/listinfo/erp5-users</a><br>
><br>
<br>
<br>
</div><font color="#888888">--<br>
Jean-Paul Smets-Solanes, Nexedi CEO - Tel. +33(0)6 29 02 44 25<br>
ERP5 Enterprise: Free / Open Source ERP for Critical Applications<br>
<a href="http://www.erp5.com" target="_blank">http://www.erp5.com</a><br>
ERP5 Express: Hosted Open Source ERP for small companies<br>
<a href="http://www.myerp5.com" target="_blank">http://www.myerp5.com</a><br>
Nexedi: Consulting and Development of Free / Open Source Software<br>
<a href="http://www.nexedi.com" target="_blank">http://www.nexedi.com</a><br>
</font><div><div></div><div class="h5"><br>
_______________________________________________<br>
Erp5-users mailing list<br>
<a href="mailto:Erp5-users@erp5.org">Erp5-users@erp5.org</a><br>
<a href="http://mail.nexedi.com/mailman/listinfo/erp5-users" target="_blank">http://mail.nexedi.com/mailman/listinfo/erp5-users</a><br></div></div></blockquote><div><br>Yepz.. I've followed the step, get zopectl but keep having the same error..<br>
<br>Yeah.. That is what I was thinking, since in the documentation of python-lxml, it's said that CDATA is part of lxml.etree module<br>but in this case ERP5 can't get CDATA from lxml.etree module.<br>anyway, could you tell me how to update erp5-buildout (I've tried to remove and install it many times but it seems that python-lxml doesn't updated at all)<br>
<br>Thank you for your quick reply.<br><br>Best regards,<br><br><br>Pramono Tunggul<br></div></div>