On running sudo /usr/bin/openerp-server restart from my ubuntu 12.10, i get Traceback (most recent call last): File "/usr/bin/openerp-server", line 5, in <module> openerp.cli.main() File "/usr/lib/pymodules/python2.7/openerp/cli/__init__.py", line 51, in main __import__(m) File "/usr/lib/pymodules/python2.7/openerp/modules/module.py", line 133, in load_module mod = imp.load_module('openerp.addons.' + module_part, f, path, descr) File "/usr/lib/pymodules/python2.7/openerp/addons/account_asset/__init__.py", line 22, in <module> import account_asset File "/usr/lib/pymodules/python2.7/openerp/addons/account_asset/account_asset.py", line 28, in <module> from tools.translate import _ ImportError: No module named tools.translate
I solve this by adding openerp.tools.translate on this particular module. Since there are so many modules with no explicit module declaration e.g with "from osv import fields, osv" declaration in many modules, how can i avoid having to add "openerp.xxx" in them so that openerp restarts smoothly?