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.

-1

ImportError: No module named decorator ?

By
Madura
on 9/22/14, 7:29 AM 4,391 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.

0
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

http://www.renedohmen.nl/blog/2014/09/installing-odooopenerp-8-on-ubuntu-12-04-lts/ 

0

Odoo

--Odoo --
1328
| 5 2 5
kerala, India
--Odoo --

Working as a Odoo Functional and Technical Expert

Odoo
On 9/22/14, 7:56 AM

 need to install the decorator package use easy install command 

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

1 follower(s)

Stats

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