When running trytond-admin on one of my (archived) test-installations, I get the error show below. Obviously something got mixed up. Anyhow, based on this error message I’m not able to determine what might be the cause. Additionally, it’s an AssertionError, so this might actually be a program error.
Also, when trying to login with the GTK client, I get the error shown secondly below.
Any Ideas how to track this issue down? See below for some other information.
traceback when running trytond-admin:
Traceback (most recent call last):
File "/tmp/demo/_venv/bin/trytond-admin", line 23, in <module>
admin.run(options)
File "/tmp/demo/_venv/lib64/python3.7/site-packages/trytond/admin.py", line 53, in run
activatedeps=options.activatedeps)
File "/tmp/demo/_venv/lib64/python3.7/site-packages/trytond/pool.py", line 152, in init
self.start()
File "/tmp/demo/_venv/lib64/python3.7/site-packages/trytond/pool.py", line 105, in start
register_classes()
File "/tmp/demo/_venv/lib64/python3.7/site-packages/trytond/modules/__init__.py", line 345, in register_classes
the_module.register()
File "/tmp/demo/_venv/lib64/python3.7/site-packages/trytond/modules/account_invoice_stock/__init__.py", line 16, in register
module='account_invoice_stock', type_='model')
File "/tmp/demo/_venv/lib64/python3.7/site-packages/trytond/pool.py", line 89, in register
assert cls not in mpool, cls
AssertionError: <class 'trytond.modules.account_invoice_stock.account.Invoice'>
Error shown in the client:
Traceback (most recent call last):
File "/tmp/demo/_venv/lib64/python3.7/site-packages/tryton/gui/main.py", line 247, in do_activate
common.Login()
File "/tmp/demo/_venv/lib64/python3.7/site-packages/tryton/common/common.py", line 922, in __init__
func(parameters)
File "/tmp/demo/_venv/lib64/python3.7/site-packages/tryton/rpc.py", line 86, in login
result = connection.common.db.login(username, parameters, language)
File "/usr/lib64/python3.7/xmlrpc/client.py", line 1112, in __call__
return self.__send(self.__name, args)
File "/tmp/demo/_venv/lib64/python3.7/site-packages/tryton/jsonrpc.py", line 295, in __request
raise Fault(*response['error'])
tryton.jsonrpc.Fault: <class 'trytond.modules.account_invoice_stock.account.Invoice'>
Fault: <class 'trytond.modules.account_invoice_stock.account.Invoice'>
More information:
- Database was created a few weeks ago using tryton 5.8.x
- Installed versions (trytond modules only):
trytond 5.8.6
trytond-account 5.8.2
trytond-account-de-skr03 5.8.1
trytond-account-invoice 5.8.3
trytond-account-invoice-stock 5.8.1
trytond-account-payment 5.8.2
trytond-account-payment-sepa 5.8.1
trytond-account-product 5.8.1
trytond-bank 5.8.1
trytond-company 5.8.1
trytond-country 5.8.1
trytond-currency 5.8.1
trytond-party 5.8.1
trytond-product 5.8.1
trytond-sale 5.8.2
trytond-sale-subscription 5.8.2
trytond-stock 5.8.3
- By adding or removing some modules, I “managed” to change the class in the error message into “trytond.modules.account_payment.payment.Journal”