Error When Printing Report

Asked by voathnak

Hello I got this error when am trying to print the report:

Traceback (most recent call last):
  File "D:\Users\vlim\workspace\openerp-7.0\openerp\tools\safe_eval.py", line 241, in safe_eval
    return eval(test_expr(expr, _SAFE_OPCODES, mode=mode), globals_dict, locals_dict)
  File "", line 1, in <module>
NameError: name 'line' is not defined
2013-09-11 02:39:02,013 5468 ERROR New openerp.addons.web.http.HttpRequest.dispatch: An error occurred while handling a json request
Traceback (most recent call last):
  File "D:\Users\vlim\workspace\openerp-7.0\openerp\addons\web\http.py", line 276, in dispatch
    r = method(self, **self.params)
  File "D:\Users\vlim\workspace\openerp-7.0\openerp\addons\web\controllers\main.py", line 1707, in index
    cookies={'fileToken': int(token)})
  File "D:\Users\vlim\workspace\openerp-7.0\openerp\addons\web\http.py", line 323, in make_response
    response.set_cookie(k, v)
  File "C:\Python27\lib\site-packages\werkzeug-0.9.1-py2.7.egg\werkzeug\wrappers.py", line 960, in set_cookie
    self.charset))
  File "C:\Python27\lib\site-packages\werkzeug-0.9.1-py2.7.egg\werkzeug\http.py", line 905, in dump_cookie
    value = to_bytes(value, charset)
  File "C:\Python27\lib\site-packages\werkzeug-0.9.1-py2.7.egg\werkzeug\_compat.py", line 106, in to_bytes
    raise TypeError('Expected bytes')
TypeError: Expected bytes
2013-09-11 02:39:02,155 5468 INFO New werkzeug: 127.0.0.1 - - [11/Sep/2013 02:39:02] "POST /web/report HTTP/1.1" 500 -

Question information

Language:
English Edit question
Status:
Answered
For:
Odoo Web (MOVED TO GITHUB) Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Cristian Salamea (ovnicraft) said :
#1

Can you update your version from web, this happens with werkzeug version, openerp works with 0.8.3 maybe you got installed 0.9.4 or 1.0

Regards

Revision history for this message
voathnak (voathnak-lim) said :
#2

I got Werkzeug-0.9.1 installed in python2.7.5 on window and I run opnERP from source.

Revision history for this message
Stefan Rijnhart (Opener) (stefan-opener) said :
#3

I think it is this bug:

    https://bugs.launchpad.net/openerp-web/+bug/1193563

If you run OpenERP 7.0, update your web code. If you run OpenERP 6.1, file an OPW if you have a support contract, or switch to OCB-branches as the bug is fixed in those.

Can you help with this problem?

Provide an answer of your own, or ask voathnak for more information if necessary.

To post a message you must log in.