[Erp5-users] Cannot Add 'ERP5 Site' to Zope
Pramono Tunggul
pramono.tunggul at infi-nity.com
Wed Oct 7 15:37:13 CEST 2009
On Wed, Oct 7, 2009 at 7:35 PM, Jean-Paul Smets <jp at nexedi.com> wrote:
> Hi,
>
> Did you follow this page ?
> http://www.erp5.org/HowToUseBuildout
>
> Regards,
>
> JPS.
>
>
>
>
> 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
> > ------
> > 2009-10-07T23:38:38 ERROR Zope Couldn't install Formulator
> > 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/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:38 INFO Zope Ready to handle requests
> > ------
> > 2009-10-07T23:38:40 INFO ZServer Timerserver ready, starting timer
> > services.
> > ------
> > 2009-10-07T23:39:08 WARNING Base._aq_dynamic unable to create methods
> > for PreferenceTool
> > cannot import name CDATA
> > ------
> > 2009-10-07T23:39:08 WARNING Base._aq_dynamic unable to create methods
> > for PreferenceTool
> > cannot import name CDATA
> > ------
> > 2009-10-07T23:39:08 WARNING Base._aq_dynamic unable to create methods
> > for PreferenceTool
> > cannot import name CDATA
> > ------
> > 2009-10-07T23:39:08 WARNING Base._aq_dynamic unable to create methods
> > for PreferenceTool
> > cannot import name CDATA
> > ------
> > 2009-10-07T23:39:08 WARNING Base._aq_dynamic unable to create methods
> > for PreferenceTool
> > cannot import name CDATA
> > ------
> > 2009-10-07T23:39:08 WARNING Base._aq_dynamic unable to create methods
> > for PreferenceTool
> > cannot import name CDATA
> > ------
> > 2009-10-07T23:39:08 WARNING Base._aq_dynamic unable to create methods
> > for PreferenceTool
> > cannot import name CDATA
> > ------
> > 2009-10-07T23:39:08 WARNING Base._aq_dynamic unable to create methods
> > for PreferenceTool
> > cannot import name CDATA
> > ------
> > 2009-10-07T23:39:08 WARNING Base._aq_dynamic unable to create methods
> > for PreferenceTool
> > cannot import name CDATA
> > ------
> > 2009-10-07T23:39:08 WARNING Base._aq_dynamic unable to create methods
> > for PreferenceTool
> > cannot import name CDATA
> > ------
> > 2009-10-07T23:39:08 WARNING Base._aq_dynamic unable to create methods
> > for PreferenceTool
> > cannot import name CDATA
> > ------
> > 2009-10-07T23:39:08 WARNING Base._aq_dynamic unable to create methods
> > for PreferenceTool
> > cannot import name CDATA
> > ------
> > 2009-10-07T23:39:08 WARNING Base._aq_dynamic unable to create methods
> > for PreferenceTool
> > cannot import name CDATA
> > ------
> > 2009-10-07T23:39:08 WARNING Base._aq_dynamic unable to create methods
> > for PreferenceTool
> > cannot import name CDATA
> > ------
> > 2009-10-07T23:39:08 WARNING Base._aq_dynamic unable to create methods
> > for PreferenceTool
> > cannot import name CDATA
> > ------
> > 2009-10-07T23:39:08 WARNING Base._aq_dynamic unable to create methods
> > for PreferenceTool
> > cannot import name CDATA
> > ------
> > 2009-10-07T23:39:08 ERROR Zope.SiteErrorLog
> > http://localhost:8080/manage_addProduct/ERP5/manage_addERP5Site
> > Traceback (most recent call last):
> > File
> > "/home/erp5/erp5-buildout/parts/zope2/lib/python/ZPublisher/Publish.py",
> > line 114, in publish
> > request, bind=1)
> > File
> > "/home/erp5/erp5-buildout/parts/zope2/lib/python/ZPublisher/mapply.py",
> > line 88, in mapply
> > if debug is not None: return debug(object,args,context)
> > File
> > "/home/erp5/erp5-buildout/parts/zope2/lib/python/ZPublisher/Publish.py",
> > line 40, in call_object
> > result=apply(object,args) # Type s<cr> to step into published object.
> > File "/home/erp5/erp5-buildout/erp5/products/ERP5/ERP5Site.py", line
> > 92, in manage_addERP5Site
> > reindex=reindex)
> > File "/home/erp5/erp5-buildout/erp5/products/ERP5/ERP5Site.py", line
> > 1257, in create
> > reindex=reindex, **kw)
> > File "/home/erp5/erp5-buildout/erp5/products/ERP5/ERP5Site.py", line
> > 1661, in setup
> > self.setupTools(p, **kw)
> > File "/home/erp5/erp5-buildout/erp5/products/ERP5/ERP5Site.py", line
> > 1420, in setupTools
> > addTool = p.manage_addProduct['ERP5Form'].manage_addTool
> > File
> >
> "/home/erp5/erp5-buildout/parts/zope2/lib/python/App/FactoryDispatcher.py",
> > line 26, in __getitem__
> > return self.__bobo_traverse__(None, name)
> > File
> >
> "/home/erp5/erp5-buildout/parts/zope2/lib/python/App/FactoryDispatcher.py",
> > line 29, in __bobo_traverse__
> > product=self.aq_acquire('_getProducts')()._product(name)
> > File
> > "/home/erp5/erp5-buildout/parts/zope2/lib/python/App/Product.py", line
> > 69, in _product
> > def _product(self, name): return getattr(self, name)
> > AttributeError: ERP5Form
> >
> >
> > is anyone has solution for this problem?
> >
> > Thanks in advance.
> >
> > Best regards,
> >
> >
> > Pramono Tunggul
> > ------------------------------------------------------------------------
> >
> > _______________________________________________
> > Erp5-users mailing list
> > Erp5-users at erp5.org
> > http://mail.nexedi.com/mailman/listinfo/erp5-users
> >
>
>
> --
> Jean-Paul Smets-Solanes, Nexedi CEO - Tel. +33(0)6 29 02 44 25
> ERP5 Enterprise: Free / Open Source ERP for Critical Applications
> http://www.erp5.com
> ERP5 Express: Hosted Open Source ERP for small companies
> http://www.myerp5.com
> Nexedi: Consulting and Development of Free / Open Source Software
> http://www.nexedi.com
>
> _______________________________________________
> Erp5-users mailing list
> Erp5-users at erp5.org
> http://mail.nexedi.com/mailman/listinfo/erp5-users
>
Yepz.. I've followed the step, get zopectl but keep having the same error..
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
but in this case ERP5 can't get CDATA from lxml.etree module.
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)
Thank you for your quick reply.
Best regards,
Pramono Tunggul
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.tiolive.com/pipermail/erp5-users/attachments/20091007/936bd286/attachment.htm>
More information about the Erp5-users
mailing list