[Bug 2052771] [NEW] python-oauth2client FTBFS against flask 3

Launchpad Bug Tracker 2052771 at bugs.launchpad.net
Fri Feb 16 11:10:02 UTC 2024


You have been subscribed to a public bug by Olivier Gayot (ogayot):

python-oauth2client is not supported upstream anymore and started to
FTBFS (and to fail autopkgtest) against flask 3.0.0 (currently in noble-
proposed):

E   ImportError: cannot import name '_app_ctx_stack' from 'flask'
(/usr/lib/python3/dist-packages/flask/__init__.py)

Accessing _app_ctx_stack was deprecated in flask 2.3 and finally got removed in flask 3.0.0:
https://github.com/pallets/flask/pull/5223

oauth2client is no longer maintained upstream, but still has the
following reverse dependencies:

Reverse-Suggests
================
* fence-agents-gce              (for python3-oauth2client)
* python3-cinder                (for python3-oauth2client)

Reverse-Depends
===============
* gcalcli                       (for python3-oauth2client)
* goobook                       (for python3-oauth2client)
* python3-certbot-dns-google    (for python3-oauth2client)
* python3-googleapi             (for python3-oauth2client)
* python3-pydrive               (for python3-oauth2client)
* python3-pydrive2              (for python3-oauth2client)
* shoogle                       (for python3-oauth2client)

===> Testing with python3.11 (python3)
+ DJANGO_SETTINGS_MODULE=tests.contrib.django_util.settings PYTHONPATH=/<<PKGBUILDDIR>>/debian/tmp/usr/lib/python3/dist-packages python3.11 -m pytest -v tests --ignore=tests/contrib/django_util
============================= test session starts ==============================
platform linux -- Python 3.11.8, pytest-7.4.4, pluggy-1.4.0 -- /usr/bin/python3.11
cachedir: .pytest_cache
rootdir: /<<PKGBUILDDIR>>
collecting ... collected 440 items / 1 error

==================================== ERRORS ====================================
______________ ERROR collecting tests/contrib/test_flask_util.py _______________
ImportError while importing test module '/<<PKGBUILDDIR>>/tests/contrib/test_flask_util.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
oauth2client/contrib/flask_util.py:173: in <module>
    from flask import _app_ctx_stack
E   ImportError: cannot import name '_app_ctx_stack' from 'flask' (/usr/lib/python3/dist-packages/flask/__init__.py)

During handling of the above exception, another exception occurred:
/usr/lib/python3.11/importlib/__init__.py:126: in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
tests/contrib/test_flask_util.py:30: in <module>
    from oauth2client.contrib import flask_util
oauth2client/contrib/flask_util.py:181: in <module>
    raise ImportError('The flask utilities require flask 0.9 or newer.')
E   ImportError: The flask utilities require flask 0.9 or newer.
=============================== warnings summary ===============================

** Affects: python-oauth2client (Ubuntu)
     Importance: Undecided
     Assignee: Olivier Gayot (ogayot)
         Status: In Progress

** Affects: python-oauth2client (Debian)
     Importance: Unknown
         Status: New


** Tags: update-excuse
-- 
python-oauth2client FTBFS against flask 3
https://bugs.launchpad.net/bugs/2052771
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