Odoo Help

0

how to trace an error ?

By
Rachid
on 8/7/14, 6:10 AM 917 views

I get this error when I start my server

2014-08-07 10:02:40,517 18255 ERROR ? werkzeug: Error on request:

Traceback (most recent call last):

  File "/usr/share/pyshared/werkzeug/serving.py", line 159, in run_wsgi

    execute(app)

  File "/usr/share/pyshared/werkzeug/serving.py", line 146, in execute

    application_iter = app(environ, start_response)

  File "/home/user/odoo/openerp/service/server.py", line 273, in app

    return self.app(e, s)

  File "/home/user/odoo/openerp/service/wsgi_server.py", line 215, in application

    return application_unproxied(environ, start_response)

  File "/home/user/odoo/openerp/service/wsgi_server.py", line 201, in application_unproxied

    result = handler(environ, start_response)

  File "/home/user/odoo/openerp/http.py", line 1096, in __call__

    self.load_addons()

  File "/home/user/odoo/openerp/http.py", line 1115, in load_addons

    m = __import__('openerp.addons.' + module)

  File "/home/user/odoo/openerp/modules/module.py", line 72, in load_module

    mod = imp.load_module('openerp.addons.' + module_part, f, path, descr)

  File "/home/user/odoo/openerp/addons/report/__init__.py", line 2, in <module>

    import models

  File "/home/user/odoo/openerp/addons/report/models/__init__.py", line 1, in <module>

    import report

  File "/home/user/odoo/openerp/addons/report/models/report.py", line 59, in <module>

    version = out.splitlines()[1].strip()

IndexError: list index out of range

 

how can I fix it ?

1
Rajiv
On 11/3/14, 3:09 AM

Hi

I ran into the same issue when try to upgrade the wkhtmltopdf. I trace the error occured in the Report module. I just solved by using the following:

   1) open the file "/home/user/odoo/openerp/addons/report/models/report.py

   2) Edit inthe line 59

'version = out.splitlines()[1].strip()'

as

'version = out.splitlines()[0].strip()'

Changing the index 1 to 0. ('wkhtmltopdf 1.20.1','')

I hope there are many ways also. Best thing is to upgrade the report module or use the latest Odoo V8 Distribution from the bazaar.

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: 8/7/14, 6:10 AM
Seen: 917 times
Last updated: 3/16/15, 8:10 AM