Skip to content

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

@mxmlnkn

Description

@mxmlnkn

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions