[Erp5-users] erp5_trade "ImportError : No module named OpenOrderRule"

Sebastien erp5 at idealisconsulting.com
Fri Feb 13 14:57:54 CET 2009


Hello,

Quick question : I'm facing a problem when trying to download the erp5_trade business template from repository erp5.org/dists/snapshot/bt5. I have only problem with this business template. I also tried after upgrading the BT already installed on my erp5 site and that doesn't solve the error. 

Does someone have any idea?

Thanks in advance

Sebastien

For info, here is the log :

Site Error

An error was encountered while publishing this resource.

ImportError
Sorry, a site error occurred.

Traceback (innermost last):

    * Module ZPublisher.Publish, line 188, in publish_module_standard
    * Module Products.iHotfix, line 88, in new_publish
    * Module ZPublisher.Publish, line 145, in publish
    * Module Zope2.App.startup, line 216, in zpublisher_exception_hook
    * Module ZPublisher.Publish, line 114, in publish
    * Module ZPublisher.mapply, line 88, in mapply
    * Module ZPublisher.Publish, line 40, in call_object
    * Module Shared.DC.Scripts.Bindings, line 311, in __call__
    * Module Shared.DC.Scripts.Bindings, line 348, in _bindAndExec
    * Module Products.PythonScripts.PythonScript, line 325, in _exec
    * Module None, line 208, in Base_callDialogMethod
      <PythonScript at /erp5/Base_callDialogMethod used for /erp5/portal_templates>
      Line 208
    * Module AccessControl.ZopeGuards, line 339, in guarded_apply
    * Module AccessControl.ZopeGuards, line 361, in builtin_guarded_apply
    * Module Shared.DC.Scripts.Bindings, line 311, in __call__
    * Module Shared.DC.Scripts.Bindings, line 348, in _bindAndExec
    * Module Products.PythonScripts.PythonScript, line 325, in _exec
    * Module None, line 16, in TemplateTool_downloadRepositoryBusinessTemplateList
      <PythonScript at /erp5/TemplateTool_downloadRepositoryBusinessTemplateList used for /erp5/portal_templates>
      Line 16
    * Module Products.ERP5.Tool.TemplateTool, line 380, in download
    * Module Products.ERP5.Tool.TemplateTool, line 344, in _download_url
    * Module Products.ERP5.Tool.TemplateTool, line 332, in _download_local
    * Module Products.ERP5.Tool.TemplateTool, line 267, in _importBT
    * Module Products.ERP5Type.Document.BusinessTemplate, line 5169, in importFile
    * Module Products.ERP5Type.Document.BusinessTemplate, line 443, in importFile
    * Module Products.ERP5Type.Document.BusinessTemplate, line 342, in importFiles
    * Module Products.ERP5Type.Document.BusinessTemplate, line 607, in _importFile
      __traceback_info__: Importing portal_rules/default_open_order_rule.xml
    * Module ZODB.ExportImport, line 65, in importFile
    * Module OFS.XMLExportImport, line 119, in importXML
    * Module ZODB.ExportImport, line 75, in importFile
    * Module transaction._transaction, line 297, in savepoint
    * Module transaction._transaction, line 294, in savepoint
    * Module transaction._transaction, line 657, in __init__
    * Module ZODB.Connection, line 1034, in savepoint
    * Module ZODB.Connection, line 470, in _commit
    * Module ZODB.ExportImport, line 139, in _importDuringCommit

ImportError: No module named OpenOrderRule (Also, the following error occurred while attempting to render the standard error message, please see the event log for full details: An operation previously failed, with traceback: File &quot;/usr/lib/erp5/lib/python/ZServer/PubCore/ZServerPublisher.py&quot;, line 23, in __init__ response=response) File &quot;/usr/lib/erp5/lib/python/ZPublisher/Publish.py&quot;, line 387, in publish_module environ, debug, request, response) File &quot;/usr/lib/erp5/lib/python/ZPublisher/Publish.py&quot;, line 188, in publish_module_standard response = publish(request, module_name, after_list, debug=debug) File &quot;/usr/lib/erp5/lib/python/Products/iHotfix/__init__.py&quot;, line 88, in new_publish x = Publish.zope_publish(zope_request, module_name, after_list, debug) File &quot;/usr/lib/erp5/lib/python/ZPublisher/Publish.py&quot;, line 114, in publish request, bind=1) File &quot;/usr/lib/erp5/lib/python/ZPublisher/mapply.py&quot;, line 88, in map!
 ply if debug is not None: return debug(object,args,context) File &quot;/usr/lib/erp5/lib/python/ZPublisher/Publish.py&quot;, line 40, in call_object result=apply(object,args) # Type s&lt;cr&gt; to step into published object. File &quot;/usr/lib/erp5/lib/python/Shared/DC/Scripts/Bindings.py&quot;, line 311, in __call__ return self._bindAndExec(args, kw, None) File &quot;/usr/lib/erp5/lib/python/Shared/DC/Scripts/Bindings.py&quot;, line 348, in _bindAndExec return self._exec(bound_data, args, kw) File &quot;/usr/lib/erp5/lib/python/Products/PythonScripts/PythonScript.py&quot;, line 325, in _exec result = f(*args, **kw) File &quot;Script (Python)&quot;, line 208, in Base_callDialogMethod File &quot;/usr/lib/erp5/lib/python/AccessControl/ZopeGuards.py&quot;, line 339, in guarded_apply return builtin_guarded_apply(func, args, kws) File &quot;/usr/lib/erp5/lib/python/AccessControl/ZopeGuards.py&quot;, line 361, in builtin_guarded_apply return func(*arglist, **argdict) File &quot;!
 /usr/lib/erp5/lib/python/Shared/DC/Scripts/Bindings.py&quot;, line 311, in __call__ return self._bindAndExec(args, kw, None) File &quot;/usr/lib/erp5/lib/python/Shared/DC/Scripts/Bindings.py&quot;, line 348, in _bindAndExec return self._exec(bound_data, args, kw) File &quot;/usr/lib/erp5/lib/python/Products/PythonScripts/PythonScript.py&quot;, line 325, in _exec result = f(*args, **kw) File &quot;Script (Python)&quot;, line 16, in TemplateTool_downloadRepositoryBusinessTemplateList File &quot;/usr/lib/erp5/lib/python/Products/ERP5/Tool/TemplateTool.py&quot;, line 380, in download bt = self._download_url(url, id) File &quot;/usr/lib/erp5/lib/python/Products/ERP5/Tool/TemplateTool.py&quot;, line 344, in _download_url return self._download_local(file_path, bt_id) File &quot;/usr/lib/erp5/lib/python/Products/ERP5/Tool/TemplateTool.py&quot;, line 332, in _download_local return self._importBT(path, bt_id) File &quot;/usr/lib/erp5/lib/python/Products/ERP5/Tool/TemplateTool.py&quot;, line 267, in _importBT bt.importFile(file=fobj) File &quot;/usr/lib/!
 erp5/lib/python/Products/ERP5/Document/BusinessTemplate.py&quot;, line 5169, in importFile getattr(self, item_name).importFile(bta) File &quot;/usr/lib/erp5/lib/python/Products/ERP5/Document/BusinessTemplate.py&quot;, line 443, in importFile bta.importFiles(item=self) File &quot;/usr/lib/erp5/lib/python/Products/ERP5/Document/BusinessTemplate.py&quot;, line 342, in importFiles item._importFile(file_name, file) File &quot;/usr/lib/erp5/lib/python/Products/ERP5/Document/BusinessTemplate.py&quot;, line 607, in _importFile obj = connection.importFile(file_obj, customImporters=customImporters) File &quot;/usr/lib/erp5/lib/python/ZODB/ExportImport.py&quot;, line 65, in importFile return customImporters[magic](self, f, clue) File &quot;/usr/lib/erp5/lib/python/OFS/XMLExportImport.py&quot;, line 119, in importXML return jar.importFile(outfile,clue) File &quot;/usr/lib/erp5/lib/python/ZODB/ExportImport.py&quot;, line 75, in importFile t.savepoint(optimistic=True) File &quot;/usr/lib!
 /erp5/lib/python/transaction/_transaction.py&quot;, line 297, in savepoint self._saveCommitishError() # reraises! File &quot;/usr/lib/erp5/lib/python/transaction/_transaction.py&quot;, line 294, in savepoint savepoint = Savepoint(self, optimistic, *self._resources) File &quot;/usr/lib/erp5/lib/python/transaction/_transaction.py&quot;, line 657, in __init__ savepoint = savepoint() File &quot;/usr/lib/erp5/lib/python/ZODB/Connection.py&quot;, line 1034, in savepoint self._commit(None) File &quot;/usr/lib/erp5/lib/python/ZODB/Connection.py&quot;, line 470, in _commit self._importDuringCommit(transaction, *self._import) File &quot;/usr/lib/erp5/lib/python/ZODB/ExportImport.py&quot;, line 139, in _importDuringCommit pickler.dump(unpickler.load()) ImportError: No module named OpenOrderRule )

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 error log.

If the error persists please contact the site maintainer. Thank you for your patience. 





More information about the Erp5-users mailing list