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

shadow error openerp

By
Vasanth
on 4/29/14, 2:52 AM 1,380 views

i downloaded and paste the web_printscreen_zb module in addons.but when i run it i got the following error..

2014-04-29 04:47:49,831 3948 WARNING ? openerp.modules.module: Ambiguous import: the OpenERP module web is shadowed by another module (available at /usr/local/lib/python2.7/dist-packages/web.py-0.37-py2.7.egg/web). To import it, use import openerp.addons.<module>.. 2014-04-29 04:47:49,838 3948 CRITICAL ? openerp.modules.module: Couldn't load module web 2014-04-29 04:47:49,838 3948 CRITICAL ? openerp.modules.module: No module named controllers.main 2014-04-29 04:47:49,838 3948 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 416, 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 580, in load_addons m = __import__('openerp.addons.' + module) File "/opt/openerp/server/openerp/modules/module.py", line 134, in load_module mod = imp.load_module('openerp.addons.' + module_part, f, path, descr) File "/opt/openerp/addons/web_printscreen_zb/__init__.py", line 24, in <module> import controllers File "/opt/openerp/addons/web_printscreen_zb/controllers.py", line 28, in <module> from web.controllers.main import ExcelExport ImportError: No module named controllers.main

0

Solanki Shamji

--Solanki Shamji--
1293
| 5 2 6
Baroda, India
--Solanki Shamji--

Hello!

Solanki Shamji
On 7/10/15, 4:21 AM

Hello,

Try to give full path like

from openerp.addons.web.controllers.main import ExcelExport

May be this will help you.

Thanks.

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: 4/29/14, 2:52 AM
Seen: 1380 times
Last updated: 7/10/15, 4:21 AM