Dashboard crashes when running under Python 3
It's seems that dashboard module isn't yet compatible with Python 3. When I activated dashboard in Tryton running under Python 3 and tried use it I got such a message:
Traceback (most recent call last):
File "/home/wojtek/Venvs/tryton/lib/python2.7/site-packages/tryton/common/common.py", line 1226, in process
self.callback(return_)
File "/home/wojtek/Venvs/tryton/lib/python2.7/site-packages/tryton/gui/main.py", line 819, in _set_preferences
Action.execute(action_id, {})
File "/home/wojtek/Venvs/tryton/lib/python2.7/site-packages/tryton/action/main.py", line 66, in execute
Action._exec_action(action, data, context=context)
File "/home/wojtek/Venvs/tryton/lib/python2.7/site-packages/tryton/action/main.py", line 141, in _exec_action
context_model=action['context_model'])
File "/home/wojtek/Venvs/tryton/lib/python2.7/site-packages/tryton/gui/window/window.py", line 38, in create
context=context, name=name)
File "/home/wojtek/Venvs/tryton/lib/python2.7/site-packages/tryton/gui/window/board.py", line 49, in __init__
self.board = ViewBoard(view['arch'], context=context)
File "/home/wojtek/Venvs/tryton/lib/python2.7/site-packages/tryton/gui/window/view_board/view_board.py", line 21, in __init__
xml_dom = xml.dom.minidom.parseString(arch)
File "/usr/lib64/python2.7/xml/dom/minidom.py", line 1928, in parseString
return expatbuilder.parseString(string)
File "/usr/lib64/python2.7/xml/dom/expatbuilder.py", line 940, in parseString
return builder.parseString(string)
File "/usr/lib64/python2.7/xml/dom/expatbuilder.py", line 223, in parseString
parser.Parse(string, True)
TypeError: Parse() argument 1 must be string or read-only buffer, not bytearray
Under Python 2.7 is everything OK.