[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 |
URL:
<https://savannah.gnu.org/bugs/?60978>
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
_______________________________________________________
Details:
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>
admin.run(options)
File "/usr/lib/python3.8/site-packages/trytond/admin.py", line 20, in run
Database = backend.get('Database')
File "/usr/lib/python3.8/site-packages/trytond/backend/__init__.py", line
25, in get
module = importlib.import_module(modname)
File "/usr/lib64/python3.8/importlib/__init__.py", line 127, in
import_module
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
_call_with_frames_removed
File
"/usr/lib/python3.8/site-packages/trytond/backend/postgresql/__init__.py",
line 4, in <module>
from .database import *
File
"/usr/lib/python3.8/site-packages/trytond/backend/postgresql/database.py",
line 38, in <module>
from trytond.protocols.jsonrpc import JSONDecoder
File "/usr/lib/python3.8/site-packages/trytond/protocols/jsonrpc.py", line
12, in <module>
from trytond.protocols.wrappers import Request
File "/usr/lib/python3.8/site-packages/trytond/protocols/wrappers.py", line
11, in <module>
from werkzeug.http import wsgi_to_bytes, bytes_to_wsgi
ImportError: cannot import name 'wsgi_to_bytes' from 'werkzeug.http'
(/usr/lib/python3.8/site-packages/werkzeug/http.py)
This breaks trytond 6.x for GNU Health 4.0 as well!
_______________________________________________________
Reply to this item at:
<https://savannah.gnu.org/bugs/?60978>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/
- [Health-dev] [bug #60978] Server crashes with python-Werkzeug 2.x series,
Axel Braun <=