Skip to content

Change protocol check to fallback for known implementations#449

Closed
hadim wants to merge 1 commit into
fsspec:mainfrom
hadim:patch-1
Closed

Change protocol check to fallback for known implementations#449
hadim wants to merge 1 commit into
fsspec:mainfrom
hadim:patch-1

Conversation

@hadim

@hadim hadim commented Oct 9, 2025

Copy link
Copy Markdown

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--

ap-- commented Oct 9, 2025

Copy link
Copy Markdown
Collaborator

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

hadim commented Oct 9, 2025

Copy link
Copy Markdown
Author

Ok sorry for the noise then! Thanks.

@hadim hadim closed this Oct 9, 2025
@ap--

ap-- commented Oct 16, 2025

Copy link
Copy Markdown
Collaborator

works now in the 0.3.4 release ☺️

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