I am using the latest version of s3fs-0.5.2 and fsspec-0.9.0, when import s3fs, encountered the following error:
File "/User/.conda/envs/py376/lib/python3.7/site-packages/s3fs/__init__.py", line 1, in <module>
from .core import S3FileSystem, S3File
File "/User/.conda/envs/py376/lib/python3.7/site-packages/s3fs/core.py", line 11, in <module>
from fsspec.asyn import AsyncFileSystem, sync, sync_wrapper, maybe_sync
ImportError: cannot import name 'maybe_sync' from 'fsspec.asyn' (/User/.conda/envs/py376/lib/python3.7/site-packages/fsspec/asyn.py)
what is a working combination version of s3fs and fsspec?
CodePudding user response:
The latest version of s3fs and fsspec as of today is 2021.11.0. The latest version on conda-forge is 2021.10.1 . Since the change to calendar versioning this year, the two are always released together and the dependency pinned, so that this kind of problem won't occur in the future.
I believe for fsspec 0.9.0, you need s3fs 0.6.0 .