python - Error importing modules from gdata -
i'm using virtualenv application, , i've installed gdata, jira, , gspread using env/bin/pip install <lib name> in terminal under project folder. i'm next documentation google api not working?
in documentation, in order error handling need do: from gdata import errors
and in order create instance of drive api service (in order later on create file) need do: from gdata.discovery import build
however files different, there no "discovery" or "errors" , when run env/bin/python run.py error:
traceback (most recent phone call last): file "run.py", line 3, in <module> gdata import errors importerror: cannot import name errors (same discovery)
i thought maybe mean from apiclient import errors literally in documentation, tried pip installing apiclient , replacing gdata apiclient still not work.
i downloaded gdata.zip file , unzipped , looked through sample code (especially spreadsheet since that's i'm trying create) , take different approach documentation , i'm confused. goal utilize api create spreadsheet code, not plan on using api edit spreadsheet itself, plan on using gspread (github).
i've done lot of research , i've been directed lot of different places , might have perhaps mixed code? know did wrong/have fix? huge in advance.
this kind of import error caused user installing module of same name. chance have gdata.py somehwere on python path?
you can verify whether causing issue by:
import gdata print gdata.__file__ this tells interpreter loading code from.
python gdata importerror google-api-python-client
No comments:
Post a Comment