-
-
Notifications
You must be signed in to change notification settings - Fork 18k
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
io/common.py: boto3 with python 3.5 #11915
Comments
I think the import of boto should first try to further would need:
want to do a pull-request? |
I haven't looked much recently, but I think that |
I haven't used Pandas's CI would have caught this if it were an issue for PY<3.5. Above import error only exists for PY3.5 if In-progress TODO list:
Comment last modified: 2016-01-10T02:55:00Z |
I think |
From the terminal output above, it seems that |
I agree that using After a little searching, there are significant changes in the AWS Python SDK API between Thanks again for your help with the issue. |
@stharrold want to do a PR? |
@jreback Thanks for the offer. I'm sorry, I'm not in a position to devote the time that I think would be necessary to properly fix the issue. |
I wouldn't mind giving this a closer look, if nobody else beats me to it. |
that would be great! |
@jvkersch thanks. FWIW I've had to start porting a few things to use boto3 (apparently changes to ConfigParser in 3.4.3 and 3.5.1 broke boto), and the changes aren't too difficult. It will be up to you as you try to implement this, but I think that requiring only |
@TomAugspurger @jreback I finally had time to look into this, and I agree the immediate issue is a bug in boto for Python 3.5 (reported as boto/boto#3474, where I left a comment). That said, I wouldn't mind trying my hand at a switchover to boto3, using the excellent to-do list that @stharrold prepared as a guide, but I propose first adding a small check to |
Is this a new version of (so for sure would take a PR that adds
|
@jreback it's a new package entirely called |
If you aren't using boto at all, either uninstalling boto or renaming / moving the Just installing boto3 won't work till we're using it. I've been porting some stuff at work to use boto3 so maybe I can put together a fix tomorrow night. |
ok, going to trap/ignore the error for now on 0.18.0 |
Makes sense. If I have time to get to this before the next RC I'll remove those. |
@TomAugspurger what is the repro for this error? e.g. on py3.5.1 and 2.39 for boto it imports fine for me. |
@jreback I haven't been able to repro the import time TypeError. I think these conditions should set it up... with open(os.path.expanduser('~/.boto'), 'wt') as f:
f.write('[Plugins]\nplugin_directory = {}'.format(os.path.dirname(__file__))
import pandas There just needs to be a The second bug, present in 3.4.4 and 3.5.1 which prevents the first one from even occurring, only raises when you try to authenticate. It repros with import boto
boto.connect_s3() NoAuthHandlerFound: No handler was ready to authenticate. 1 handlers were checked. ['HmacAuthV1Handler'] Check your credentials If you're on That's defined in |
ok, currently master is clear: https://travis-ci.org/pydata/pandas/jobs/113383976 (though for some reason even more odd is pip installing doesn't make this show up: see https://travis-ci.org/jreback/pandas/jobs/113398289 (is |
FWIW I've had good experiences going with just |
so new package: s3fs from @martindurant, @mrocklin, and @koverholt that might be of interest. This is a pure-python library only dependent on I think we could make this a dep (rather than could potentially close: #7682, #8508 as well as this issue. |
What would you all need from |
I'll run the test suite with s3fs swapped in tonight or this weekend and see what failure we have. |
closes pandas-dev#11915 Author: Tom Augspurger <tom.augspurger88@gmail.com> Closes pandas-dev#13137 from TomAugspurger/s3fs and squashes the following commits: 92ac063 [Tom Augspurger] CI: Update deps, docs 81690b5 [Tom Augspurger] COMPAT/REF: Use s3fs for s3 IO
Pandas v0.17.1 won't import for Python 3.5 due to boto. Replacing with boto3 appears to fix the issue. I'd like to suggest replacing dependencies on boto with boto3 for at least Python 3.5. I didn't test with other Python 3x versions. Thank you
Update (2016-01-10T02:45:00Z): There are significant API changes between
boto
andboto3
(http://boto3.readthedocs.org/en/latest/guide/migrations3.html). Doingimport boto3 as boto
as below will allow pandas to import for Python 3.5, but then AWS functionality is broken.The text was updated successfully, but these errors were encountered: