Skip to content

Conversation

hadim
Copy link

@hadim hadim commented Oct 9, 2025

The code below:

from upath import UPath
root_dir = UPath("simplecache::s3://my-bucket")

triggers this one-time warning:

.pixi/envs/default/lib/python3.13/site-packages/upath/_flavour.py:431: UserWarning: Could not find default for known protocol 'simplecache'. Creating a default flavour for it. Please report this to the universal_pathlib issue tracker.
  return WrappedFileSystemFlavour.from_protocol(protocol).get_kwargs_from_url(url)

which I think is a false positive due to a typo.

But I am not sure and maybe I misunderstand the logic here so let me know!

Using the latest version of upath.

@ap--
Copy link
Collaborator

ap-- commented Oct 9, 2025

Hi @hadim

Thanks for the PR! The check is intended:

raise a warning for known fsspec protocols that currently don't have a flavour represented in universal-pathlib

I am working to get full simplecache support for the next release #445 which once finalized will include removal of the warning for chained simplecache paths. Should land in a v0.3.4 release in the near future.

@hadim
Copy link
Author

hadim commented Oct 9, 2025

Ok sorry for the noise then! Thanks.

@hadim hadim closed this Oct 9, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants