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.

2

No web module found -> wrong path?

By
cere
on 4/29/13, 8:39 AM 23,260 views

Hi, after downloading all code throught bazaar (launchpad), the distribution of the web folder is:

auximesa@auximesa-VirtualBox:/opt/openerp$ du --max-depth=2 -h web/

360K    web/.bzr/checkout
25M web/.bzr/repository
200K    web/.bzr/branch
4,0K    web/.bzr/branch-lock
26M web/.bzr
556K    web/addons/web_diagram
1,3M    web/addons/web_graph
1,4M    web/addons/web_calendar
11M web/addons/web
44K web/addons/web_tests_demo
732K    web/addons/web_gantt
36K web/addons/web_api
428K    web/addons/web_kanban
356K    web/addons/web_view_editor
52K web/addons/web_hello
56K web/addons/web_tests
16M web/addons
41M web/

auximesa@auximesa-VirtualBox:/opt/openerp$

However, I start the openerp:

auximesa@auximesa-VirtualBox:/opt/openerp/server$ ./openerp-server 
2013-04-29 10:29:01,606 7815 INFO ? openerp: OpenERP version 7.0
2013-04-29 10:29:01,607 7815 INFO ? openerp: addons paths: /opt/openerp/server/openerp/addons
2013-04-29 10:29:01,608 7815 INFO ? openerp: database hostname: localhost
2013-04-29 10:29:01,608 7815 INFO ? openerp: database port: 5432
2013-04-29 10:29:01,608 7815 INFO ? openerp: database user: auximesa
2013-04-29 10:29:01,610 7815 WARNING ? openerp.modules.module: module web: module not found
2013-04-29 10:29:01,611 7815 CRITICAL ? openerp.modules.module: Couldn't load module web
2013-04-29 10:29:01,611 7815 CRITICAL ? openerp.modules.module: No module named web
2013-04-29 10:29:01,611 7815 ERROR ? openerp.service: 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/openerp/server/openerp/service/__init__.py", line 59, in load_server_wide_modules
    openerp.modules.module.load_openerp_module(m)
  File "/opt/openerp/server/openerp/modules/module.py", line 405, in load_openerp_module
    __import__('openerp.addons.' + module_name)
  File "/opt/openerp/server/openerp/modules/module.py", line 132, in load_module
    f, path, descr = imp.find_module(module_part, ad_paths)
ImportError: No module named web
2013-04-29 10:29:01,612 7815 WARNING ? openerp.modules.module: module web_kanban: module not found
2013-04-29 10:29:01,613 7815 CRITICAL ? openerp.modules.module: Couldn't load module web_kanban
2013-04-29 10:29:01,613 7815 CRITICAL ? openerp.modules.module: No module named web_kanban
2013-04-29 10:29:01,613 7815 ERROR ? openerp.service: Failed to load server-wide module `web_kanban`.
Traceback (most recent call last):
  File "/opt/openerp/server/openerp/service/__init__.py", line 59, in load_server_wide_modules
    openerp.modules.module.load_openerp_module(m)
  File "/opt/openerp/server/openerp/modules/module.py", line 405, in load_openerp_module
    __import__('openerp.addons.' + module_name)
  File "/opt/openerp/server/openerp/modules/module.py", line 132, in load_module
    f, path, descr = imp.find_module(module_part, ad_paths)
ImportError: No module named web_kanban
2013-04-29 10:29:01,619 7815 INFO ? openerp.service.wsgi_server: HTTP service (werkzeug) running on 0.0.0.0:8069
2013-04-29 10:29:01,619 7815 INFO ? openerp: OpenERP server is running, waiting for connections...
^C2013-04-29 10:29:25,214 7815 INFO ? openerp.service: Initiating shutdown
2013-04-29 10:29:25,215 7815 INFO ? openerp.service: Hit CTRL-C again or send a second signal to force the shutdown.
auximesa@auximesa-VirtualBox:/opt/openerp/server$

It shown that the server cannot find the web module, I think the web folder is wrong. How can I fix it? By adding any path file? Which one?

Thanks.

2
jamesbale
On 4/29/13, 8:43 AM

You have to start server with web addons path

opt/openerp/server$ ./openerp-server --addons-path=web/addons

now you can assign multiple addons path,

opt/openerp/server$ ./openerp-server --addons-path=web/addons,../addons1,../addons2

Thanks jamesbale, it works, but I had to change the path "--addons-path=web/addons" to "--addons-path=../web/addons"

And, I am spanish as well ;) , so could we have a chat to discuss some questions?

Thanks,

cere
on 4/29/13, 8:59 AM

yes coan change as you want no proble

jamesbale
on 4/29/13, 9:03 AM

May I have your contact or something else to have chat?

Thanks in advance.

cere
on 4/29/13, 9:15 AM
1
Zahin
On 5/26/14, 11:15 PM

As you provided information, 

You all installation at below loation

/opt/openerp/

Your server at below location

/opt/openerp/server/

Your addons at below locaiton,

/opt/openerp/server/openerp/addons

& as you downloaded web, your web module at below location

/opt/openerp/web.       Here is wrong,

As you running your server and keep addons inside server so,

here you have to move web and all new modules inside below location.

/opt/openerp/server/openerp/addons

Once you move web inside /opt/openerp/server/openerp/addons,

then restart openerp/odoo server it works as expected

 

Read more on : http://goo.gl/AuZpC3

 

 

 

 

1
Reimund Eckert
On 8/13/13, 1:58 PM

in the File : openerp-server.conf you need no space between the different paths - exaple: addons_path =/opt/openerp/server/openerp/addons,/opt/openerp/server/openerp/addons,/opt/openerp/server/openerp/addons/aeroo

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: 4/29/13, 8:39 AM
Seen: 23260 times
Last updated: 3/16/15, 8:10 AM