[Bug 2048769] Re: Adopt to new python-werkzeug 3.0 API
Andreas Hasenack
2048769 at bugs.launchpad.net
Fri Jan 19 20:55:07 UTC 2024
** Merge proposal linked:
https://code.launchpad.net/~pushkarnk/ubuntu/+source/lektor/+git/lektor/+merge/458931
--
You received this bug notification because you are a member of Ubuntu
Sponsors, which is subscribed to the bug report.
https://bugs.launchpad.net/bugs/2048769
Title:
Adopt to new python-werkzeug 3.0 API
Status in flask-dance package in Ubuntu:
Fix Released
Status in flask-login package in Ubuntu:
Fix Released
Status in lektor package in Ubuntu:
In Progress
Status in onionshare package in Ubuntu:
In Progress
Status in python-werkzeug package in Ubuntu:
New
Bug description:
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)
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/flask-dance/+bug/2048769/+subscriptions
More information about the Ubuntu-sponsors
mailing list