Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
2 Trả lời
15160 Lượt xem

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.

Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

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/ 

Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

 need to install the decorator package use easy install command 

Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
3
thg 6 20
6839
1
thg 3 15
4894
0
thg 3 15
4260
0
thg 10 20
2716
0
thg 3 18
4364