-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
to_csv fails silently with s3fs #32486
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
Comments
Hmm... thanks for the report. I think the issue is the failure to call close in pandas/pandas/io/formats/csvs.py Lines 174 to 204 in 970499d
Are you interested in debugging further? |
👍 just ran into this myself. very dangerous silent failure.. |
See also #32470. Can anyone see if reverting the relevant changes in d6fe194#diff-a37b395bed03f0404dec864a4529c97d (at least for write mode) is doable? |
I just received this silent failure. I noticed a difference, when i used only the bucket name in the path_or_buf, I received the anonymous access error message. But when I added a "sub directory", i received no message at all, and it failed silently. Received error message: Did not receive error message: |
Any updates on this? how can I prevent this silent error? Thanks |
Upgrading to botocore.exceptions.ClientError: An error occurred (AccessDenied) when calling the CreateBucket operation: Access Denied |
Code Sample, a copy-pastable example if possible
Problem description
If you provide an invalid s3 path (e.g. a bucket that you don't have access to), this command fails silently.
Expected Output
Raise some exception at least.
Output of
pd.show_versions()
[paste the output of
pd.show_versions()
here below this line]INSTALLED VERSIONS
commit : None
python : 3.7.2.final.0
python-bits : 64
OS : Linux
OS-release : 4.15.0-88-generic
machine : x86_64
processor :
byteorder : little
LC_ALL : None
LANG : C.UTF-8
LOCALE : en_US.UTF-8
pandas : 0.25.1
numpy : 1.17.0
pytz : 2019.2
dateutil : 2.8.0
pip : 19.0.2
setuptools : 40.8.0
Cython : None
pytest : 3.10.1
hypothesis : None
sphinx : None
blosc : None
feather : None
xlsxwriter : None
lxml.etree : 4.4.1
html5lib : None
pymysql : None
psycopg2 : 2.8.3 (dt dec pq3 ext lo64)
jinja2 : 2.10.1
IPython : 7.9.0
pandas_datareader: None
bs4 : 4.8.0
bottleneck : None
fastparquet : None
gcsfs : None
lxml.etree : 4.4.1
matplotlib : None
numexpr : None
odfpy : None
openpyxl : None
pandas_gbq : None
pyarrow : None
pytables : None
s3fs : None
scipy : 1.3.1
sqlalchemy : None
tables : None
xarray : None
xlrd : None
xlwt : None
xlsxwriter : None
The text was updated successfully, but these errors were encountered: