-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
BUG: Issue in the gbq module when authenticating on remote servers #8489 #11141
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
Conversation
a75f99b
to
114aab5
Compare
Travis is green |
@@ -133,7 +132,9 @@ def get_credentials(self): | |||
credentials = storage.get() | |||
|
|||
if credentials is None or credentials.invalid or self.reauth: | |||
credentials = run_flow(flow, storage, argparser.parse_args([])) | |||
print('Go to the following link in your browser: {0}'.format(flow.step1_get_authorize_url())) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
not a big fan of this. I would simply raise with an intelligble message.
@parthea can you update, I think should just raise an informative message |
114aab5
to
99bf170
Compare
I'm still working on this PR. I removed my last commit, which automatically closed the pull request. It should open when I submit a new commit. I want to provide users with a simple way to create the required Then I can raise an informative error message if the credentials are missing or invalid which tells the user to first call the |
@parthea |
Add |
ac915d6
to
c0d5ec9
Compare
All tests passed in my local environment. Waiting on travis.
|
Ready for review. Travis is green. |
c0d5ec9
to
cd3221b
Compare
cd3221b
to
55764ea
Compare
@@ -128,23 +130,44 @@ def test_google_api_imports(self): | |||
except ImportError as e: | |||
raise ImportError("Missing module required for Google BigQuery support: {0}".format(str(e))) | |||
|
|||
def get_credentials(self): | |||
def authorize(self): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
no, you must have the credentials to pass in. pandas shouldn't be responsiblet for saving/retriveing these. .authorize
should be almost a trivial call
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Resolve issue where gbq authentication on remote servers fails silently.