Odoo Help

Welcome!

This community is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.

0

Openerp Restart Error

By
mmycool
on 4/24/13, 8:47 PM 1,840 views

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?

0
klacus
On 4/24/13, 11:46 PM

Hi. May you have an "overconfiguration" problem. Can you try to make a clean system install, and after to make the module install. I was a same problem before when: - I modified the addons modules directly, not inherited way - I hacking the database directly, sometimes delete some records by direct way - Some other modules install randomly, just for fun like module version 5.0 but the system is 6.1

So may be you have some similar situation, but this is just my opinion. :-)

0

Keyur

--Keyur--
1165
| 4 4 8
Ahmedabad, India
--Keyur--

Odoo Expert

Keyur
On 4/25/13, 2:30 AM

Hi, I have face this problem too. The easiest way to solve this problem is, take the latest update by applying command at your server location bzr pull & then revert the addons module by applying command bzr revert.I am sure this will solve your problem. Let me know if you still get error.

Hi Keyur, I am facing the same issue. What is the appropriate syntax? Many thanks.

toto
on 2/19/14, 1:57 PM

Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

About This Community

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

2 follower(s)

Stats

Asked: 4/24/13, 8:47 PM
Seen: 1840 times
Last updated: 3/16/15, 8:10 AM