<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Error importing pip package s3fs in Machine Learning</title>
    <link>https://community.databricks.com/t5/machine-learning/error-importing-pip-package-s3fs/m-p/23826#M1347</link>
    <description>&lt;P&gt;A job recently began failing with the following error when a python notebook imports the pip package s3fs.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;ImportError: cannot import name 'maybe_sync' from 'fsspec.asyn' (/databricks/python/lib/python3.8/site-packages/fsspec/asyn.py)
&amp;nbsp;
ImportError Traceback (most recent call last)
&amp;nbsp;
in
&amp;nbsp;
11 import time
&amp;nbsp;
12 from pathlib import Path
&amp;nbsp;
---&amp;gt; 13 import s3fs
&amp;nbsp;
14
&amp;nbsp;
15 pd.options.display.max_rows = 1000
&amp;nbsp;
&amp;nbsp;
&amp;nbsp;
/databricks/python/lib/python3.8/site-packages/s3fs/__init__.py in
&amp;nbsp;
----&amp;gt; 1 from .core import S3FileSystem, S3File
&amp;nbsp;
2 from .mapping import S3Map
&amp;nbsp;
3
&amp;nbsp;
4 from ._version import get_versions
&amp;nbsp;
5
&amp;nbsp;
&amp;nbsp;
&amp;nbsp;
/databricks/python/lib/python3.8/site-packages/s3fs/core.py in
&amp;nbsp;
9 from fsspec.spec import AbstractBufferedFile
&amp;nbsp;
10 from fsspec.utils import infer_storage_options, tokenize
&amp;nbsp;
---&amp;gt; 11 from fsspec.asyn import AsyncFileSystem, sync, sync_wrapper, maybe_sync
&amp;nbsp;
12
&amp;nbsp;
13 import aiobotocore&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 16 Jun 2021 17:11:18 GMT</pubDate>
    <dc:creator>User16753724663</dc:creator>
    <dc:date>2021-06-16T17:11:18Z</dc:date>
    <item>
      <title>Error importing pip package s3fs</title>
      <link>https://community.databricks.com/t5/machine-learning/error-importing-pip-package-s3fs/m-p/23826#M1347</link>
      <description>&lt;P&gt;A job recently began failing with the following error when a python notebook imports the pip package s3fs.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;ImportError: cannot import name 'maybe_sync' from 'fsspec.asyn' (/databricks/python/lib/python3.8/site-packages/fsspec/asyn.py)
&amp;nbsp;
ImportError Traceback (most recent call last)
&amp;nbsp;
in
&amp;nbsp;
11 import time
&amp;nbsp;
12 from pathlib import Path
&amp;nbsp;
---&amp;gt; 13 import s3fs
&amp;nbsp;
14
&amp;nbsp;
15 pd.options.display.max_rows = 1000
&amp;nbsp;
&amp;nbsp;
&amp;nbsp;
/databricks/python/lib/python3.8/site-packages/s3fs/__init__.py in
&amp;nbsp;
----&amp;gt; 1 from .core import S3FileSystem, S3File
&amp;nbsp;
2 from .mapping import S3Map
&amp;nbsp;
3
&amp;nbsp;
4 from ._version import get_versions
&amp;nbsp;
5
&amp;nbsp;
&amp;nbsp;
&amp;nbsp;
/databricks/python/lib/python3.8/site-packages/s3fs/core.py in
&amp;nbsp;
9 from fsspec.spec import AbstractBufferedFile
&amp;nbsp;
10 from fsspec.utils import infer_storage_options, tokenize
&amp;nbsp;
---&amp;gt; 11 from fsspec.asyn import AsyncFileSystem, sync, sync_wrapper, maybe_sync
&amp;nbsp;
12
&amp;nbsp;
13 import aiobotocore&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 16 Jun 2021 17:11:18 GMT</pubDate>
      <guid>https://community.databricks.com/t5/machine-learning/error-importing-pip-package-s3fs/m-p/23826#M1347</guid>
      <dc:creator>User16753724663</dc:creator>
      <dc:date>2021-06-16T17:11:18Z</dc:date>
    </item>
    <item>
      <title>Re: Error importing pip package s3fs</title>
      <link>https://community.databricks.com/t5/machine-learning/error-importing-pip-package-s3fs/m-p/23827#M1348</link>
      <description>&lt;P&gt;While checking the init script is installing the s3fs version 0.5.2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This version has issues at the moment from the pypi. I have tested version 0.6.0 that works fine.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; please change your requirement.txt file with a newer version of s3fs. Below is the path where the requirement.txt is residing&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;/dbfs/scripts/oce/requirements.txt&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After changing the version to 0.6.0, we will no longer get the import error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you would like to try installing manually the pypi library below command will help you :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;pip install s3fs==0.6.0&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 16 Jun 2021 17:12:23 GMT</pubDate>
      <guid>https://community.databricks.com/t5/machine-learning/error-importing-pip-package-s3fs/m-p/23827#M1348</guid>
      <dc:creator>User16753724663</dc:creator>
      <dc:date>2021-06-16T17:12:23Z</dc:date>
    </item>
  </channel>
</rss>

