Mysql backend error on Tryton 4.0
When I want to create a new database with trytond 4.0 and mysql backend,
trytond-admin -c trytond_mysql.conf -v --dev -d test_mysql --all
I have this error:
File "/home/perilla/trytond_40/trytond/trytond/admin.py", line 38, in run
with Transaction().start(db_name, 0) as transaction,\
AttributeError: __exit__
Searching help on mysql forum find this:
https://bugs.mysql.com/bug.php?id=71663
looks like the Connection class does not implement __enter__/__exit__ methods, so Connections can't be used in a 'with' statement.