[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Health-dev] [bug #60978] Server crashes with python-Werkzeug 2.x series

From: Axel Braun
Subject: [Health-dev] [bug #60978] Server crashes with python-Werkzeug 2.x series
Date: Tue, 27 Jul 2021 02:38:25 -0400 (EDT)
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:90.0) Gecko/20100101 Firefox/90.0


                 Summary: Server crashes with python-Werkzeug 2.x series
                 Project: GNU Health
            Submitted by: coogor
            Submitted on: Tue 27 Jul 2021 06:38:23 AM UTC
                Category: Tryton
                Severity: 4 - Important
              Item Group: None
                  Status: None
                 Privacy: Public
             Assigned to: None
             Open/Closed: Open
                 Release: None
         Discussion Lock: Any
                  Module: trytond



Looks like there is an API change in python-Werkzeug 2.x:

Initializing database - this may take a while
Traceback (most recent call last):
  File "/usr/bin/trytond-admin", line 21, in <module>
  File "/usr/lib/python3.8/site-packages/trytond/", line 20, in run
    Database = backend.get('Database')
  File "/usr/lib/python3.8/site-packages/trytond/backend/", line
25, in get
    module = importlib.import_module(modname)
  File "/usr/lib64/python3.8/importlib/", line 127, in
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 1014, in _gcd_import
  File "<frozen importlib._bootstrap>", line 991, in _find_and_load
  File "<frozen importlib._bootstrap>", line 975, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 671, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 848, in exec_module
  File "<frozen importlib._bootstrap>", line 219, in
line 4, in <module>
    from .database import *
line 38, in <module>
    from trytond.protocols.jsonrpc import JSONDecoder
  File "/usr/lib/python3.8/site-packages/trytond/protocols/", line
12, in <module>
    from trytond.protocols.wrappers import Request
  File "/usr/lib/python3.8/site-packages/trytond/protocols/", line
11, in <module>
    from werkzeug.http import wsgi_to_bytes, bytes_to_wsgi
ImportError: cannot import name 'wsgi_to_bytes' from 'werkzeug.http'

This breaks trytond 6.x for GNU Health 4.0 as well!


Reply to this item at:


  Message sent via Savannah

reply via email to

[Prev in Thread] Current Thread [Next in Thread]