Skip to content
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

WebdavFileSystem.__init__() missing 1 required positional argument: 'base_url' when opening via fsspec.open("webdav://...") #197

Open
mxmlnkn opened this issue Oct 9, 2024 · 0 comments

Comments

@mxmlnkn
Copy link

mxmlnkn commented Oct 9, 2024

I didn't see any documentation about the URI scheme, but the code registers the webdav:// and dav:// prefixes, the former of which is even registered with fsspec. But, opening via URL does not work:

import fsspec
fsspec.open("webdav://127.0.0.1:8080/")
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "~/.local/lib/python3.12/site-packages/fsspec/core.py", line 486, in open
    out = open_files(
          ^^^^^^^^^^^
  File "~/.local/lib/python3.12/site-packages/fsspec/core.py", line 295, in open_files
    fs, fs_token, paths = get_fs_token_paths(
                          ^^^^^^^^^^^^^^^^^^^
  File "~/.local/lib/python3.12/site-packages/fsspec/core.py", line 663, in get_fs_token_paths
    fs = filesystem(protocol, **inkwargs)
         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "~/.local/lib/python3.12/site-packages/fsspec/registry.py", line 311, in filesystem
    return cls(**storage_options)
           ^^^^^^^^^^^^^^^^^^^^^^
  File "~/.local/lib/python3.12/site-packages/fsspec/spec.py", line 81, in __call__
    obj = super().__call__(*args, **kwargs)
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: WebdavFileSystem.__init__() missing 1 required positional argument: 'base_url'

This may be related to this issue: #187

And/or, it might be necessary to implement the _get_kwargs_from_urls(urlpath): method.

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

No branches or pull requests

1 participant