Yamil Abugattas
Yamil Abugattas

Reputation: 418

Module google_auth_httplib2 not found after pip installing google-cloud How can I fix it?

I used pip to install cloud-storage, like this:

$ pip install --upgrade google-cloud

When I started my application, I got an error that said no module named google_auth_httplib2 was found. I used pip list and verified that the package was installed, yet the import kept failing. Should I install it in my project's folder, like this?

$ pip install google-cloud -t [my_path]

UPDATE:

Just for clarity, the error arises in the google-auth-httplib2 module, not the httplib2 module. I recently installed it in the lib folder of my project: my_project/lib/google_cloud_storage. If I try importing google.cloud.storage from lib.google_cloud_storage, it will work it's way until it gets to google_auth_httplib2 module, where it throws a not found error. I've tried placing that module in the same folder as the one calling it, and not even then will it work.

Upvotes: 0

Views: 1357

Answers (1)

Yamil Abugattas
Yamil Abugattas

Reputation: 418

I just solved the problem, I'll leave the answer just in case anyone else runs into it. I created a folder named google-cloud in lib and used pip:

pip install google-cloud -t [my_project]/lib/google-cloud

And then in appengine_config.py I added:

from google.appengine.ext import vendor

vendor.add('lib/google-cloud')

Upvotes: 1

Related Questions