<?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 Re: AttributeError: module 'pyspark.dbutils' has no attribute 'fs' in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/attributeerror-module-pyspark-dbutils-has-no-attribute-fs/m-p/5043#M1573</link>
    <description>&lt;P&gt;Hello @Keval Shah​&amp;nbsp;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The import of dbutils is not explicitly required. (https://docs.databricks.com/dev-tools/databricks-utils.html#file-system-utility-dbutilsfs)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can use the steps below to copy the file (https://docs.databricks.com/dev-tools/databricks-utils.html#file-system-utility-dbutilsfs) &lt;/P&gt;&lt;P&gt;dbutils.fs.cp("/FileStore/old_file.txt", "/tmp/new/new_file.txt") to copy the file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I just listed dbutils.fs.ls("/mnt") and it works fine for a python notebook. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards,&lt;/P&gt;&lt;P&gt;Nandini&lt;/P&gt;</description>
    <pubDate>Fri, 28 Apr 2023 21:45:40 GMT</pubDate>
    <dc:creator>NandiniN</dc:creator>
    <dc:date>2023-04-28T21:45:40Z</dc:date>
    <item>
      <title>AttributeError: module 'pyspark.dbutils' has no attribute 'fs'</title>
      <link>https://community.databricks.com/t5/data-engineering/attributeerror-module-pyspark-dbutils-has-no-attribute-fs/m-p/5042#M1572</link>
      <description>&lt;P&gt;`AttributeError` when attempting to transfer files from `dbfs` filestore in DataBricks to a local directory.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt; import pyspark.dbutils as pdbutils
&amp;nbsp;
  pdbutils.fs.cp("/dbfs/Data/file1.csv", "/Users/Downloads/")
&amp;nbsp;
  Traceback (most recent call last):
&amp;nbsp;
   File "/databricks/python/lib/python3.9/site-packages/IPython/core/interactiveshell.py", line 3378, in run_code
&amp;nbsp;
    exec(code_obj, self.user_global_ns, self.user_ns)
&amp;nbsp;
   File "&amp;lt;command-1495140876495465&amp;gt;", line 4, in &amp;lt;module&amp;gt;
&amp;nbsp;
    pdbutils.fs.cp("/dbfs/Usage-Data/df_tx_0106_2022.csv", "/Users/keval/Downloads/")
&amp;nbsp;
  AttributeError: module 'pyspark.dbutils' has no attribute 'fs'&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 28 Apr 2023 17:50:47 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/attributeerror-module-pyspark-dbutils-has-no-attribute-fs/m-p/5042#M1572</guid>
      <dc:creator>kll</dc:creator>
      <dc:date>2023-04-28T17:50:47Z</dc:date>
    </item>
    <item>
      <title>Re: AttributeError: module 'pyspark.dbutils' has no attribute 'fs'</title>
      <link>https://community.databricks.com/t5/data-engineering/attributeerror-module-pyspark-dbutils-has-no-attribute-fs/m-p/5043#M1573</link>
      <description>&lt;P&gt;Hello @Keval Shah​&amp;nbsp;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The import of dbutils is not explicitly required. (https://docs.databricks.com/dev-tools/databricks-utils.html#file-system-utility-dbutilsfs)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can use the steps below to copy the file (https://docs.databricks.com/dev-tools/databricks-utils.html#file-system-utility-dbutilsfs) &lt;/P&gt;&lt;P&gt;dbutils.fs.cp("/FileStore/old_file.txt", "/tmp/new/new_file.txt") to copy the file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I just listed dbutils.fs.ls("/mnt") and it works fine for a python notebook. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards,&lt;/P&gt;&lt;P&gt;Nandini&lt;/P&gt;</description>
      <pubDate>Fri, 28 Apr 2023 21:45:40 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/attributeerror-module-pyspark-dbutils-has-no-attribute-fs/m-p/5043#M1573</guid>
      <dc:creator>NandiniN</dc:creator>
      <dc:date>2023-04-28T21:45:40Z</dc:date>
    </item>
    <item>
      <title>Re: AttributeError: module 'pyspark.dbutils' has no attribute 'fs'</title>
      <link>https://community.databricks.com/t5/data-engineering/attributeerror-module-pyspark-dbutils-has-no-attribute-fs/m-p/5044#M1574</link>
      <description>&lt;P&gt;Hi @Keval Shah​&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for posting your question in our community! We are happy to assist you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To help us provide you with the most accurate information, could you please take a moment to review the responses and select the one that best answers your question?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This will also help other community members who may have similar questions in the future. Thank you for your participation and let us know if you need any further assistance!&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 29 Apr 2023 07:22:19 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/attributeerror-module-pyspark-dbutils-has-no-attribute-fs/m-p/5044#M1574</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-04-29T07:22:19Z</dc:date>
    </item>
  </channel>
</rss>

