How do I fix endpointscfg.py to generate a discovery document for the endpoints API? (Missing oauth2client.anyjson)

At the time of this writing, it appears that the endpointscfg.py script that ships with Google App Engine is broken. I am trying to create an iOS client for my endpoint API written in Python. As per the instructions , you first need to create a discovery document with endpointscfg.py

script. But in this case, the following error occurs:

 File "/myproject/libs/googleapiclient/errors.py", line 27, in <module>
from oauth2client.anyjson import simplejson

      

ImportError: no module named anyjson

The problem is that the enabled oauth2client in my Google App Engine app ships with oauth2client version 1.3.2 and anyjson.py

was removed in version 1.3.Looks like Google hasn't updated their endpointscfg.py

script to work with this change. What would be the cleanest solution to fix this without waiting for Google?

+3


source to share


1 answer


It looks to me like you are using an old googleapiclient

one that still requires it as the traceback is in this package. This library was updated last year in this commit .



+3


source







All Articles