Odoo Help

0

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

By
NIcolas Plée
on 4/29/14, 1:11 PM 2,431 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.

Thanks

>     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
0

Ludo - Neobis

--Ludo - Neobis--
2407
| 2 2 5
Hoogvliet, Netherlands
--Ludo - Neobis--

Developer

Ludo - Neobis
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.

0
NIcolas Plée
On 5/2/14, 1:03 PM

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

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.

Register

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)

Stats

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