-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
Resolve ImportError in read_gbq which appears with oauthclient >= 2.0 #12582
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
why are you requiring a newer version? can the older versions work as well as? much prefer not to break anything and just work with the version you have |
further we really need s way to test this automatically on Travis with different configurations |
|
0.18.0 is real easing shortly but it doesn't matter - you need to adapt to the installed configuration whatever it is use try excepts |
Valid BigQuery credentials are required to test the gbq module on travis. How should we go about that? Can we continue the discussion in #11089? |
read_gbq
which appears with oauthclient >= 2.0 #12572read_gbq
which appears with oauthclient >= 2.0
24c133a
to
a08bb1e
Compare
I've pushed a new version that is more flexible. All tests passed locally with oauthclient 2.0.1:
All tests passed locally with oauthclient 1.5.0:
|
can you confirm this also works with older versions of this lib? (I can shove this in 0.18.0 so doesn't really matter), but just to be on safe side. Also pls update |
@@ -43,3 +43,5 @@ Performance Improvements | |||
|
|||
Bug Fixes | |||
~~~~~~~~~ | |||
|
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.
move to 0.18.0
read_gbq
which appears with oauthclient >= 2.0
@parthea lmk as soon as you can update. ty. |
a08bb1e
to
8b488e1
Compare
* Google's `python-gflags <http://code.google.com/p/python-gflags/>`__ | ||
and `google-api-python-client <http://github.com/google/google-api-python-client>`__: Needed for :mod:`~pandas.io.gbq` | ||
* `httplib2 <http://pypi.python.org/pypi/httplib2>`__: Needed for :mod:`~pandas.io.gbq` | ||
* Google's `python-gflags <http://code.google.com/p/python-gflags/>`__ , |
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.
can u add in oauth2client into the appropriate ci/requirements files (eg where the existing reward are)
8b488e1
to
81374af
Compare
@@ -2,5 +2,6 @@ blosc | |||
httplib2 | |||
google-api-python-client == 1.2 | |||
python-gflags == 2.0 | |||
oauth2client == 1.5.0 |
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.
gr8!
ok, assuming travis passes, pls you certify tests passing on your local (with both oauth versions). create 2 different conda envs locally (if you don't have already), then this is easy. maybe do one in py3 and the other in py2. |
ok, this looks good. lmk when you have run tests locally. |
All gbq tests passed locally. I created 2 separate conda envs and tested both oauth versions (1.5.0 and 2.0.1). One thing to note is that I had to install PyCrypto when I tested with oauth2client 1.5.0 Here is the output: python 3.5.1 and oauth2client 2.0.1
python 3.5.1 and oauth2client 1.5.0
python 2.7.11 and oauth2client 2.0.1
python 2.7.11 and oauth2client 1.5.0
|
Here is the error without pyCrypto installed. Once I install pyCrypto, all tests passed
|
thanks @parthea I added a bit of documentation w.r.t. the dependencies. Further it might be a nice exercise (and once in place could point to from the docs), to create a |
git diff upstream/master | flake8 --diff