如何将Magento与OpenERP v8(Odoo)集成

时间:2014-04-02 12:53:41

标签: python magento openerp openerp-7 openerp-8

如何将Maganto连接器与OpenERP v8(Odoo)集成。

我正在尝试安装它,但它引发了以下错误。我也尝试了addons路径。

The `web` module is provided by the addons found in the `openerp-web` project.
Maybe you forgot to add those addons in your addons_path configuration. 
Traceback (most recent call last):
  File "/home/atul/openerp-8/openerp/service/server.py", line 792, in     load_server_wide_modules
   openerp.modules.module.load_openerp_module(m)
  File "/home/atul/openerp-8/openerp/modules/module.py", line 357, in load_openerp_module
    getattr(sys.modules['openerp.addons.' + module_name], info['post_load'])()
  File "/home/atul/openerp-8/openerp/http.py", line 1142, in wsgi_postload
   root = Root()
  File "/home/atul/openerp-8/openerp/http.py", line 922, in __init__
   self.load_addons()
  File "/home/atul/openerp-8/openerp/http.py", line 947, in load_addons
   m = __import__('openerp.addons.' + module)
  File "/home/atul/openerp-8/openerp/modules/module.py", line 83, in load_module
   mod = imp.load_module('openerp.addons.' + module_part, f, path, descr)
  File "/home/atul/openerp-8/openerp/addons/magentoerpconnect/__init__.py", line 6, in     <module>
import magento_model
File "/home/atul/openerp-8/openerp/addons/magentoerpconnect/magento_model.py", line 34, in <module>
  from .unit.backend_adapter import GenericAdapter
File "/home/atul/openerp-8/openerp/addons/magentoerpconnect/unit/__init__.py", line 5, in <module>
  import import_synchronizer
File "/home/atul/openerp-8/openerp/addons/magentoerpconnect/unit/import_synchronizer.py", line 26, in <module>
from openerp.addons.connector.queue.job import job
File "/home/atul/openerp-8/openerp/addons/connector/queue/__init__.py", line 22, in <module>
 import model
File "/home/atul/openerp-8/openerp/addons/connector/queue/model.py", line 31, in <module>
 from .worker import WORKER_TIMEOUT
File "/home/atul/openerp-8/openerp/addons/connector/queue/worker.py", line 34, in <module>
 from openerp.osv.osv import PG_CONCURRENCY_ERRORS_TO_RETRY
ImportError: cannot import name PG_CONCURRENCY_ERRORS_TO_RETRY

1 个答案:

答案 0 :(得分:0)

尝试添加--addons参数,例如

python openerp-server --addons-path=web/addons 

python openerp-server --addons-path=addons