You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
But when I try to download 'model.bin', I get the following error
client.download_file("Transfer/openvino/carpet/model.bin","~/model.bin")
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/home/device1531/openvino_env/lib/python3.11/site-packages/webdav3/client.py", line 67, in _wrapper
res = fn(self, *args, **kw)
^^^^^^^^^^^^^^^^^^^^^
File "/home/device1531/openvino_env/lib/python3.11/site-packages/webdav3/client.py", line 447, in download_file
if self.is_dir(urn.path()):
^^^^^^^^^^^^^^^^^^^^^^^
File "/home/device1531/openvino_env/lib/python3.11/site-packages/webdav3/client.py", line 67, in _wrapper
res = fn(self, *args, **kw)
^^^^^^^^^^^^^^^^^^^^^
File "/home/device1531/openvino_env/lib/python3.11/site-packages/webdav3/client.py", line 781, in is_dir
return WebDavXmlUtils.parse_is_dir_response(content=response.content, path=path, hostname=self.webdav.hostname)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/device1531/openvino_env/lib/python3.11/site-packages/webdav3/client.py", line 1164, in parse_is_dir_response
response = WebDavXmlUtils.extract_response_for_path(content=content, path=path, hostname=hostname)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/device1531/openvino_env/lib/python3.11/site-packages/webdav3/client.py", line 1251, in extract_response_for_path
raise RemoteResourceNotFound(path)
webdav3.exceptions.RemoteResourceNotFound: Remote resource: /Transfer/openvino/carpet/model.bin not found
The text was updated successfully, but these errors were encountered:
I had the same problem. In my case, it was because I had already indicated part of the path in the webdav_host_address. With this information, the response of the WebDAV server could not be parsed correctly. Since I had no influence on the specification of the webdav_host_address, I helped myself by using prefix = urlparse(webdav_host_address).path (module urllib.parse), removing the prefix from the webdav_host_address and prefixing it again later to get and put calls.
python 3.11
webdav3 3.14.5
I can connect to the WebDAV server (NextCloud) and list the files as follows:
But when I try to download 'model.bin', I get the following error
The text was updated successfully, but these errors were encountered: