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

Odoo configuration file: /etc/odoo11.conf

[options]
; This is the password that allows database operations:
; admin_passwd = admin
db_host = False
db_port = False
db_user = aristo-it-1
db_password = False
logfile = /var/log/odoo11/odoo-server.log
addons_path = /opt/odoo/odoo11/addons,/opt/odoo/odoo11/odoo/addons

Server Log:

2017-10-30 06:25:50,393 3939 CRITICAL ? odoo.modules.module: Couldn't load module web 2017-10-30 06:25:50,393 3939 CRITICAL ? odoo.modules.module: No module named 'web'
2017-10-30 06:25:50,393 3939 ERROR ? odoo.service.server: Failed to load server-wide module `web`.
The `web` module is provided by the addons found in the `openerp-web` project.
Maybe you forgot to add those addons in your addons_path configuration.
Traceback (most recent call last):
  File "/opt/odoo/odoo-11.0/odoo/service/server.py", line 869, in load_server_wide_modules
    odoo.modules.module.load_openerp_module(m)
  File "/opt/odoo/odoo-11.0/odoo/modules/module.py", line 368, in load_openerp_module
    __import__('odoo.addons.' + module_name)
  File "/opt/odoo/odoo-11.0/odoo/modules/module.py", line 61, in load_module
    f, path, (_suffix, _mode, type_) = imp.find_module(addon_name, ad_paths)
  File "/usr/lib/python3.5/imp.py", line 296, in find_module
    raise ImportError(_ERR_MSG.format(name), name=name)
ImportError: No module named 'web'
2017-10-30 06:25:50,418 3939 CRITICAL ? odoo.modules.module: Couldn't load module web_kanban 2017-10-30 06:25:50,418 3939 CRITICAL ? odoo.modules.module: No module named 'web_kanban'
2017-10-30 06:25:50,418 3939 ERROR ? odoo.service.server: Failed to load server-wide module `web_kanban`.
Traceback (most recent call last):
  File "/opt/odoo/odoo-11.0/odoo/service/server.py", line 869, in load_server_wide_modules
    odoo.modules.module.load_openerp_module(m)
  File "/opt/odoo/odoo-11.0/odoo/modules/module.py", line 368, in load_openerp_module
    __import__('odoo.addons.' + module_name)
  File "/opt/odoo/odoo-11.0/odoo/modules/module.py", line 61, in load_module
    f, path, (_suffix, _mode, type_) = imp.find_module(addon_name, ad_paths)
  File "/usr/lib/python3.5/imp.py", line 296, in find_module
    raise ImportError(_ERR_MSG.format(name), name=name)
ImportError: No module named 'web_kanban'
Ảnh đại diện
Huỷ bỏ

I am also having this same error, but Odoo is running without issues, only "ImportError: No module named 'web_kanban' " error is shown in the terminal.

Câu trả lời hay nhất

Did you double check the location of your addons modules? Did you double check the paths in the .conf file? Did you double check the folder/file permissions on your addon folders?

Ảnh đại diện
Huỷ bỏ
Tác giả

my odoo11 located at /opt/odoo/odoo-11.0/

There was a mistake in /etc/odoo.conf file

addons_path = /opt/odoo/odoo-11.0/addons,/opt/odoo/odoo-11.0/odoo/addons

I started server using ./odoo-bin --addons-path="addons,odoo/addons"

Tác giả

But the same error arises

Did you try to start Odoo with the full paths and/or the conf-file parameter instead?

Tác giả

I tried in two different ways

1. ./odoo-bin --addons-path="addons,odoo/addons"

2. ./odoo-bin -c /etc/odoo11.conf

Odoo running but web_kanban error still showing

Câu trả lời hay nhất

It's actually a bug inside Jinja2. Update it to version 2.11.2


This solved my issue, you can check the requirement.txt and install the specified version


Thanks


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

When you switch to another odoo version then Simply just delete your ".odoorc" file from the home directory. 

it will work.


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

When you switch to another odoo version then Simply just delete your ".odoorc" file from the home directory.

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

I resolve the issue adding in the .conf file in /etc/odoo/ the addons folder inside odoo's core folder:

...

addons_path = /usr/lib/python3/dist-packages/odoo/addons,/opt/odoo-dev/11.0/addons,/opt/odoo-dev/custom-addons11

...

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

this happens also to me!

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

I am also facing this issue in odoo 11, everything is ok in conf file and server works though it shows :

ImportError: No module named 'web_kanban'

can someone give me some idea to track the exact issue of this error ?

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

This error might occur when installing newer versions of Odoo on same machine.when a .openerp_serverrc file already exists with old addons configuration. Edit the .openerp_serverrc file with newer configuration and it will work.

Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
2
thg 7 24
3169
1
thg 6 24
5543
1
thg 10 23
11422
1
thg 10 23
98
1
thg 8 23
2194