NotImplementedError: gflags library must be installed to use tools.run (). Install gflags or better switch to using tools.run_flow ()

I am developing a GAE django non-rel application. I encountered a gflags related error.

NotImplementedError: gflags library must be installed to use tools.run (). Install gflags or better switch to using tools.run_flow ()

To solve this error, I downloaded glags.py and gflags_validators.py and put them in the root folder of the project.

As a result of the above, I got another error.

EOFError at /pages EOF when reading a line Exception Value: EOF when reading a line Exception Location: D:\jatin\Project\GAE_django\non-rel_django1.5\oauth2client\old_run.py in run, line 149 
+5
source share
1 answer

try it

 pip install python-gflags 

or

 sudo easy_install --upgrade python-gflags 
+8
source

Source: https://habr.com/ru/post/1202157/


All Articles