Odoo Help


ImportError: No module named decorator ?

on 9/22/14, 7:29 AM 5,775 views

Hello All,

When I try to install Odoo8 latest version via Odoo documentation and proceed the "./openerp-server" command i'm getting following this error, 

Traceback (most recent call last):
  File "./openerp-server", line 2, in <module>
    import openerp
  File "/home/zone/openerp-8.0-29e08a2/openerp/__init__.py", line 72, in <module>
    import modules
  File "/home/zone/openerp-8.0-29e08a2/openerp/modules/__init__.py", line 27, in <module>
    from . import db, graph, loading, migration, module, registry
  File "/home/zone/openerp-8.0-29e08a2/openerp/modules/graph.py", line 32, in <module>
    import openerp.osv as osv
  File "/home/zone/openerp-8.0-29e08a2/openerp/osv/__init__.py", line 22, in <module>
    import osv
  File "/home/zone/openerp-8.0-29e08a2/openerp/osv/osv.py", line 23, in <module>
    from .orm import Model, TransientModel, AbstractModel
  File "/home/zone/openerp-8.0-29e08a2/openerp/osv/orm.py", line 5, in <module>
    from ..models import (
  File "/home/zone/openerp-8.0-29e08a2/openerp/models.py", line 62, in <module>
    from . import api
  File "/home/zone/openerp-8.0-29e08a2/openerp/api.py", line 71, in <module>
    from openerp.tools import frozendict
  File "/home/zone/openerp-8.0-29e08a2/openerp/tools/__init__.py", line 26, in <module>
    from misc import *
  File "/home/zone/openerp-8.0-29e08a2/openerp/tools/misc.py", line 54, in <module>
    from cache import *
  File "/home/zone/openerp-8.0-29e08a2/openerp/tools/cache.py", line 24, in <module>
    from decorator import decorator
ImportError: No module named decorator

So can you please anyone help me to resolve this?

Thank You.

Mohammed Mansour
On 4/7/15, 3:57 PM

1- You need to correctly configure sources.list file using the external resources as follow:

# sudo gedit /etc/apt/sources.list

and then add  these resources to the file:

deb http://ftp.es.debian.org/debian stable main contrib non-free

deb http://ftp.debian.org/debian/ wheezy-updates main contrib non-free

deb http://security.debian.org/ wheezy/updates main contrib non-free

2- after adding these resources execute this command:

# sudo apt-get update

3- You can now easily install the decorator module as follow:

# sudo apt-get install python-decorator

4- Now you can install any other package that odoo depends on.

for more information about installation odoo v8 on ubuntu and it's dependences view this link




--Odoo --

| 5 2 5
--Odoo --

Working in Odoo TEchnologies

On 9/22/14, 7:56 AM

 need to install the decorator package use easy install command 

About This Community

This platform 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.


Odoo Training Center

Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now

Question tools

1 follower(s)


Asked: 9/22/14, 7:29 AM
Seen: 5775 times
Last updated: 4/7/15, 5:49 PM