Community Packages

Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

FS#76613 - [python-google-auth-oauthlib] is broken; requires python-google-auth >= 2.13.0

Attached to Project: Community Packages
Opened by Phillip Pearson (myelin) - Thursday, 17 November 2022, 23:37 GMT
Last edited by Toolybird (Toolybird) - Thursday, 15 December 2022, 07:24 GMT
Task Type Bug Report
Category Packages
Status Closed
Assigned To Sven-Hendrik Haase (Svenstaro)
Felix Yan (felixonmars)
Architecture All
Severity Medium
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 4
Private No

Details

Description:

python-google-auth-oauthlib package is broken; the google-auth-oauthlib Python library, from 0.7.0 on, depends on python-google-auth>=2.13.0, but the available version of python-google-auth in Arch is 2.9.0-1.

Either the python-google-auth package needs updating to 2.13.0 or later, or the python-google-auth-oauthlib package needs to be reverted to 0.5.3 or earlier.


Additional info:
* https://github.com/googleapis/google-auth-library-python-oauthlib/commits/v0.7.0


Steps to reproduce:

$ sudo docker run --rm -it archlinux:base /bin/bash
# pacman -Sy --noconfirm python-google-auth-oauthlib python-six
:: Synchronizing package databases...
[...]
(1/1) Arming ConditionNeedsUpdate...
# pacman -Q | grep python-google
python-google-auth 2.9.0-1
python-google-auth-oauthlib 0.7.1-2
# python3
Python 3.10.8 (main, Nov 1 2022, 14:18:21) [GCC 12.2.0] on linux
>>> import google_auth_oauthlib
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/lib/python3.10/site-packages/google_auth_oauthlib/__init__.py", line 21, in <module>
from .interactive import get_user_credentials
File "/usr/lib/python3.10/site-packages/google_auth_oauthlib/interactive.py", line 27, in <module>
import google_auth_oauthlib.flow
File "/usr/lib/python3.10/site-packages/google_auth_oauthlib/flow.py", line 69, in <module>
import google_auth_oauthlib.helpers
File "/usr/lib/python3.10/site-packages/google_auth_oauthlib/helpers.py", line 27, in <module>
from google.auth import external_account_authorized_user
ImportError: cannot import name 'external_account_authorized_user' from 'google.auth' (/usr/lib/python3.10/site-packages/google/auth/__init__.py)
>>>
This task depends upon

Closed by  Toolybird (Toolybird)
Thursday, 15 December 2022, 07:24 GMT
Reason for closing:  Fixed
Additional comments about closing:  python-google-auth 2.13.0-1

Loading...