Skip to content

Google SDK #178

@esseti

Description

@esseti

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions