<?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: Databricks Python Import Bug in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/databricks-python-import-bug/m-p/4701#M1354</link>
    <description>&lt;P&gt;Hi, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can I run non-Databricks notebook files in a repo? &lt;/P&gt;&lt;P&gt;For example, a&amp;nbsp;.py file?&lt;/P&gt;&lt;P&gt;You can use any of the following:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Bundle and deploy as a library on the cluster.&lt;/LI&gt;&lt;LI&gt;Pip install the Git repository directly. This requires a credential in&amp;nbsp;&lt;A href="https://docs.databricks.com/security/secrets/secrets.html" alt="https://docs.databricks.com/security/secrets/secrets.html" target="_blank"&gt;secrets manager&lt;/A&gt;.&lt;/LI&gt;&lt;LI&gt;Use&amp;nbsp;&lt;/LI&gt;&lt;LI&gt;%run&lt;/LI&gt;&lt;LI&gt;&amp;nbsp;with inline code in a notebook.&lt;/LI&gt;&lt;LI&gt;Use a custom container image. See&amp;nbsp;&lt;A href="https://docs.databricks.com/clusters/custom-containers.html" alt="https://docs.databricks.com/clusters/custom-containers.html" target="_blank"&gt;Customize containers with Databricks Container Services&lt;/A&gt;.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;You can refer to: &lt;A href="https://docs.databricks.com/repos/limits.html" alt="https://docs.databricks.com/repos/limits.html" target="_blank"&gt;https://docs.databricks.com/repos/limits.html&lt;/A&gt; and &lt;A href="https://docs.databricks.com/repos/limits.html#non-notebook-files-files-in-repos" alt="https://docs.databricks.com/repos/limits.html#non-notebook-files-files-in-repos" target="_blank"&gt;https://docs.databricks.com/repos/limits.html#non-notebook-files-files-in-repos&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also, refer to the errors: &lt;A href="https://docs.databricks.com/repos/errors-troubleshooting.html" alt="https://docs.databricks.com/repos/errors-troubleshooting.html" target="_blank"&gt;https://docs.databricks.com/repos/errors-troubleshooting.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please let us know if this helps and let us know the errors. Also, please tag&amp;nbsp;&lt;A href="https://community.databricks.com/s/profile/0053f000000WWwvAAG" alt="https://community.databricks.com/s/profile/0053f000000WWwvAAG" target="_blank"&gt;@Debayan&lt;/A&gt;​&amp;nbsp;with your next comment so that I will get notified. Thank you!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 10 May 2023 08:30:11 GMT</pubDate>
    <dc:creator>Debayan</dc:creator>
    <dc:date>2023-05-10T08:30:11Z</dc:date>
    <item>
      <title>Databricks Python Import Bug</title>
      <link>https://community.databricks.com/t5/data-engineering/databricks-python-import-bug/m-p/4700#M1353</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am reaching to the community in order to shed some light into a Bug I have been encountering recently. The two setups are as follows:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SETUP-1 (WORKS):&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Python Notebook in Workspace FileSystem (this is Shared/folder/...)&lt;/LI&gt;&lt;LI&gt;Python custom wheel library in .whl installed into the cluster&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;SETUP-2 (DOES NOT WORK)&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Python Notebook in&lt;U&gt; Repos&lt;/U&gt;&lt;/LI&gt;&lt;LI&gt;Same wheel and cluster as SETUP-1&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Moreover SETUP-2 is able to improt some of the functions but not all of them. At first I thought it was an issue with the Wheel generation, but SETUP-1 works just fine and is able to improt everything.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;B&gt;This issue makes me think that there might be a difference into how Databricks manages filesystem or any other variables in Repos that I am not grasping. &lt;/B&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can someone indicate me what could be the issue here or any important difference when working with databricks Repos?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 08 May 2023 12:21:34 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/databricks-python-import-bug/m-p/4700#M1353</guid>
      <dc:creator>alvaro_databric</dc:creator>
      <dc:date>2023-05-08T12:21:34Z</dc:date>
    </item>
    <item>
      <title>Re: Databricks Python Import Bug</title>
      <link>https://community.databricks.com/t5/data-engineering/databricks-python-import-bug/m-p/4702#M1355</link>
      <description>&lt;P&gt;Hi @Alvaro Moure​&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope all is well! Just wanted to check in if you were able to resolve your issue and would you be happy to share the solution or mark an answer as best? Else please let us know if you need more help.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We'd love to hear from you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 19 May 2023 08:31:47 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/databricks-python-import-bug/m-p/4702#M1355</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-05-19T08:31:47Z</dc:date>
    </item>
    <item>
      <title>Re: Databricks Python Import Bug</title>
      <link>https://community.databricks.com/t5/data-engineering/databricks-python-import-bug/m-p/4701#M1354</link>
      <description>&lt;P&gt;Hi, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can I run non-Databricks notebook files in a repo? &lt;/P&gt;&lt;P&gt;For example, a&amp;nbsp;.py file?&lt;/P&gt;&lt;P&gt;You can use any of the following:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Bundle and deploy as a library on the cluster.&lt;/LI&gt;&lt;LI&gt;Pip install the Git repository directly. This requires a credential in&amp;nbsp;&lt;A href="https://docs.databricks.com/security/secrets/secrets.html" alt="https://docs.databricks.com/security/secrets/secrets.html" target="_blank"&gt;secrets manager&lt;/A&gt;.&lt;/LI&gt;&lt;LI&gt;Use&amp;nbsp;&lt;/LI&gt;&lt;LI&gt;%run&lt;/LI&gt;&lt;LI&gt;&amp;nbsp;with inline code in a notebook.&lt;/LI&gt;&lt;LI&gt;Use a custom container image. See&amp;nbsp;&lt;A href="https://docs.databricks.com/clusters/custom-containers.html" alt="https://docs.databricks.com/clusters/custom-containers.html" target="_blank"&gt;Customize containers with Databricks Container Services&lt;/A&gt;.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;You can refer to: &lt;A href="https://docs.databricks.com/repos/limits.html" alt="https://docs.databricks.com/repos/limits.html" target="_blank"&gt;https://docs.databricks.com/repos/limits.html&lt;/A&gt; and &lt;A href="https://docs.databricks.com/repos/limits.html#non-notebook-files-files-in-repos" alt="https://docs.databricks.com/repos/limits.html#non-notebook-files-files-in-repos" target="_blank"&gt;https://docs.databricks.com/repos/limits.html#non-notebook-files-files-in-repos&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also, refer to the errors: &lt;A href="https://docs.databricks.com/repos/errors-troubleshooting.html" alt="https://docs.databricks.com/repos/errors-troubleshooting.html" target="_blank"&gt;https://docs.databricks.com/repos/errors-troubleshooting.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please let us know if this helps and let us know the errors. Also, please tag&amp;nbsp;&lt;A href="https://community.databricks.com/s/profile/0053f000000WWwvAAG" alt="https://community.databricks.com/s/profile/0053f000000WWwvAAG" target="_blank"&gt;@Debayan&lt;/A&gt;​&amp;nbsp;with your next comment so that I will get notified. Thank you!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 10 May 2023 08:30:11 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/databricks-python-import-bug/m-p/4701#M1354</guid>
      <dc:creator>Debayan</dc:creator>
      <dc:date>2023-05-10T08:30:11Z</dc:date>
    </item>
    <item>
      <title>Re: Databricks Python Import Bug</title>
      <link>https://community.databricks.com/t5/data-engineering/databricks-python-import-bug/m-p/44997#M27765</link>
      <description>&lt;P&gt;Solution has comed with an update, as stated in&amp;nbsp;&lt;A href="https://docs.databricks.com/en/files/workspace-modules.html" target="_blank" rel="noopener"&gt;Work with Python and R modules | Databricks on AWS&lt;/A&gt;,&amp;nbsp;&lt;SPAN&gt;In Databricks Runtime 13.0 and above, directories added to the Python&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class=""&gt;sys.path&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;are automatically distributed to all executors in the cluster. In Databricks Runtime 12.2 LTS and below, libraries added to the&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class=""&gt;sys.path&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;must be explicitly installed on executors.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;This seems to have solved our strange import problem from Databricks Repos&lt;/P&gt;</description>
      <pubDate>Fri, 15 Sep 2023 10:37:36 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/databricks-python-import-bug/m-p/44997#M27765</guid>
      <dc:creator>alvaro_databric</dc:creator>
      <dc:date>2023-09-15T10:37:36Z</dc:date>
    </item>
  </channel>
</rss>

