-
Notifications
You must be signed in to change notification settings - Fork 145
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
FileNotFoundError since 2024.3.1 #616
Comments
duplicate: fsspec/s3fs#862 fsspec/filesystem_spec#1551 allowed you to pass @Skylion007 , it seems like your use case of paths you do NOT want expanded may be the in the minority. I may change the default value of |
Just to add another datapoint to this. I have been impacted by this change when reading within |
This actually a major footgun in pandas right now. If I understand correctly, this glob behavior actually will have different behavior with local file filesystems and fsspec.open (or at least with other libraries like dask). This behavior before was undocumented and a bug, it also mean you just couldn't open certain files before. I know this is a breaking change, but it's breaking behavior that really shouldn't be supported. fsspec.open is suppose to be mostly a dropin replacement for builtins.open and therefore they should share similar semantics. If pandas want's to support this by default, they are welcome to change their use of the APIs to opt-in to this behavior by default. |
I think it's fair to say that pandas will make not changes on our behalf, it's up to us to decide what the most expected and most useful behaviours are. |
Yeah, I would say the special glob characters are actually quite common |
https://github.com/googleapis/python-bigquery-dataframes has a dependency on fsspec. We started noticing our tests are failing since version 2024.3.1:
This is how the initial environment looks like
pandas.read_csv works as expected
install gcsfs version 2024.3.1
rerun the same command, it fails now
The text was updated successfully, but these errors were encountered: