Python can't find module 'clientsecrets' when trying to set up oauth2 in Django using the Google Python API

I installed the Google APIs Client Library for Python on my Windows 7 box using pip. I am following the Django example that Google provides, but I can't start my server because Python throws an ImportError: No module named 'clientsecrets'.

I have verified that clientsecrets.py is located in /path/to/python/Lib/site-packages.

Any idea what could be causing this? I am using Python version 3.3.3 and Django version 1.6.1

Answers


I've changed in /usr/lib/python3/dist-packages/oauth2client/client.py the line:

  22 import base64
  23 import clientsecrets
  24 import copy

to this:

  22 import base64
  23 import oauth2client.clientsecrets
  24 import copy

and then that solved that problem. This problem came only with Python 3, with Python 2.7 that worked out of box.


Need Your Help

Where to place CSS3 transition

css3 transitions

Maybe this is a real silly question but I just can't stand not to know the answer so here I go:

java swing gui application with sql server 2005 as backend using windows authentication

java sql-server-2005 user-interface

i get this error when i execute my java application in netbeans 7.0 ide, any help regarding this will be appreciated.