Odoo 8.0alpha1: no module named tools

Bug #1329683 reported by Francois Deppierraz
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenERP Swiss Localization
New
Undecided
krishnakanth

Bug Description

Running odoo trunk (0f01df42eaf662987abe5f069ca8df2e2caf8e37) with lp:openerp-swiss-localization:

2014-06-12 15:29:45,271 20239 ERROR ? werkzeug: Error on request:
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/werkzeug/serving.py", line 177, in run_wsgi
    execute(self.server.app)
  File "/usr/lib/python2.7/dist-packages/werkzeug/serving.py", line 165, in execute
    application_iter = app(environ, start_response)
  File "/home/ubuntu/odoo/openerp/service/server.py", line 273, in app
    return self.app(e, s)
  File "/home/ubuntu/odoo/openerp/service/wsgi_server.py", line 215, in application
    return application_unproxied(environ, start_response)
  File "/home/ubuntu/odoo/openerp/service/wsgi_server.py", line 201, in application_unproxied
    result = handler(environ, start_response)
  File "/home/ubuntu/odoo/openerp/http.py", line 1128, in __call__
    self.load_addons()
  File "/home/ubuntu/odoo/openerp/http.py", line 1147, in load_addons
    m = __import__('openerp.addons.' + module)
  File "/home/ubuntu/odoo/openerp/modules/module.py", line 75, in load_module
    mod = imp.load_module('openerp.addons.' + module_part, f, path, descr)
  File "/home/ubuntu/openerp-swiss-localization/l10n_ch_base_bank/__init__.py", line 20, in <module>
    from . import bank
  File "/home/ubuntu/openerp-swiss-localization/l10n_ch_base_bank/bank.py", line 24, in <module>
    from tools import mod10r
ImportError: No module named tools

Related branches

Changed in openerp-swiss-localization:
assignee: nobody → krishnakanth (krishnakanth137)
Revision history for this message
krishnakanth (krishnakanth137) wrote :

Hi OpenERP Swiss Localization,

            we have import as follows:

              current line: -from tools import mod10r

              Replace with this line: from openerp.tools import mod10r

Revision history for this message
krishnakanth (krishnakanth137) wrote :

Hi,

           we have to write the code like -from openerp.tools import mod10r.

Thanks & Regards
Krishnakanth

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.