Skip to content

ImportError: No module named 'google.api.core' #3885

@mikelambert

Description

@mikelambert

I believe the recent release of google-cloud-datastore==1.3.0 broke any new installations for anyone who was using google-cloud==0.25 and google-cloud=0.26. In particular, those older versions have an overly broad version dependency on google-cloud-datastore, and 1.30 unfortunately depends on google.api.core, a 0.27-ism.

The original question (and my more detailed explanation) can be found here:
https://stackoverflow.com/questions/45880108/google-cloud-platform-importerror-no-module-named-google-api-core-on-deploy/45899998#45899998

This broke for me despite my attempt to specify my pip dependencies exactly, breaking my continuous build, new checkouts, and I assume could break new live machines too. I suspect you'll see an increasing amount of reports of this as people attempt new installs.

But I think the proper fix going forward might require revisiting versioning of projects and overly-broad dependencies and semver usage.

Metadata

Metadata

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions