Skip to content
This repository was archived by the owner on Sep 17, 2025. It is now read-only.
This repository was archived by the owner on Sep 17, 2025. It is now read-only.

ModuleNotFoundError: No module named 'google.cloud*' #260

@hvent90

Description

@hvent90

Making this issue so future Python developers scratching their heads will have a solution:

After debugging for hours to get a simple trace to run, here was the fix:

  1. Remove all pip modules (you could probably get away with only removing all google cloud related modules)
  2. Install grcpio-tools, opencensus, and google-cloud-trace
[WARNING: REMOVES ALL PIP MODULES] sudo pip3 freeze | sudo xargs pip3 uninstall -y
python3 -m pip install grpcio-tools opencensus google-cloud-trace

There are two issues out in the wild that are causing this:

  • Installations of google cloud python libraries (such as gcloud or google-cloud) cause other No Module named 'google.cloud.*' errors
  • I can't find any online documentation mentioning that google-cloud-trace is needed.

Having mention of google-cloud-trace on the README.md would be helpful.

Cheers!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions