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

Google SDK #178

Open
esseti opened this issue Sep 28, 2021 · 0 comments
Open

Google SDK #178

esseti opened this issue Sep 28, 2021 · 0 comments

Comments

@esseti
Copy link

esseti commented Sep 28, 2021

I'm following this tutorial https://developers.google.com/tasks/quickstart/python forcing the code to python 2.
i've installed the libraries with
python2.7 -m pip install --upgrade --target=lib/ google-api-python-client google-auth-httplib2 google-auth-oauthlib

and set wf to use libraries

if __name__ == u"__main__":
    wf = Workflow(libraries=['./lib'])
    sys.exit(wf.run(main))

Thus, the import in my code works, but with the libraries they fail

15:31:22 workflow.py:2080 ERROR    No module named google.api_core.client_options
Traceback (most recent call last):
  File "/Users/user/Documents/alfred/Alfred.alfredpreferences/workflows/user.workflow.A12936D2-8F14-4620-9349-2CDBD6E831BF/workflow/workflow.py", line 2073, in run
    func(self)
  File "google_tasks.py", line 17, in main
    from googleapiclient.discovery import build
  File "./lib/googleapiclient/discovery.py", line 50, in <module>
    import google.api_core.client_options
ImportError: No module named google.api_core.client_options

any idea how to use these librarries? or where the problem is?

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

1 participant