Comments (6)
Please provide your Environment Info(os and python version) , and steps to reproduce . also a complete stack-trace will be helpful.
from pygsheets.
I'm trying to check oauth2 locally on my GAE application which runs on Ubuntu 14.04.
Full traceback..
Enter verification code: Internal Server Error: /alumni_dateycollege/sheet/
Traceback (most recent call last):
File "/home/gemini/.up_projects/vishudha-gae-backup/vishudha-gae-backup/lib/django/core/handlers/base.py", line 149, in get_response
response = self.process_exception_by_middleware(e, request)
File "/home/gemini/.up_projects/vishudha-gae-backup/vishudha-gae-backup/lib/django/core/handlers/base.py", line 147, in get_response
response = wrapped_callback(request, *callback_args, **callback_kwargs)
File "/home/gemini/.up_projects/vishudha-gae-backup/vishudha-gae-backup/alumni_registration_dateycollege/views.py", line 56, in testsheet
creat_sample_sheet()
File "/home/gemini/.up_projects/vishudha-gae-backup/vishudha-gae-backup/alumni_registration_dateycollege/sheet_handler.py", line 7, in creat_sample_sheet
gc = pygsheets.authorize(outh_file=client_secret_file)
File "/home/gemini/.up_projects/vishudha-gae-backup/vishudha-gae-backup/lib/pygsheets/client.py", line 437, in authorize
credentials = get_outh_credentials(client_secret_file=outh_file, credential_dir=outh_creds_store)
File "/home/gemini/.up_projects/vishudha-gae-backup/vishudha-gae-backup/lib/pygsheets/client.py", line 407, in get_outh_credentials
credentials = tools.run_flow(flow, store, flags)
File "/home/gemini/.up_projects/vishudha-gae-backup/vishudha-gae-backup/lib/oauth2client/_helpers.py", line 133, in positional_wrapper
return wrapped(*args, **kwargs)
File "/home/gemini/.up_projects/vishudha-gae-backup/vishudha-gae-backup/lib/oauth2client/tools.py", line 239, in run_flow
code = input('Enter verification code: ').strip()
EOFError: EOF when reading a line
ERROR 2016-11-29 05:44:31,412 base.py:284] Internal Server Error: /alumni_dateycollege/sheet/
Traceback (most recent call last):
File "/home/gemini/.up_projects/vishudha-gae-backup/vishudha-gae-backup/lib/django/core/handlers/base.py", line 149, in get_response
response = self.process_exception_by_middleware(e, request)
File "/home/gemini/.up_projects/vishudha-gae-backup/vishudha-gae-backup/lib/django/core/handlers/base.py", line 147, in get_response
response = wrapped_callback(request, *callback_args, **callback_kwargs)
File "/home/gemini/.up_projects/vishudha-gae-backup/vishudha-gae-backup/alumni_registration_dateycollege/views.py", line 56, in testsheet
creat_sample_sheet()
File "/home/gemini/.up_projects/vishudha-gae-backup/vishudha-gae-backup/alumni_registration_dateycollege/sheet_handler.py", line 7, in creat_sample_sheet
gc = pygsheets.authorize(outh_file=client_secret_file)
File "/home/gemini/.up_projects/vishudha-gae-backup/vishudha-gae-backup/lib/pygsheets/client.py", line 437, in authorize
credentials = get_outh_credentials(client_secret_file=outh_file, credential_dir=outh_creds_store)
File "/home/gemini/.up_projects/vishudha-gae-backup/vishudha-gae-backup/lib/pygsheets/client.py", line 407, in get_outh_credentials
credentials = tools.run_flow(flow, store, flags)
File "/home/gemini/.up_projects/vishudha-gae-backup/vishudha-gae-backup/lib/oauth2client/_helpers.py", line 133, in positional_wrapper
return wrapped(*args, **kwargs)
File "/home/gemini/.up_projects/vishudha-gae-backup/vishudha-gae-backup/lib/oauth2client/tools.py", line 239, in run_flow
code = input('Enter verification code: ').strip()
EOFError: EOF when reading a line
INFO 2016-11-29 05:44:31,598 module.py:794] default: "GET /alumni_dateycollege/sheet/ HTTP/1.1" 500 80331
Before the traceback, I saw a link which needs to get accessed inorder to authenticate..
from pygsheets.
Can you try,
import pygsheets
gc = pygsheets.authorize(outh_file= <relative path to client secret file>)
ss = gc.open('<some sheet you have>')
and see if you are able to authorize
from pygsheets.
@nithinmurali error raised because of the above code.. Pls add a tutorial on how to link pygsheets with Google App Engine..
from pygsheets.
@Avinash-Raj I have no experience with Google App Engine , so wont be able to write a tutorial as of now. Are you getting the same EOFError
when just running these statements?
from pygsheets.
added non local authorization in #26 . Which should fix this. see docs about non local authorization. Re open if the issue still persists.
from pygsheets.
Related Issues (20)
- client.py, line 124, attempt to take index on dict HOT 1
- Error on adding a row to the table
- Naming unbounded ranges
- unlink simply doesn't work for shared drive sheets HOT 2
- How to set hyperlink? HOT 1
- Remove formatting of appended row in 'append_table'? HOT 3
- Error when appending 'This range already has a worksheet with different title set' HOT 3
- get_values ignores the start string if no end string is specified HOT 3
- DataRange.apply_format() does not work for Date Format HOT 1
- Is there a function to GET the last used row & column in the wks? HOT 2
- Feature request: different types of charts except "basicChart" HOT 1
- Excessive delay and 429 errors when using pygsheets HOT 3
- How to create multiple link in a single row
- `google.oauth2` both Deprecated and Decommissioned HOT 2
- OAuth Out-Of-Band (OOB) migration for production app HOT 2
- AttributeError: 'Worksheet' object has no attribute 'get_all_values'
- `set_dataframe` function reached cell limit
- Expose orderBy as a parameter when listing documents
- apply_format range error
- Sample for custom_formula
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pygsheets.