Install tryton 5 from sources

Hello, i install tryton from sources from https://github.com/tryton
I use branch 5.0
Download all modules from repo in branch 5.0 (by modules.txt)
Prepare new enviroment. (psycopg2 and trytond)
Create clear database.
When run trytond-admin i have this error:

 (tryton) mazinger:~/tryton/trytond$ ./bin/trytond-admin -c /home/test/tryton/trytond/trytond.conf -d trytondb --all -v
    Traceback (most recent call last):
      File "./bin/trytond-admin", line 21, in <module>
        admin.run(options)
      File "/home/test/tryton/trytond/trytond/admin.py", line 53, in run
        activatedeps=options.activatedeps)
      File "/home/test/tryton/trytond/trytond/pool.py", line 149, in init
        self.start()
      File "/home/test/tryton/trytond/trytond/pool.py", line 102, in start
        register_classes()
      File "/home/test/tryton/trytond/trytond/modules/__init__.py", line 336, in register_classes
        the_module = import_module(module)
      File "/home/test/tryton/trytond/trytond/modules/__init__.py", line 54, in import_module
        module = importlib.import_module(fullname)
      File "/home/test/tryton/tryton/lib/python3.7/importlib/__init__.py", line 127, in import_module
        return _bootstrap._gcd_import(name[level:], package, level)
      File "<frozen importlib._bootstrap>", line 1006, in _gcd_import
      File "<frozen importlib._bootstrap>", line 983, in _find_and_load
      File "<frozen importlib._bootstrap>", line 967, in _find_and_load_unlocked
      File "<frozen importlib._bootstrap>", line 677, in _load_unlocked
      File "<frozen importlib._bootstrap_external>", line 728, in exec_module
      File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
      File "/home/test/tryton/trytond/trytond/modules/currency/__init__.py", line 5, in <module>
        from .currency import *
      File "/home/test/tryton/trytond/trytond/modules/currency/currency.py", line 12, in <module>
        from trytond.tools import datetime_strftime
    ImportError: cannot import name 'datetime_strftime' from 'trytond.tools' (/home/test/tryton/trytond/trytond/tools/__init__.py)
    (tryton) mazinger:~/tryton/trytond$ 

Thanks any help.

It seems you are mixing versions from trytond and modules. The currency module is using the datetime_strftime which was removed on 5.2 series. So probably you are not using the 5.0 branch

When running from sources the server and the modules should use the same branch.

Yes, You’re right.
I change all to branch 5.2 (trytond and modules) and install with pip3 many dependencies.
I use python 3.7.6

$ ./bin/trytond-admin -c /home/cgnunez/tryton/trytond/trytond.conf -d trytondb --all -v
Traceback (most recent call last):
  File "./bin/trytond-admin", line 21, in <module>
    admin.run(options)
  File "/home/cgnunez/tryton/trytond/trytond/admin.py", line 53, in run
    activatedeps=options.activatedeps)
  File "/home/cgnunez/tryton/trytond/trytond/pool.py", line 149, in init
    self.start()
  File "/home/cgnunez/tryton/trytond/trytond/pool.py", line 102, in start
    register_classes()
  File "/home/cgnunez/tryton/trytond/trytond/modules/__init__.py", line 336, in register_classes
    the_module = import_module(module)
  File "/home/cgnunez/tryton/trytond/trytond/modules/__init__.py", line 54, in import_module
    module = importlib.import_module(fullname)
  File "/home/cgnunez/tryton/tryton/lib/python3.7/importlib/__init__.py", line 127, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 1006, in _gcd_import
  File "<frozen importlib._bootstrap>", line 983, in _find_and_load
  File "<frozen importlib._bootstrap>", line 967, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 677, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 728, in exec_module
  File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
  File "/home/cgnunez/tryton/trytond/trytond/modules/account_statement_coda/__init__.py", line 5, in <module>
    from . import account
  File "/home/cgnunez/tryton/trytond/trytond/modules/account_statement_coda/account.py", line 5, in <module>
    from coda import CODA
ImportError: cannot import name 'CODA' from 'coda' (/home/cgnunez/tryton/tryton/lib/python3.7/site-packages/coda/__init__.py)

Thanks
PD: Is there any guide, to install from the sources?

You are now missing the CODA library for parsing CODA statements. Indeed we have a mercurial hook to generate a requirements.txt in order to install all the required dependencies. Once you’ve run this script you can install them with pip.