Control: reassign -1 src:flask-login
Am Sun, Sep 25, 2022 at 10:12:28PM +0200 schrieb Thomas Goirand:
> Hi,
>
> I'm planning to upload python-werkzeug 2.2.2 to Unstable, though your package
> has autopkgtest regressions with this version. Please fix this asap.
The root for the failing autopkgtest isn't a problem inside sentry-python, the
issue is happen due an outdated package of flask-login. BTW, a snippet of the
error message in the report would have been nice. :-)
But o.k., here we go.
==================================== ERRORS ====================================
_ ERROR collecting
.pybuild/cpython3_3.10_sentry_sdk/build/tests/integrations/flask/test_flask.py _
ImportError while importing test module
'/build/sentry-python-1.9.9/.pybuild/cpython3_3.10_sentry_sdk/build/tests/integrations/flask/test_flask.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
/usr/lib/python3.10/importlib/__init__.py:126: in import_module
return _bootstrap._gcd_import(name[level:], package, level)
tests/integrations/flask/test_flask.py:19: in <module>
from flask_login import LoginManager, login_user
/usr/lib/python3/dist-packages/flask_login/__init__.py:16: in <module>
from .login_manager import LoginManager
/usr/lib/python3/dist-packages/flask_login/login_manager.py:24: in <module>
from .utils import (login_url as make_login_url, _create_identifier,
/usr/lib/python3/dist-packages/flask_login/utils.py:13: in <module> <--------
from werkzeug.security import safe_str_cmp
E ImportError: cannot import name 'safe_str_cmp' from 'werkzeug.security'
(/usr/lib/python3/dist-packages/werkzeug/security.py)
=============================== warnings summary ===============================
The most recent version of flask-login has included this fix for the underlying
code change in werkzeug >= 2.2.
https://github.com/maxcountryman/flask-login/pull/585/files
https://github.com/maxcountryman/flask-login/blob/main/CHANGES.md#version-062
Reassigning to to flask-login.
Regards
Carsten