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

Couldn't load module web

By
Peter Seng
on 3/28/13, 2:27 AM 2,293 views

Hi everyone! As before I bzr-ed pull as follows:

sudo /etc/init.d/openerp-server stop 
cd server  
bzr pull
cd web
bzr pull
cd addons
bzr pull
sudo /etc/init.d/openerp-server start

Then I have the error "no handler found" in my browser. The strange thing is that previously the above could always end up getting the server to run well immediately.

My v7 server's log is below:

2013-03-28 04:59:42,867 4683 CRITICAL ? openerp.modules.module: Couldn't load module web
2013-03-28 04:59:42,867 4683 CRITICAL ? openerp.modules.module: invalid syntax (share_wizard.py, line 617)
2013-03-28 04:59:42,867 4683 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 62, in load_server_wide_modules
    openerp.modules.module.load_openerp_module(m)
  File "/opt/openerp/server/openerp/modules/module.py", line 357, in load_openerp_module
    getattr(sys.modules['openerp.addons.' + module_name], info['post_load'])()
  File "/opt/openerp/web/addons/web/http.py", line 600, in wsgi_postload
    openerp.wsgi.register_wsgi_handler(Root())
  File "/opt/openerp/web/addons/web/http.py", line 490, in __init__
    self.load_addons()
  File "/opt/openerp/web/addons/web/http.py", line 553, in load_addons
    m = __import__('openerp.addons.' + module)
  File "/opt/openerp/server/openerp/modules/module.py", line 83, in load_module
    mod = imp.load_module('openerp.addons.' + module_part, f, path, descr)
  File "/opt/openerp/addons/share/__init__.py", line 24, in <module>
    import wizard
  File "/opt/openerp/addons/share/wizard/__init__.py", line 22, in <module>
    import share_wizard
  File "/opt/openerp/addons/share/wizard/share_wizard.py", line 617
    <<<<<<< TREE
     ^
SyntaxError: invalid syntax
2013-03-28 05:00:01,827 1493 INFO ? werkzeug: 218.66.59.169 - - [28/Mar/2013 05:00:01] "GET / HTTP/1.1" 404 -
2013-03-28 05:00:03,301 1493 INFO ? werkzeug: 218.66.59.169 - - [28/Mar/2013 05:00:03] "GET /favicon.ico HTTP/1.1" 404 -
2013-03-28 05:00:16,161 1493 INFO ? werkzeug: 218.66.59.169 - - [28/Mar/2013 05:00:16] "GET / HTTP/1.1" 404 -
2013-03-28 05:00:16,285 1493 INFO ? werkzeug: 218.66.59.169 - - [28/Mar/2013 05:00:16] "GET /favicon.ico HTTP/1.1" 404 -

Can anyone point out what the log is telling and what is the way out? Many thanks!

Peter

0
Peter Seng
On 3/28/13, 5:02 AM

I do the code below. It resolved

cd addons
bzr revno
8562    
bzr revert 8545

It is the lasted addons contained some error?

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

0 follower(s)

Stats

Asked: 3/28/13, 2:27 AM
Seen: 2293 times
Last updated: 3/16/15, 8:10 AM