İçereği Atla
Menü
Bu soru işaretlendi
1 Cevapla
8176 Görünümler

Hi, I followed the steps in the guide but to add branches to the path of addons, it gives the following error:

2013-11-17 10:08:03,258 9922 CRITICAL ? openerp.modules.module: Couldn't load module web
2013-11-17 10:08:03,258 9922 CRITICAL ? openerp.modules.module: No module named connector
2013-11-17 10:08:03,259 9922 ERROR ? openerp.service: Failed to load server-wide module `web`.
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 "/opt/openerp/v7.0/server/openerp/service/__init__.py", line 59, in load_server_wide_modules
    openerp.modules.module.load_openerp_module(m)
  File "/opt/openerp/v7.0/server/openerp/modules/module.py", line 415, in load_openerp_module
    getattr(sys.modules['openerp.addons.' + module_name], info['post_load'])()
  File "/home/ubuntu/openerp/v7.0/web/addons/web/http.py", line 593, in wsgi_postload
    openerp.wsgi.register_wsgi_handler(Root())
  File "/home/ubuntu/openerp/v7.0/web/addons/web/http.py", line 483, in __init__
    self.load_addons()
  File "/home/ubuntu/openerp/v7.0/web/addons/web/http.py", line 546, in load_addons
    m = __import__('openerp.addons.' + module)
  File "/opt/openerp/v7.0/server/openerp/modules/module.py", line 133, in load_module
    mod = imp.load_module('openerp.addons.' + module_part, f, path, descr)
  File "/home/ubuntu/openerp/v7.0/addons/openerp-connector-magento/magentoerpconnect/__init__.py", line 3, in <module>
    import connector
  File "/home/ubuntu/openerp/v7.0/addons/openerp-connector-magento/magentoerpconnect/connector.py", line 23, in <module>
    from openerp.addons.connector.connector import (Environment,
  File "/opt/openerp/v7.0/server/openerp/modules/module.py", line 132, in load_module
    f, path, descr = imp.find_module(module_part, ad_paths)
ImportError: No module named connector
2013-11-17 10:08:03,260 9922 INFO ? openerp.service.netrpc_server: starting NET-RPC service on 0.0.0.0:8070
2013-11-17 10:08:03,261 9922 INFO ? openerp.service.wsgi_server: HTTP service (werkzeug) running on 0.0.0.0:8069
2013-11-17 10:08:03,261 9922 INFO ? openerp: OpenERP server is running, waiting for connections...

Someone had the same problem?

Thanks

Avatar
Vazgeç
En İyi Yanıt

Hi,

where did you install the connector module? I've created an extra path for custom modules (/opt/openerp-custom/addons/) and copied the connector module there: /opt/openerp-custom/addons/connector/ . Then I've added the addons path to /etc/openerp/openerp-server.conf .

My configuration looks like this:

addons_path = /usr/lib/pymodules/python2.7/openerp/addons,/opt/openerp-custom/addons,/opt/openerp-custom/magento-openerp-connector/e-commerce-addons,/opt/openerp-custom/magento-openerp-connector/magentoerpconnect,/opt/openerp-custom/magento-openerp-connector/openerp-product-attributes

Hope this helps.

Best regards,

schnere

Avatar
Vazgeç