<?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 # Databricks notebook source throws FileNotFoundError: [Errno 2] No such file with PyCharm plugin in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/databricks-notebook-source-throws-filenotfounderror-errno-2-no/m-p/92405#M38427</link>
    <description>&lt;P&gt;I started using Databricks plugin in Pycharm.&lt;BR /&gt;If I have first line in my code:&lt;/P&gt;&lt;LI-CODE lang="python"&gt;# Databricks notebook source
...&lt;/LI-CODE&gt;&lt;P&gt;Running such a notebook with a plugin on cluster fails with the message:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;FileNotFoundError: [Errno 2] No such file or directory: '/Workspace/Users/&amp;lt;user&amp;gt;/.ide/databricks-Python-e6507fa0/project_name/deployment/model_deployment/notebooks/Test.py'&lt;/LI-CODE&gt;&lt;P&gt;I checked the directory, the file exists.&lt;BR /&gt;Removing:&lt;/P&gt;&lt;DIV&gt;&lt;PRE&gt;&lt;SPAN&gt;# Databricks notebook source&lt;/SPAN&gt;&lt;/PRE&gt;&lt;/DIV&gt;&lt;P&gt;&lt;SPAN&gt;Test.py runs as expected.&lt;BR /&gt;Any help would be appreciated.&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 01 Oct 2024 08:58:20 GMT</pubDate>
    <dc:creator>aleknandrius</dc:creator>
    <dc:date>2024-10-01T08:58:20Z</dc:date>
    <item>
      <title># Databricks notebook source throws FileNotFoundError: [Errno 2] No such file with PyCharm plugin</title>
      <link>https://community.databricks.com/t5/data-engineering/databricks-notebook-source-throws-filenotfounderror-errno-2-no/m-p/92405#M38427</link>
      <description>&lt;P&gt;I started using Databricks plugin in Pycharm.&lt;BR /&gt;If I have first line in my code:&lt;/P&gt;&lt;LI-CODE lang="python"&gt;# Databricks notebook source
...&lt;/LI-CODE&gt;&lt;P&gt;Running such a notebook with a plugin on cluster fails with the message:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;FileNotFoundError: [Errno 2] No such file or directory: '/Workspace/Users/&amp;lt;user&amp;gt;/.ide/databricks-Python-e6507fa0/project_name/deployment/model_deployment/notebooks/Test.py'&lt;/LI-CODE&gt;&lt;P&gt;I checked the directory, the file exists.&lt;BR /&gt;Removing:&lt;/P&gt;&lt;DIV&gt;&lt;PRE&gt;&lt;SPAN&gt;# Databricks notebook source&lt;/SPAN&gt;&lt;/PRE&gt;&lt;/DIV&gt;&lt;P&gt;&lt;SPAN&gt;Test.py runs as expected.&lt;BR /&gt;Any help would be appreciated.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 01 Oct 2024 08:58:20 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/databricks-notebook-source-throws-filenotfounderror-errno-2-no/m-p/92405#M38427</guid>
      <dc:creator>aleknandrius</dc:creator>
      <dc:date>2024-10-01T08:58:20Z</dc:date>
    </item>
    <item>
      <title>Re: # Databricks notebook source throws FileNotFoundError: [Errno 2] No such file with PyCharm plugi</title>
      <link>https://community.databricks.com/t5/data-engineering/databricks-notebook-source-throws-filenotfounderror-errno-2-no/m-p/92507#M38455</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/124010"&gt;@aleknandrius&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;How are you doing today?&lt;/P&gt;&lt;P&gt;As per my understanding,&amp;nbsp;It seems that the # Databricks notebook source line is causing confusion when running your PyCharm code on Databricks. This line is usually added to identify notebook cells, but in a Python file, it might be misinterpreted by the environment. Consider removing the # Databricks notebook source line when running Python scripts through PyCharm on a cluster, as it’s only necessary when running inside a Databricks notebook. Another option is to ensure that the file is treated purely as a script rather than a notebook when running it in this environment. You might also want to double-check the Databricks plugin configuration in PyCharm to ensure it is set up correctly for running standalone Python scripts.&lt;/P&gt;&lt;P&gt;Please give&amp;nbsp; a try and let me know for any queries.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Brahma&lt;/P&gt;</description>
      <pubDate>Wed, 02 Oct 2024 03:55:20 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/databricks-notebook-source-throws-filenotfounderror-errno-2-no/m-p/92507#M38455</guid>
      <dc:creator>Brahmareddy</dc:creator>
      <dc:date>2024-10-02T03:55:20Z</dc:date>
    </item>
  </channel>
</rss>

