Sorry for the following being so lengthy but finally was able to get back working at Tryton server.
I used pip3 to install v6.8.6 of the Tryton server as well as psycopg2 to interface with the Postgres database with “apt -y install python3-psycopg2”. I then installed all the modules with “apt-get install -y tryton-modules-all”.
I added the Postgresql role & database with “CREATE USER tryton WITH SUPERUSER PASSWORD ‘tryton’;”
“CREATE DATABASE tryton OWNER tryton TEMPLATE=template0 ENCODING=‘utf-8’ LC_COLLATE=‘en_US.UTF-8’ LC_CTYPE=‘en_US.UTF-8’;” Initializing the database with “trytond-admin -c /etc/tryton/trytond.conf -d tryton --all” however did not produce any results, no tables were created & I was not presented with a prompt for username & password.
As a result, when starting the Tryton server with “trytond -c /etc/tryton/trytond.conf -d tryton”, exceptions occur which follow:
Traceback (most recent call last):
File "/usr/local/lib/python3.10/dist-packages/trytond/modules/__init__.py", line 52, in import_module
module = importlib.import_module(fullname)
File "/usr/lib/python3.10/importlib/__init__.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "<frozen importlib._bootstrap>", line 1050, in _gcd_import
File "<frozen importlib._bootstrap>", line 1027, in _find_and_load
File "<frozen importlib._bootstrap>", line 1004, in _find_and_load_unlocked
ModuleNotFoundError: No module named 'trytond.modules.authentication_sms'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/local/bin/trytond", line 42, in <module>
Pool.start()
File "/usr/local/lib/python3.10/dist-packages/trytond/pool.py", line 108, in start
register_classes(with_test=cls.test)
File "/usr/local/lib/python3.10/dist-packages/trytond/modules/__init__.py", line 365, in register_classes
the_module = import_module(module)
File "/usr/local/lib/python3.10/dist-packages/trytond/modules/__init__.py", line 76, in import_module
module = spec.loader.load_module()
File "<frozen importlib._bootstrap_external>", line 548, in _check_name_wrapper
File "<frozen importlib._bootstrap_external>", line 1063, in load_module
File "<frozen importlib._bootstrap_external>", line 888, in load_module
File "<frozen importlib._bootstrap>", line 290, in _load_module_shim
File "<frozen importlib._bootstrap>", line 719, in _load
File "<frozen importlib._bootstrap>", line 688, in _load_unlocked
File "<frozen importlib._bootstrap_external>", line 883, in exec_module
File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
File "/usr/lib/python3/dist-packages/trytond/modules/authentication_sms/__init__.py", line 5, in <module>
from . import res
File "/usr/lib/python3/dist-packages/trytond/modules/authentication_sms/res.py", line 54, in <module>
class UserLoginSMSCode(ModelSQL):
File "/usr/lib/python3/dist-packages/trytond/modules/authentication_sms/res.py", line 62, in UserLoginSMSCode
user_id = fields.Integer('User ID', select=True)
TypeError: Field.__init__() got an unexpected keyword argument 'select'
Are there supposed to be environment variables set? What else could I possibly being doing wrong?