I have a freshly installed openSUSE leap 15.01 installation.
The distribution contained triton 4.6 which installed cleanly and ran (server & client)
On 09/02/19 I uninstalled those packages and with pip installed the current release.
trytond would not start. After a little investigation I made a change to the code and now the server is running.
I have looked into bug report area and have decided I am not yet qualified to be in that arena, but I do want to bring this to the attention of the appropriate party if this change needs to be noted and propagated.
This is the log file errors on startup:
Sep 06 07:27:54 bills-big-lt-02.test.lcl trytond[20090]: File “”, line 219, in _call_with_frames_removed
Sep 06 07:27:54 bills-big-lt-02.test.lcl trytond[20090]: File “/usr/lib/python3.6/site-packages/trytond/modules/party/init.py”, line 6, in
Sep 06 07:27:54 bills-big-lt-02.test.lcl trytond[20090]: from . import party <=========================================================
Sep 06 07:27:54 bills-big-lt-02.test.lcl trytond[20090]: File “/usr/lib/python3.6/site-packages/trytond/modules/party/party.py”, line 3, in
Sep 06 07:27:54 bills-big-lt-02.test.lcl trytond[20090]: from stdnum import get_cc_module <============================================
Sep 06 07:27:54 bills-big-lt-02.test.lcl trytond[20090]: ImportError: cannot import name ‘get_cc_module’
This is the first 7 lines of party.py before and after my change from my notes
Here is a section of the file before I edit it:
1 # This file is part of Tryton. The COPYRIGHT file at the top level of
2 # this repository contains the full copyright notices and license terms.
3 from stdnum import get_cc_module
4 import stdnum.exceptions
5 from sql import Null, Column, Literal
6 from sql.functions import CharLength, Substring, Position
7
And this is the file after I edit it. The line I changed is indicated.
1 # This file is part of Tryton. The COPYRIGHT file at the top level of
2 # this repository contains the full copyright notices and license terms.
3 from stdnum.util import get_cc_module <==================================
4 import stdnum.exceptions
5 from sql import Null, Column, Literal
6 from sql.functions import CharLength, Substring, Position
7
With this change and a reboot, trytond is now running.
Please pass this along if you think it useful.