<?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: Unable to open files with python, but filesystem shows files exist in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/unable-to-open-files-with-python-but-filesystem-shows-files/m-p/13124#M7843</link>
    <description>&lt;P&gt;Yep this was it. I found the solution yesterday, and tried to respond, but it didn't post on my phone. I should move files to &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;mnt/ .....&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Instead of &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;/dbfs/mnt/....&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 18 Oct 2021 11:08:40 GMT</pubDate>
    <dc:creator>snoeprol</dc:creator>
    <dc:date>2021-10-18T11:08:40Z</dc:date>
    <item>
      <title>Unable to open files with python, but filesystem shows files exist</title>
      <link>https://community.databricks.com/t5/data-engineering/unable-to-open-files-with-python-but-filesystem-shows-files/m-p/13120#M7839</link>
      <description>&lt;P&gt;Dear community,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have the following problem:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;%fs mv '/FileStore/Tree_point_classification-1.dlpk'  '/dbfs/mnt/group22/Tree_point_classification-1.dlpk'&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have uploaded a file of a ML-model and have transferred it to the directory with &lt;/P&gt;&lt;P&gt;When I now check for the file I get:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;%fs ls '/dbfs/mnt/group22/'
&amp;nbsp;
path	name	size
dbfs:/dbfs/mnt/group22/1_2_with_color.las	1_2_with_color.las	36439
dbfs:/dbfs/mnt/group22/Tree_point_classification-1.dlpk	Tree_point_classification-1.dlpk	14517532
dbfs:/dbfs/mnt/group22/out.laz	out.laz	39092572&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Meaning the file is there. But now whenever I try&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;with open('/dbfs/mnt/group22/Tree_point_classification-1.dlpk') as f:
                  pass&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;it gives me a FileNotFoundException. Why can the filesystem access the file but my Python interpreter can not?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 17 Oct 2021 12:25:45 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/unable-to-open-files-with-python-but-filesystem-shows-files/m-p/13120#M7839</guid>
      <dc:creator>snoeprol</dc:creator>
      <dc:date>2021-10-17T12:25:45Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to open files with python, but filesystem shows files exist</title>
      <link>https://community.databricks.com/t5/data-engineering/unable-to-open-files-with-python-but-filesystem-shows-files/m-p/13122#M7841</link>
      <description>&lt;P&gt;your code is correct.  Things that come to mind are:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;typo in the filename?&lt;/LI&gt;&lt;LI&gt;not enough permissions on the mount to open the file&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Can you check this outside of Databricks, to see if the file is actually there, with that name AND correct permissions?&lt;/P&gt;</description>
      <pubDate>Mon, 18 Oct 2021 08:11:46 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/unable-to-open-files-with-python-but-filesystem-shows-files/m-p/13122#M7841</guid>
      <dc:creator>-werners-</dc:creator>
      <dc:date>2021-10-18T08:11:46Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to open files with python, but filesystem shows files exist</title>
      <link>https://community.databricks.com/t5/data-engineering/unable-to-open-files-with-python-but-filesystem-shows-files/m-p/13123#M7842</link>
      <description>&lt;P&gt;There is dbfs:/dbfs/ displayed maybe file is in /dbfs/dbfs directory? Please check it and try to open with open('/dbfs/dbfs. You can also use "data" from left menu to check what is in dbfs file system more easily.&lt;/P&gt;</description>
      <pubDate>Mon, 18 Oct 2021 10:38:36 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/unable-to-open-files-with-python-but-filesystem-shows-files/m-p/13123#M7842</guid>
      <dc:creator>Hubert-Dudek</dc:creator>
      <dc:date>2021-10-18T10:38:36Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to open files with python, but filesystem shows files exist</title>
      <link>https://community.databricks.com/t5/data-engineering/unable-to-open-files-with-python-but-filesystem-shows-files/m-p/13124#M7843</link>
      <description>&lt;P&gt;Yep this was it. I found the solution yesterday, and tried to respond, but it didn't post on my phone. I should move files to &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;mnt/ .....&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Instead of &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;/dbfs/mnt/....&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 18 Oct 2021 11:08:40 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/unable-to-open-files-with-python-but-filesystem-shows-files/m-p/13124#M7843</guid>
      <dc:creator>snoeprol</dc:creator>
      <dc:date>2021-10-18T11:08:40Z</dc:date>
    </item>
  </channel>
</rss>

