Hi,
I trying to finishing developing the association module, but i stumble this roadblock.
Context
tryton==5.2.2
trytond==5.2.2
trytond-account==5.2.2
trytond-association==5.2.0
trytond-company==5.2.0
trytond-country==5.2.0
trytond-currency==5.2.0
trytond-party==5.2.0
Werkzeug==0.15.4
databse: sqlite (setup with trytond-admin --all
and trytond-admin -u association --activate-dependencies
)
When trying to connect to my sqlite db (and before i can input the password)with the admin user i get this error:
Tryton client:
ERROR:tryton.common.common:Traceback (most recent call last):
File "/home/wifasoi/.local/lib/python3.7/site-packages/tryton/gui/main.py", line 279, in do_activate
common.Login()
File "/home/wifasoi/.local/lib/python3.7/site-packages/tryton/common/common.py", line 899, in __init__
func(parameters)
File "/home/wifasoi/.local/lib/python3.7/site-packages/tryton/rpc.py", line 87, in login
result = connection.common.db.login(username, parameters, language)
File "/usr/lib/python3.7/xmlrpc/client.py", line 1112, in __call__
return self.__send(self.__name, args)
File "/home/wifasoi/.local/lib/python3.7/site-packages/tryton/jsonrpc.py", line 306, in __request
raise Fault(*response['error'])
tryton.jsonrpc.Fault
Fault:
Server logs (-vvvv):
8357 140350123853440 [2019-07-13 22:15:45,900] DEBUG passlib.utils.compat loaded lazy attr 'SafeConfigParser': <class 'configparser.ConfigParser'>
8357 140350123853440 [2019-07-13 22:15:45,900] DEBUG passlib.utils.compat loaded lazy attr 'NativeStringIO': <class '_io.StringIO'>
8357 140350123853440 [2019-07-13 22:15:45,900] DEBUG passlib.utils.compat loaded lazy attr 'BytesIO': <class '_io.BytesIO'>
8357 140350123853440 [2019-07-13 22:15:45,904] DEBUG passlib.registry registered 'pbkdf2_sha512' handler: <class 'passlib.handlers.pbkdf2.pbkdf2_sha512'>
8357 140350123853440 [2019-07-13 22:15:45,934] INFO trytond.modules ir:registering classes
8357 140350123853440 [2019-07-13 22:15:45,934] INFO trytond.modules res:registering classes
8357 140350123853440 [2019-07-13 22:15:45,934] INFO trytond.modules country:registering classes
8357 140350123853440 [2019-07-13 22:15:45,935] INFO trytond.modules currency:registering classes
8357 140350123853440 [2019-07-13 22:15:45,936] INFO trytond.modules tests:registering classes
8357 140350123853440 [2019-07-13 22:15:45,936] INFO trytond.modules party:registering classes
8357 140350123853440 [2019-07-13 22:15:45,941] INFO trytond.modules company:registering classes
8357 140350123853440 [2019-07-13 22:15:45,943] INFO trytond.modules account:registering classes
8357 140350123853440 [2019-07-13 22:15:45,960] INFO trytond.modules association:registering classes
8357 140350123853440 [2019-07-13 22:15:45,971] INFO werkzeug * Running on http://localhost:8000/ (Press CTRL+C to quit)
8357 140350123853440 [2019-07-13 22:15:45,973] INFO werkzeug * Restarting with stat
8361 140612299183744 [2019-07-13 22:15:46,240] DEBUG passlib.utils.compat loaded lazy attr 'SafeConfigParser': <class 'configparser.ConfigParser'>
8361 140612299183744 [2019-07-13 22:15:46,240] DEBUG passlib.utils.compat loaded lazy attr 'NativeStringIO': <class '_io.StringIO'>
8361 140612299183744 [2019-07-13 22:15:46,240] DEBUG passlib.utils.compat loaded lazy attr 'BytesIO': <class '_io.BytesIO'>
8361 140612299183744 [2019-07-13 22:15:46,244] DEBUG passlib.registry registered 'pbkdf2_sha512' handler: <class 'passlib.handlers.pbkdf2.pbkdf2_sha512'>
8361 140612299183744 [2019-07-13 22:15:46,278] INFO trytond.modules ir:registering classes
8361 140612299183744 [2019-07-13 22:15:46,278] INFO trytond.modules res:registering classes
8361 140612299183744 [2019-07-13 22:15:46,278] INFO trytond.modules country:registering classes
8361 140612299183744 [2019-07-13 22:15:46,279] INFO trytond.modules currency:registering classes
8361 140612299183744 [2019-07-13 22:15:46,280] INFO trytond.modules tests:registering classes
8361 140612299183744 [2019-07-13 22:15:46,280] INFO trytond.modules party:registering classes
8361 140612299183744 [2019-07-13 22:15:46,287] INFO trytond.modules company:registering classes
8361 140612299183744 [2019-07-13 22:15:46,290] INFO trytond.modules account:registering classes
8361 140612299183744 [2019-07-13 22:15:46,306] INFO trytond.modules association:registering classes
8361 140612240463616 [2019-07-13 22:15:49,841] INFO werkzeug 127.0.0.1 - - [13/Jul/2019 22:15:49] "POST / HTTP/1.1" 200 -
8361 140612240463616 [2019-07-13 22:15:50,194] DEBUG trytond.backend.sqlite.database PRAGMA foreign_keys = ON
8361 140612240463616 [2019-07-13 22:15:50,194] DEBUG trytond.backend.sqlite.database PRAGMA foreign_keys = ON
8361 140612240463616 [2019-07-13 22:15:50,194] INFO trytond.pool init pool for "test2"
8361 140612240463616 [2019-07-13 22:15:50,195] DEBUG trytond.backend.sqlite.database PRAGMA foreign_keys = ON
8361 140612240463616 [2019-07-13 22:15:50,196] DEBUG trytond.backend.sqlite.database SELECT sql FROM sqlite_master WHERE type = 'table' AND name = 'ir_module_module'
8361 140612240463616 [2019-07-13 22:15:50,196] DEBUG trytond.backend.sqlite.database SELECT "a"."name" FROM "ir_module" AS "a" WHERE ("a"."state" IN ('installed', 'uninstalled'))
8361 140612240463616 [2019-07-13 22:15:50,196] DEBUG trytond.backend.sqlite.database SELECT "a"."name" FROM "ir_module" AS "a" WHERE ("a"."state" IN ('activated', 'to upgrade', 'to remove'))
8361 140612240463616 [2019-07-13 22:15:50,199] DEBUG trytond.backend.sqlite.database SELECT "a"."code", "a"."parent" FROM "ir_lang" AS "a"
8361 140612240463616 [2019-07-13 22:15:50,199] DEBUG trytond.backend.sqlite.database SELECT "a"."name", "a"."state" FROM "ir_module" AS "a" WHERE ("a"."name" IN ('ir', 'res', 'country', 'currency', 'party', 'company', 'account', 'association'))
8361 140612240463616 [2019-07-13 22:15:50,199] INFO trytond.modules ir
8361 140612240463616 [2019-07-13 22:15:50,200] INFO trytond.modules res
8361 140612240463616 [2019-07-13 22:15:50,200] INFO trytond.modules country
8361 140612240463616 [2019-07-13 22:15:50,200] INFO trytond.modules currency
8361 140612240463616 [2019-07-13 22:15:50,200] INFO trytond.modules party
8361 140612240463616 [2019-07-13 22:15:50,200] INFO trytond.modules company
8361 140612240463616 [2019-07-13 22:15:50,200] INFO trytond.modules account
8361 140612240463616 [2019-07-13 22:15:50,201] INFO trytond.modules association
8361 140612240463616 [2019-07-13 22:15:50,201] INFO trytond.pool setup pool for "test2"
8361 140612240463616 [2019-07-13 22:15:50,393] INFO werkzeug 127.0.0.1 - - [13/Jul/2019 22:15:50] "POST /test2/ HTTP/1.1" 200 -
Notes
The unit test will run just fine, but when the client is involved, it crashes with this error (and I’m clueless to what line of code/xml can be the culprit)
This error presents itself only when I install my module (so I fucked up in some way), but I’m clueless what is causing it (the stack trace is not helpful).
Before the 5.2.2 release the client was happy (5.2.0), now every version of my code it will crash.
sources: https://codereview.tryton.org/277491002/
If you know what are the possible causes of this error please tell me, so I’ll be able to pinpoint the issue.
Thanks in advance.