Connectors mailing list archives

connectors@odoo-community.org

Avatar

ImportError: cannot import name connector

by
Ahmed Ababneh
- 23/11/2015 08:12:55
Hi All,

The Odoo returns an empty pate with "Internal Server Error" message. The log file shows the following message: ImportError: cannot import name connector

The connector was working fine. I have got this issue just now.

Here is the traceback I get in the log file: 

2015-11-23 06:58:29,167 3112 CRITICAL jamalon openerp.modules.module: Couldn't load module customize_module_17
2015-11-23 06:58:29,167 3112 CRITICAL jamalon openerp.modules.module: cannot import name connector
2015-11-23 06:58:29,169 3112 INFO jamalon werkzeug: 212.35.70.18 - - [23/Nov/2015 06:58:29] "GET /web HTTP/1.1" 500 -
2015-11-23 06:58:29,175 3112 ERROR jamalon werkzeug: Error on request:
Traceback (most recent call last):
  File "/usr/share/pyshared/werkzeug/serving.py", line 159, in run_wsgi
    execute(app)
  File "/usr/share/pyshared/werkzeug/serving.py", line 146, in execute
    application_iter = app(environ, start_response)
  File "/opt/odoo/openerp/service/server.py", line 285, in app
    return self.app(e, s)
  File "/opt/odoo/openerp/service/wsgi_server.py", line 216, in application
    return application_unproxied(environ, start_response)
  File "/opt/odoo/openerp/service/wsgi_server.py", line 202, in application_unproxied
    result = handler(environ, start_response)
  File "/opt/odoo/openerp/http.py", line 1281, in __call__
    return self.dispatch(environ, start_response)
  File "/opt/odoo/openerp/http.py", line 1255, in __call__
    return self.app(environ, start_wrapped)
  File "/usr/share/pyshared/werkzeug/wsgi.py", line 411, in __call__
    return self.app(environ, start_response)
  File "/opt/odoo/openerp/http.py", line 1413, in dispatch
    ir_http = request.registry['ir.http']
  File "/opt/odoo/openerp/http.py", line 339, in registry
    return openerp.modules.registry.RegistryManager.get(self.db) if self.db else None
  File "/opt/odoo/openerp/modules/registry.py", line 339, in get
    update_module)
  File "/opt/odoo/openerp/modules/registry.py", line 370, in new
    openerp.modules.load_modules(registry._db, force_demo, status, update_module)
  File "/opt/odoo/openerp/modules/loading.py", line 351, in load_modules
    force, status, report, loaded_modules, update_module)
  File "/opt/odoo/openerp/modules/loading.py", line 255, in load_marked_modules
    loaded, processed = load_module_graph(cr, graph, progressdict, report=report, skip_modules=loaded_modules, perform_checks=perform_checks)
  File "/opt/odoo/openerp/modules/loading.py", line 143, in load_module_graph
    load_openerp_module(package.name)
  File "/opt/odoo/openerp/modules/module.py", line 315, in load_openerp_module
    __import__('openerp.addons.' + module_name)
  File "/opt/odoo/openerp/modules/module.py", line 80, in load_module
    mod = imp.load_module('openerp.addons.' + module_part, f, path, descr)
  File "/opt/odoo/addons/customize_module_17/__init__.py", line 3, in <module>
    from . import connector
ImportError: cannot import name connector

What can I do to resolve this issue?

Thanks everybody.

Follow-Ups