question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

ImportError: cannot import name 'maybe_sync'

See original GitHub issue

Hey guys,

I have a python script using s3fs and I got an error when import this package. s3fs use fsspec and after a release 0.9.0 an error start to appear

Traceback (most recent call last):
  File "/tmp/my_script.py", line 4, in <module>
    import s3fs
  File "/usr/local/lib/python3.6/site-packages/s3fs/__init__.py", line 1, in <module>
    from .core import S3FileSystem, S3File
  File "/usr/local/lib/python3.6/site-packages/s3fs/core.py", line 12, in <module>
    from fsspec.asyn import AsyncFileSystem, sync, sync_wrapper, maybe_sync
ImportError: cannot import name 'maybe_sync'

To solve this issue I install an old version from fsspec

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:13 (7 by maintainers)

github_iconTop GitHub Comments

2reactions
arogozhnikovcommented, Nov 3, 2021

for anyone running into the same issue these days - for me it was resolved by manually updating both s3fs and fsspec to >= 2021.10

1reaction
CarlosSchmidt01commented, Apr 5, 2021

No problem, it just for your knowledge and for help any person who have the same issue

Read more comments on GitHub >

github_iconTop Results From Across the Web

ImportError: cannot import name 'maybe_sync' · Issue #597
Hey guys, I have a python script using s3fs and I got an error when import this package. s3fs use fsspec and after...
Read more >
apache spark - cannot import s3fs in pyspark - Stack Overflow
An error was encountered : cannot import name 'maybe_sync' from 'fsspec.asyn' (/usr/local/lib/python3.7/site-packages/fsspec/asyn.py) ...
Read more >
Error importing pip package s3fs - Databricks Community
A job recently began failing with the following error when a python notebook imports the pip package s3fs. ImportError: cannot import name 'maybe_sync'...
Read more >
Isaac tutorial 'jupyter_notebook' cannot import name ...
I have followed the documentation to install dependencies using the scrpit in engine/build/scrpits/install_dependencies.sh.
Read more >
mbateman/github-issues · Datasets at Hugging Face
Describe the bug Cannot seem to import datasets when running ... sync, sync_wrapper, maybe_sync ImportError: cannot import name 'maybe_sync' from ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found