Odoo Help


couldn't load module web error following an update of openerp

NIcolas Plée
on 4/29/14, 1:11 PM 3,003 views

Hi all, I made an update of OpenERP v7 this week-end and I have the following error that I can't resolve. If anybody could help, it would be greatly appreciated.


>     2014-04-29 14:39:03,924 20052 CRITICAL ? openerp.modules.module:
> Couldn't load module web
>     2014-04-29 14:39:03,925 20052 CRITICAL ? openerp.modules.module:
> invalid syntax (<unknown>, line 93)
>     2014-04-29 14:39:03,925 20052 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 60, in load_server_wide_modules
>         openerp.modules.module.load_openerp_module(m)
>       File "/opt/openerp/server/openerp/modules/module.py",
> line 415, in load_openerp_module
>         getattr(sys.modules['openerp.addons.'
> + module_name], info['post_load'])()
>       File "/opt/openerp/web/addons/web/http.py",
> line 628, in wsgi_postload
>         openerp.wsgi.register_wsgi_handler(Root())
>       File "/opt/openerp/web/addons/web/http.py",
> line 517, in __init__
>         self.load_addons()
>       File "/opt/openerp/web/addons/web/http.py",
> line 576, in load_addons
>         manifest = ast.literal_eval(open(manifest_path).read())
>       File "/usr/lib/python2.7/ast.py", line 49,
> in literal_eval
>         node_or_string = parse(node_or_string, mode='eval')
>       File "/usr/lib/python2.7/ast.py", line 37,
> in parse
>         return compile(source, filename, mode, PyCF_ONLY_AST)
>       File "<unknown>", line 93
>         <<<<<<< TREE
>          ^
>     SyntaxError: invalid syntax
NIcolas Plée
On 5/2/14, 1:03 PM

Any idea ? I'm kind of blocked there...


Ludo - 21South

--Ludo - 21South--
| 2 2 5
Zwijndrecht, Netherlands
--Ludo - 21South--


Ludo - 21South
On 5/23/14, 8:44 AM

Might be a bit late, but nonetheless:

It seems that you were updating a module that had differences from the original module. Differences that could not be resolved automatically by bazaar. Now some of the commenting that is used to point to differences in files is still left in your file (its the <<<<<< TREE). 


Baiscally you have multiple options, but the fastest might be to remove the file and download it again. This is in the case of OpenERP. Your file looks like its part of the standard python library (ast.py file) on your OS. It will depend on the OS how to solve this. Most likely you will see a patch appear in a matter of hours (sometimes days) of the problem.

About This Community

This platform 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.


Odoo Training Center

Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now

Question tools

1 follower(s)


Asked: 4/29/14, 1:11 PM
Seen: 3003 times
Last updated: 3/16/15, 8:10 AM