RecursionError: maximum recursion depth exceeded in comparison

I updated my database using this

esehat@mail:~/AAL> docker run --link aal-postgres2:postgres -e DB_PASSWORD=mysecretpassword -it aal trytond-admin -d tryton --all -vv

but i am getting the following error

1 139800504944448 [2022-04-14 10:40:23,973] INFO trytond.backend.postgresql.database connection to "tryton" succeeded
1 139800504944448 [2022-04-14 10:40:25,224] WARNING py.warnings /usr/lib/python3/dist-packages/werkzeug/routing.py:1431: DeprecationWarning: invalid escape sequence \s
  """

1 139800504944448 [2022-04-14 10:40:25,310] WARNING py.warnings /usr/lib/python3/dist-packages/passlib/context.py:231: DeprecationWarning: invalid escape sequence \;
  elif any(c in source for c in "\n\r\t") or not source.strip(" \t./\;:"):

1 139800504944448 [2022-04-14 10:40:25,311] WARNING py.warnings /usr/lib/python3/dist-packages/passlib/context.py:2240: DeprecationWarning: invalid escape sequence \*
  """

1 139800504944448 [2022-04-14 10:40:25,311] WARNING py.warnings /usr/lib/python3/dist-packages/passlib/context.py:2323: DeprecationWarning: invalid escape sequence \*
  """

1 139800504944448 [2022-04-14 10:40:25,311] WARNING py.warnings /usr/lib/python3/dist-packages/passlib/context.py:2406: DeprecationWarning: invalid escape sequence \*
  """

Traceback (most recent call last):
  File "/usr/local/bin/trytond-admin", line 23, in <module>
    admin.run(options)
  File "/usr/local/lib/python3.7/dist-packages/trytond/admin.py", line 53, in run
    activatedeps=options.activatedeps)
  File "/usr/local/lib/python3.7/dist-packages/trytond/pool.py", line 152, in init
    self.start()
  File "/usr/local/lib/python3.7/dist-packages/trytond/pool.py", line 105, in start
    register_classes()
  File "/usr/local/lib/python3.7/dist-packages/trytond/modules/__init__.py", line 334, in register_classes
    for node in create_graph(get_module_list()):
  File "/usr/local/lib/python3.7/dist-packages/trytond/modules/__init__.py", line 150, in create_graph
    node = graph.add(module, deps)
  File "/usr/local/lib/python3.7/dist-packages/trytond/modules/__init__.py", line 107, in add
    self.get(dep).append(node)
  File "/usr/local/lib/python3.7/dist-packages/trytond/modules/__init__.py", line 138, in append
    node.depth = self.depth + 1
  File "/usr/local/lib/python3.7/dist-packages/trytond/modules/__init__.py", line 134, in depth
    child.depth = value + 1
  File "/usr/local/lib/python3.7/dist-packages/trytond/modules/__init__.py", line 134, in depth
    child.depth = value + 1
  File "/usr/local/lib/python3.7/dist-packages/trytond/modules/__init__.py", line 134, in depth
    child.depth = value + 1
  [Previous line repeated 988 more times]
  File "/usr/local/lib/python3.7/dist-packages/trytond/modules/__init__.py", line 131, in depth
    if value > self.__depth:
RecursionError: maximum recursion depth exceeded in comparison

can anyone point me out in the right direction what i am doing wrong

Have you some custom modules? It seems there is a loop in the dependencies.

I have came back to the code after long time is there any way I could figure it out ?

You have to analyze of the depends and extras_depend in tryton.cfg of the installed modules.

Thanks it seem I have dependency on the stocks module with my custom module… now i have remove it and its working fine

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.