-
Notifications
You must be signed in to change notification settings - Fork 10
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
[Feature]: rmv s3fs dependency #548
Comments
I saw the linked PR, but just wanted to discuss here more generally how we want to be using fsspec / remfile and the functions defined in Currently, users wanting to stream data can use From what I understood from other discussions, Regarding s3fs, another option could be to make it an optional dependency until we migrate to the pynwb implementation of |
Yes, that all makes sense to me. I wanted to make sure I didn't delete any functionality that is really needed, but it seems like this mode is not really used anymore. We could make it an optional dependency, but since it would be the only dependency in that mode, I think it would be just as easy for users to install it when they need it. As it stands now as a primary dependency it is causing installation issues that are really unnecessary. |
That makes sense, the error message is pretty clear anyway if someone was using that mode. Sounds good to me. |
What would you like to see added to the NWBInspector?
Currently, there is an s3fs dependency. While not directly imported, it serves as the backend for fsspec when handling S3 URLs. Specifically, in src/nwbinspector/tools/_read_nwbfile.py, when reading files with "s3://" paths, the code uses fsspec.filesystem("s3", anon=True) which internally uses s3fs to handle the S3 file access.
The problem is that this causes a dependency chain that makes it difficult to use the latest packages. I think with the recent shift to using remfile, we should not need to maintain this apsect of the codebase. Do we want to be using fsspec at all? Are we even using the functions defined in _read_nwbfile.py at all? If not, let's refactor and simplify our dependencies for better environment management.
Do you have any interest in helping implement the feature?
No.
Code of Conduct
The text was updated successfully, but these errors were encountered: