<?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 ModuleNotFoundError or Permission denied are occurring when running Job with Git and All purpose in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/modulenotfounderror-or-permission-denied-are-occurring-when/m-p/120328#M46139</link>
    <description>&lt;P&gt;"ModuleNotFoundError" or "Permission denied" are occurring when running Jobs with Git provider and All purpose clusters.&lt;/P&gt;&lt;P&gt;Which one occurs depends on the workspace, but it is reproducible.&lt;/P&gt;&lt;P&gt;Is that no longer recommended?&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Yuki_1-1748354429378.png" style="width: 585px;"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/17154i6BD9736184337F6E/image-dimensions/585x133?v=v2" width="585" height="133" role="button" title="Yuki_1-1748354429378.png" alt="Yuki_1-1748354429378.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Yuki_2-1748354836276.png" style="width: 597px;"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/17155i896AE66BAC25958F/image-dimensions/597x163?v=v2" width="597" height="163" role="button" title="Yuki_2-1748354836276.png" alt="Yuki_2-1748354836276.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;I can run it by serverless cluster.&lt;/LI&gt;&lt;LI&gt;I can get the notebook from github, but I can't get modules well.&lt;/LI&gt;&lt;LI&gt;I can run it when I'm using workspace notebooks.&lt;/LI&gt;&lt;LI&gt;Cluster Details&lt;UL&gt;&lt;LI&gt;AWS&lt;/LI&gt;&lt;LI&gt;15.4 LTS&lt;/LI&gt;&lt;LI&gt;Dedicated access mode / Using Group&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;LI&gt;Job Details&lt;UL&gt;&lt;LI&gt;"Run as" is using personal account&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;/UL&gt;</description>
    <pubDate>Tue, 27 May 2025 14:08:26 GMT</pubDate>
    <dc:creator>Yuki</dc:creator>
    <dc:date>2025-05-27T14:08:26Z</dc:date>
    <item>
      <title>ModuleNotFoundError or Permission denied are occurring when running Job with Git and All purpose</title>
      <link>https://community.databricks.com/t5/data-engineering/modulenotfounderror-or-permission-denied-are-occurring-when/m-p/120328#M46139</link>
      <description>&lt;P&gt;"ModuleNotFoundError" or "Permission denied" are occurring when running Jobs with Git provider and All purpose clusters.&lt;/P&gt;&lt;P&gt;Which one occurs depends on the workspace, but it is reproducible.&lt;/P&gt;&lt;P&gt;Is that no longer recommended?&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Yuki_1-1748354429378.png" style="width: 585px;"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/17154i6BD9736184337F6E/image-dimensions/585x133?v=v2" width="585" height="133" role="button" title="Yuki_1-1748354429378.png" alt="Yuki_1-1748354429378.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Yuki_2-1748354836276.png" style="width: 597px;"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/17155i896AE66BAC25958F/image-dimensions/597x163?v=v2" width="597" height="163" role="button" title="Yuki_2-1748354836276.png" alt="Yuki_2-1748354836276.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;I can run it by serverless cluster.&lt;/LI&gt;&lt;LI&gt;I can get the notebook from github, but I can't get modules well.&lt;/LI&gt;&lt;LI&gt;I can run it when I'm using workspace notebooks.&lt;/LI&gt;&lt;LI&gt;Cluster Details&lt;UL&gt;&lt;LI&gt;AWS&lt;/LI&gt;&lt;LI&gt;15.4 LTS&lt;/LI&gt;&lt;LI&gt;Dedicated access mode / Using Group&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;LI&gt;Job Details&lt;UL&gt;&lt;LI&gt;"Run as" is using personal account&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;/UL&gt;</description>
      <pubDate>Tue, 27 May 2025 14:08:26 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/modulenotfounderror-or-permission-denied-are-occurring-when/m-p/120328#M46139</guid>
      <dc:creator>Yuki</dc:creator>
      <dc:date>2025-05-27T14:08:26Z</dc:date>
    </item>
    <item>
      <title>Re: ModuleNotFoundError or Permission denied are occurring when running Job with Git and All purpose</title>
      <link>https://community.databricks.com/t5/data-engineering/modulenotfounderror-or-permission-denied-are-occurring-when/m-p/120719#M46241</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/93088"&gt;@Yuki&lt;/a&gt;, these errors often stem from how Git provider integration behaves with All-Purpose clusters in Dedicated access mode. "Permission denied" usually means the Git credentials (like a personal access token) aren’t properly inherited by the job, unlike Serverless clusters, which handle this more smoothly.&lt;/P&gt;&lt;P&gt;"ModuleNotFoundError" happens when the cluster doesn't recognize the module path from the Git folder. This often requires manually updating sys.path or using absolute imports. To resolve:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Ensure your Git credentials are correctly set with proper scope.&lt;/LI&gt;&lt;LI&gt;Add the repo root to sys.path in your notebook.&lt;/LI&gt;&lt;/UL&gt;</description>
      <pubDate>Mon, 02 Jun 2025 13:52:38 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/modulenotfounderror-or-permission-denied-are-occurring-when/m-p/120719#M46241</guid>
      <dc:creator>Renu_</dc:creator>
      <dc:date>2025-06-02T13:52:38Z</dc:date>
    </item>
    <item>
      <title>Re: ModuleNotFoundError or Permission denied are occurring when running Job with Git and All purpose</title>
      <link>https://community.databricks.com/t5/data-engineering/modulenotfounderror-or-permission-denied-are-occurring-when/m-p/120776#M46246</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/151751"&gt;@Renu_&lt;/a&gt;&amp;nbsp;,&lt;BR /&gt;Thank you so much for your advice. I will try to both patterns.&lt;BR /&gt;Regards,&lt;/P&gt;</description>
      <pubDate>Tue, 03 Jun 2025 03:08:35 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/modulenotfounderror-or-permission-denied-are-occurring-when/m-p/120776#M46246</guid>
      <dc:creator>Yuki</dc:creator>
      <dc:date>2025-06-03T03:08:35Z</dc:date>
    </item>
  </channel>
</rss>

