Marcel
Marcel

Reputation: 3268

ModuleNotFoundError: No module named 'google.rpc.context'

I'm getting this error

ModuleNotFoundError: No module named 'google.rpc.context'

when I import the Google Cloud Logging library for Python:

import google.cloud.logging

How to solve that, please?

Upvotes: 0

Views: 2098

Answers (1)

Marcel
Marcel

Reputation: 3268

It seems I had some old packages installed, because the issue was solved by:

pip install --upgrade --force-reinstall -r requirements.txt

Upvotes: 0

Related Questions