cudf icon indicating copy to clipboard operation
cudf copied to clipboard

[FEA] Clarify non-existent subdirectory error messages for file writers

Open randerzander opened this issue 4 years ago • 3 comments

With latest cudf nightlies, attempting to write a file to a non-existend subdirectory fails as expected (matching Pandas), but the error is unclear:

RuntimeError: cuDF failure at: ../src/io/utilities/data_sink.cpp:36: Cannot open output file

Pandas's is a bit better:

IOError: [Errno 2] No such file or directory: './dir/name.csv'

It would be helpful for users to know if the write fails because the subdirectory didn't exist, as opposed to some other permissions or worse (if writing to a distributed fs) error.

randerzander avatar Oct 29 '21 17:10 randerzander

This issue has been labeled inactive-30d due to no recent activity in the past 30 days. Please close this issue if no further response or action is needed. Otherwise, please respond with a comment indicating any updates or changes to the original issue and/or confirm this issue still needs to be addressed. This issue will be labeled inactive-90d if there is no activity in the next 60 days.

github-actions[bot] avatar Dec 12 '21 17:12 github-actions[bot]

This issue has been labeled inactive-90d due to no recent activity in the past 90 days. Please close this issue if no further response or action is needed. Otherwise, please respond with a comment indicating any updates or changes to the original issue and/or confirm this issue still needs to be addressed.

github-actions[bot] avatar Mar 12 '22 18:03 github-actions[bot]

I get same error RuntimeError: cuDF failure at: ....: Cannot open output file when the subdirectory doesn't exist but the error msg is not informative.. it is hard to tell what's the issue. I agree that It would be helpful for users to know that this is because the subdirectory doesn't exist.

rnyak avatar Aug 08 '22 18:08 rnyak