[Bug 2048769] [NEW] Adopt to new python-werkzeug 3.0 API
Launchpad Bug Tracker
2048769 at bugs.launchpad.net
Thu Jan 18 16:00:02 UTC 2024
You have been subscribed to a public bug by Pushkar Kulkarni (pushkarnk):
Python-werkzeug 3.0 was syncronized from Debian experimental.
The 3.x track is not API compatible with the 2.x track:
https://werkzeug.palletsprojects.com/en/3.0.x/urls/
https://werkzeug.palletsprojects.com/en/2.3.x/urls/
Especially the werkzeug.urls.url_decode method is gone, which leads to
import failures like this:
==================================== ERRORS ====================================
_____________ ERROR collecting tests/consumer/storage/test_sqla.py _____________
ImportError while importing test module '/<<PKGBUILDDIR>>/tests/consumer/storage/test_sqla.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
/usr/lib/python3.11/importlib/__init__.py:126: in import_module
return _bootstrap._gcd_import(name[level:], package, level)
tests/consumer/storage/test_sqla.py:10: in <module>
from flask_login import (
/usr/lib/python3/dist-packages/flask_login/__init__.py:12: in <module>
from .login_manager import LoginManager
/usr/lib/python3/dist-packages/flask_login/login_manager.py:33: in <module>
from .utils import _create_identifier
/usr/lib/python3/dist-packages/flask_login/utils.py:14: in <module>
from werkzeug.urls import url_decode
E ImportError: cannot import name 'url_decode' from 'werkzeug.urls' (/usr/lib/python3/dist-packages/werkzeug/urls.py)
** Affects: flask-dance (Ubuntu)
Importance: Undecided
Assignee: Lukas Märdian (slyon)
Status: Fix Released
** Affects: flask-login (Ubuntu)
Importance: Undecided
Assignee: Lukas Märdian (slyon)
Status: Fix Released
** Affects: lektor (Ubuntu)
Importance: Undecided
Assignee: Pushkar Kulkarni (pushkarnk)
Status: In Progress
** Affects: onionshare (Ubuntu)
Importance: Undecided
Assignee: Pushkar Kulkarni (pushkarnk)
Status: In Progress
** Affects: python-werkzeug (Ubuntu)
Importance: Undecided
Status: New
** Tags: update-excuse
--
Adopt to new python-werkzeug 3.0 API
https://bugs.launchpad.net/bugs/2048769
You received this bug notification because you are a member of Ubuntu Sponsors, which is subscribed to the bug report.
More information about the Ubuntu-sponsors
mailing list