I want to use the Google Calendar API for my Google App Engine web application. I followed the instructions here ( https://developers.google.com/google-apps/calendar/instantiate ) to set up an application that required me to import gflags. I downloaded gflags here ( https://code.google.com/p/python-gflags/downloads/list ) and unzipped it in the same directory as main.py of my webapp. Then I installed gflags by running "Python setup.py install" on the command line. The setup was successful, and the following was shown:
Installed c: \ python27 \ lib \ site-packages \ python_gflags-2.0-py2.7.eggDependency handling for python-gflags == 2.0Dependency processing completed for python-gflags == 2.
Installed c: \ python27 \ lib \ site-packages \ python_gflags-2.0-py2.7.egg
Dependency handling for python-gflags == 2.0
Dependency processing completed for python-gflags == 2.
But this line still does not work:
import gflags
The following error appears in the log:
NotImplementedError: gflags library must be installed to use tools.run (). Install gflags or better switch to using tools.run_flow ()
But I thought I already installed gflags? I'm also confused by why setup.py created a Python egg in my c: \ python27 \ lib folder, does this mean that the Google App Engine will not be able to access it?
You are on the right track, but they are setting up the python configuration procedure; this does not work with gae.
GAE GAE. , GAE.
, python, , .. , . python, GAE.
, gflags GAE. , , gflags.py gflags_validators.py GAE. .