Hello,
I have some trouble installing modules for my gnuhealth installation.
Specifically, I want to install the trytond-ldap-authentication
module for my gnuhealth 3.8 server.
Unfortunately I can not find any hints if this requires a specific procedure.
What I did was:
pip3 install trytond-ldap-authentication
Afterwords I took a look into the gui client and tried to activate the ldap module, but it was not listed there.
Afterwards I tried using the trytond-admin
cli, but all commands fail with the following error:
gnuhealth@linux:~/gnuhealth/tryton/server/trytond-5.0.34/bin $ ./trytond-admin -m -d=health --config /home/gnuhealth/gnuhealth/tryton/server/config/trytond.conf
Traceback (most recent call last):
File "/home/gnuhealth/gnuhealth/tryton/server/trytond-5.0.34/trytond/modules/__init__.py", line 53, in import_module
module = importlib.import_module(fullname)
File "/usr/lib/python3.6/importlib/__init__.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "<frozen importlib._bootstrap>", line 994, in _gcd_import
File "<frozen importlib._bootstrap>", line 971, in _find_and_load
File "<frozen importlib._bootstrap>", line 953, in _find_and_load_unlocked
ModuleNotFoundError: No module named 'trytond.modules.ldap_authentication'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "./trytond-admin", line 21, in <module>
admin.run(options)
File "/home/gnuhealth/gnuhealth/tryton/server/trytond-5.0.34/trytond/admin.py", line 54, in run
activatedeps=options.activatedeps)
File "/home/gnuhealth/gnuhealth/tryton/server/trytond-5.0.34/trytond/pool.py", line 149, in init
self.start()
File "/home/gnuhealth/gnuhealth/tryton/server/trytond-5.0.34/trytond/pool.py", line 102, in start
register_classes()
File "/home/gnuhealth/gnuhealth/tryton/server/trytond-5.0.34/trytond/modules/__init__.py", line 331, in register_classes
the_module = import_module(module)
File "/home/gnuhealth/gnuhealth/tryton/server/trytond-5.0.34/trytond/modules/__init__.py", line 77, in import_module
module = spec.loader.load_module()
File "<frozen importlib._bootstrap_external>", line 399, in _check_name_wrapper
File "<frozen importlib._bootstrap_external>", line 823, in load_module
File "<frozen importlib._bootstrap_external>", line 682, in load_module
File "<frozen importlib._bootstrap>", line 265, in _load_module_shim
File "<frozen importlib._bootstrap>", line 684, in _load
File "<frozen importlib._bootstrap>", line 665, in _load_unlocked
File "<frozen importlib._bootstrap_external>", line 678, in exec_module
File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
File "/home/gnuhealth/.local/lib/python3.6/site-packages/trytond/modules/ldap_authentication/__init__.py", line 5, in <module>
from . import res
File "/home/gnuhealth/.local/lib/python3.6/site-packages/trytond/modules/ldap_authentication/res.py", line 9, in <module>
from trytond.i18n import gettext
ModuleNotFoundError: No module named 'trytond.i18n'
I can not figure out why this fails, so if somone has an idea I’d be very happy for any hints.
Kind regards
Andreas