Description
When trying to use fsspec.generic.rsync to copy a remote s3 path to another s3 path a FileNotFoundError
is raised.
File "/home/ryan/micromamba/envs/testenv/lib/python3.11/site-packages/fsspec/generic.py", line 355, in _copy
return await fs._copy(path1, path2, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/ryan/micromamba/envs/testenv/lib/python3.11/site-packages/fsspec/asyn.py", line 405, in _copy
raise ex
File "/home/ryan/micromamba/envs/testenv/lib/python3.11/site-packages/fsspec/asyn.py", line 245, in _run_coro
return await asyncio.wait_for(coro, timeout=timeout), i
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/ryan/micromamba/envs/testenv/lib/python3.11/asyncio/tasks.py", line 452, in wait_for
return await fut
^^^^^^^^^
File "/home/ryan/micromamba/envs/testenv/lib/python3.11/site-packages/s3fs/core.py", line 1904, in _cp_file
info = await self._info(path1, bucket, key, version_id=vers)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/ryan/micromamba/envs/testenv/lib/python3.11/site-packages/s3fs/core.py", line 1355, in _info
out = self._ls_from_cache(fullpath)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/ryan/micromamba/envs/testenv/lib/python3.11/site-packages/fsspec/spec.py", line 374, in _ls_from_cache
raise FileNotFoundError(path)
FileNotFoundError: testbucket/rsynctest/test_file.txt
@martindurant Should this line
Line 1343 in a28863f
fullpath = "s3://".join((bucket, key))
? Making that change seems to fix things.Metadata
Metadata
Assignees
Labels
No labels