Stream: python

Topic: pyFilesystem not compatible with Python >=3.12


view this post on Zulip Jan Range (Feb 13 2026 at 13:06):

@Oliver Bertuch unfortunately pyFileSystem2 has turned out to be incompatible with newer versions, because it is using pkg_resources and its support has been removed. Huge bummer!

Luckily the current pyDataverse 0.4.0 implementation simply uses their base class to implement necessary methods, but not the entire eco-system. Hence, I can restore compatibility by simply not inheriting and removing the dependency (see completed vs failed run).

I am now looking into alternatives, since other users have experienced the same issues. One of which is fsspec which looks very promising. What are your thoughts? To me it looks like it is a viable alternative and possibly offers even more.

view this post on Zulip Oliver Bertuch (Feb 13 2026 at 13:21):

That looks like a well maintained library!

view this post on Zulip Oliver Bertuch (Feb 13 2026 at 13:21):

They even provide chaining and local caching out of the box!

view this post on Zulip Oliver Bertuch (Feb 13 2026 at 13:22):

Also their argument for serializable filesystem requests seem very reasonable!

view this post on Zulip Oliver Bertuch (Feb 13 2026 at 13:22):

I'm not a Python expert, but it may be worth a shot!

view this post on Zulip Oliver Bertuch (Feb 13 2026 at 13:25):

I like their overview of alternatives (e.g. https://github.com/piskvorky/smart_open), but as we seek abstraction, this seems to be a good fit

view this post on Zulip Jan Range (Feb 13 2026 at 17:44):

I agree, looking through the docs this is an awesome library! I will test it out in the upcoming week :slight_smile:


Last updated: Apr 03 2026 at 06:08 UTC