[Bug 2052771] Re: python-oauth2client FTBFS against flask 3

Bug Watch Updater 2052771 at bugs.launchpad.net
Tue Oct 8 08:33:20 UTC 2024


** Changed in: python-oauth2client (Debian)
       Status: New => Won't Fix

-- 
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/2052771

Title:
  python-oauth2client FTBFS against flask 3

Status in python-oauth2client package in Ubuntu:
  Fix Released
Status in python-oauth2client package in Debian:
  Won't Fix

Bug description:
  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 ===============================

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/python-oauth2client/+bug/2052771/+subscriptions




More information about the Ubuntu-sponsors mailing list