Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ImportError: No module named gflags #161

Closed
johannesjo opened this issue May 28, 2015 · 4 comments
Closed

ImportError: No module named gflags #161

johannesjo opened this issue May 28, 2015 · 4 comments

Comments

@johannesjo
Copy link

I installed the google tasks extension by following the instructions provided in its readme. The google-python-api, as well as the oauth package is successfully installed. It still shows this error, when I try to run todo.sh google ...

amcintosh added a commit to amcintosh/todo.txt-cli that referenced this issue May 31, 2015
-Cleaned up code
-Rewrote README
-Work prompted by todotxt#161
@amcintosh
Copy link

I've removed the references to gflags from the code, as it wasn't in use.
If you grab the latest, it should be good to go.

I've also rewritten the README and cleaned the code up a bit. Haven't touched this in years so I'm thinking of spending some time cleaning it up a lot.

Thanks

@johannesjo
Copy link
Author

Thanks for trying to fix this issue. Unfortunately now I get another error:

Pulling from Google Tasks
Traceback (most recent call last):
  File "/home/johannes/.todo.actions.d/google", line 282, in <module>
    main(sys.argv[1:])
  File "/home/johannes/.todo.actions.d/google", line 269, in main
    pull()
  File "/home/johannes/.todo.actions.d/google", line 149, in pull
    service = getAPIService()
  File "/home/johannes/.todo.actions.d/google", line 85, in getAPIService
    credentials = run(FLOW, storage)
  File "/usr/local/lib/python2.7/dist-packages/oauth2client/tools.py", line 247, in run
    'The gflags library must be installed to use tools.run(). '
NotImplementedError: The gflags library must be installed to use tools.run(). Please install gflags or preferrably switch to using tools.run_flow().

@johannesjo
Copy link
Author

I was able to fix this issue by running:

pip install python-gflags

Thank you very much!

@amcintosh
Copy link

ok. Glad it's working for you. I've further updated the instructions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants