[5.0.14] safe_eval() incompatible with python2.7's bytecode
Bug #644267 reported by
Mariusz Mazur
This bug affects 7 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Odoo Server (MOVED TO GITHUB) |
Fix Released
|
Medium
|
OpenERP Publisher's Warranty Team |
Bug Description
openerp-server 5.0.14 when run on python 2.7 is basically useless (when using addons), due to the changes in low-level python 2.7 opcodes. The safe_eval() function in bin/tools/
Changed in openobject-server: | |
importance: | Undecided → Medium |
Changed in openobject-server: | |
status: | Confirmed → In Progress |
Changed in openobject-server: | |
assignee: | Jay Vora (OpenERP) (jvo-openerp) → OpenERP Publisher's Warranty Team (openerp-opw) |
To post a comment you must log in.
This is not the only problem with that new safe_eval function.
If you use "filter" in a .rml file to produce a report, like for example:
[[ repeatIn( filter( lambda a: not a.is_phantom, o.order_line) , 'line') ]]
you have the following error: weyl/openerp- server- 5.0.14/ bin/tools/ safe_eval. py", line 272, in safe_eval expr(expr, _SAFE_OPCODES, mode=mode), globals_dict, locals_dict)
File "/home/
return eval(test_
File "", line 1, in <module>
NameError: name 'filter' is not defined