googleapi missing runtime dependency

Bug #2070046 reported by James Page
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
python-googleapi (Ubuntu)
Status tracked in Oracular
Oracular
Triaged
High
Adrien Nader

Bug Description

cinder currently FTBFS while trying to execute tests as the Google API core modules can't be loaded:

=========================
Failures during discovery
=========================
--- import errors ---
Failed to import test module: cinder.tests.unit.backup.drivers.test_backup_google
Traceback (most recent call last):
  File "/usr/lib/python3.12/unittest/loader.py", line 396, in _find_test_path
    module = self._get_module_from_name(name)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.12/unittest/loader.py", line 339, in _get_module_from_name
    __import__(name)
  File "/<<PKGBUILDDIR>>/cinder/tests/unit/backup/drivers/test_backup_google.py", line 33, in <module>
    from cinder.backup.drivers import gcs as google_dr
  File "/<<PKGBUILDDIR>>/cinder/backup/drivers/gcs.py", line 46, in <module>
    from googleapiclient import discovery
  File "/usr/lib/python3/dist-packages/googleapiclient/discovery.py", line 42, in <module>
    import google.api_core.client_options
ModuleNotFoundError: No module named 'google.api_core'

this looks to be external to the googleapiclient module:

install_requires = [
    "httplib2>=0.19.0,<1.dev0",
    # NOTE: Maintainers, please do not require google-auth>=2.x.x
    # Until this issue is closed
    # https://github.com/googleapis/google-cloud-python/issues/10566
    "google-auth>=1.32.0,<3.0.0.dev0,!=2.24.0,!=2.25.0",
    "google-auth-httplib2>=0.2.0, <1.0.0",
    # NOTE: Maintainers, please do not require google-api-core>=2.x.x
    # Until this issue is closed
    # https://github.com/googleapis/google-cloud-python/issues/10566
    "google-api-core >= 1.31.5, <3.0.0.dev0,!=2.0.*,!=2.1.*,!=2.2.*,!=2.3.0",
    "uritemplate>=3.0.1,<5",
]

ProblemType: Bug
DistroRelease: Ubuntu 24.10
Package: python3-googleapi 2.131.0-0ubuntu1
ProcVersionSignature: Ubuntu 6.8.0-31.31-generic 6.8.1
Uname: Linux 6.8.0-31-generic x86_64
NonfreeKernelModules: zfs
ApportVersion: 2.28.1-0ubuntu4
Architecture: amd64
CasperMD5CheckResult: pass
CurrentDesktop: ubuntu:GNOME
Date: Fri Jun 21 15:02:14 2024
InstallationDate: Installed on 2023-09-12 (283 days ago)
InstallationMedia: Ubuntu 22.04.3 LTS "Jammy Jellyfish" - Release amd64 (20230807.2)
PackageArchitecture: all
SourcePackage: python-googleapi
UpgradeStatus: Upgraded to oracular on 2024-01-10 (163 days ago)

Revision history for this message
James Page (james-page) wrote :
James Page (james-page)
Changed in python-googleapi (Ubuntu Oracular):
importance: Undecided → High
status: New → Triaged
assignee: nobody → Adrien Nader (adrien)
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.