<?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 Serverless: Package import fails from notebook in subfolder after wheel installation in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/databricks-serverless-package-import-fails-from-notebook-in/m-p/122688#M46838</link>
    <description>I have a Python package installed via wheel file in a Databricks serverless environment. The package imports work fine when my notebook is in the root directory, but fail when the notebook is in a subfolder. How can I fix this? src/ ├── datalake_utils/ │ ├── __init__.py │ └── utils.py ├── main.py # This file can import datalake_utils &lt;span class="lia-unicode-emoji" title=":white_heavy_check_mark:"&gt;✅&lt;/span&gt; └── relayevents/ └── relayevents.py # This notebook can't import datalake_utils &lt;span class="lia-unicode-emoji" title=":cross_mark:"&gt;❌&lt;/span&gt; Here is how i install it: %pip install -r /path/to/requirements.txt # If notebook is in src/ from datalake_utils import utils as ut # &lt;span class="lia-unicode-emoji" title=":white_heavy_check_mark:"&gt;✅&lt;/span&gt; Works fine # If notebook is in src/relayevents/ from datalake_utils import utils as ut # &lt;span class="lia-unicode-emoji" title=":cross_mark:"&gt;❌&lt;/span&gt; ModuleNotFoundError ## Environment Databricks Serverless Python package installed via wheel file Package is properly installed (confirmed via pip list)</description>
    <pubDate>Tue, 24 Jun 2025 13:54:38 GMT</pubDate>
    <dc:creator>lezwon</dc:creator>
    <dc:date>2025-06-24T13:54:38Z</dc:date>
    <item>
      <title>Databricks Serverless: Package import fails from notebook in subfolder after wheel installation</title>
      <link>https://community.databricks.com/t5/data-engineering/databricks-serverless-package-import-fails-from-notebook-in/m-p/122688#M46838</link>
      <description>I have a Python package installed via wheel file in a Databricks serverless environment. The package imports work fine when my notebook is in the root directory, but fail when the notebook is in a subfolder. How can I fix this? src/ ├── datalake_utils/ │ ├── __init__.py │ └── utils.py ├── main.py # This file can import datalake_utils &lt;span class="lia-unicode-emoji" title=":white_heavy_check_mark:"&gt;✅&lt;/span&gt; └── relayevents/ └── relayevents.py # This notebook can't import datalake_utils &lt;span class="lia-unicode-emoji" title=":cross_mark:"&gt;❌&lt;/span&gt; Here is how i install it: %pip install -r /path/to/requirements.txt # If notebook is in src/ from datalake_utils import utils as ut # &lt;span class="lia-unicode-emoji" title=":white_heavy_check_mark:"&gt;✅&lt;/span&gt; Works fine # If notebook is in src/relayevents/ from datalake_utils import utils as ut # &lt;span class="lia-unicode-emoji" title=":cross_mark:"&gt;❌&lt;/span&gt; ModuleNotFoundError ## Environment Databricks Serverless Python package installed via wheel file Package is properly installed (confirmed via pip list)</description>
      <pubDate>Tue, 24 Jun 2025 13:54:38 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/databricks-serverless-package-import-fails-from-notebook-in/m-p/122688#M46838</guid>
      <dc:creator>lezwon</dc:creator>
      <dc:date>2025-06-24T13:54:38Z</dc:date>
    </item>
    <item>
      <title>Re: Databricks Serverless: Package import fails from notebook in subfolder after wheel installation</title>
      <link>https://community.databricks.com/t5/data-engineering/databricks-serverless-package-import-fails-from-notebook-in/m-p/122768#M46862</link>
      <description>&lt;P&gt;src/&lt;BR /&gt;├── datalake_utils/&lt;BR /&gt;│ ├── __init__.py&lt;BR /&gt;│ └── utils.py&lt;BR /&gt;├── main.py # This file can import datalake_utils &lt;span class="lia-unicode-emoji" title=":white_heavy_check_mark:"&gt;✅&lt;/span&gt;&lt;BR /&gt;└── relayevents/&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;└── relayevents.py # This notebook can't import datalake_utils &lt;span class="lia-unicode-emoji" title=":cross_mark:"&gt;❌&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;# If notebook is in src/&lt;BR /&gt;from datalake_utils import utils as ut # &lt;span class="lia-unicode-emoji" title=":white_heavy_check_mark:"&gt;✅&lt;/span&gt; Works fine&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;# If notebook is in src/relayevents/&lt;BR /&gt;from datalake_utils import utils as ut # &lt;span class="lia-unicode-emoji" title=":cross_mark:"&gt;❌&lt;/span&gt; ModuleNotFoundError&lt;/P&gt;</description>
      <pubDate>Wed, 25 Jun 2025 07:02:40 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/databricks-serverless-package-import-fails-from-notebook-in/m-p/122768#M46862</guid>
      <dc:creator>lezwon</dc:creator>
      <dc:date>2025-06-25T07:02:40Z</dc:date>
    </item>
    <item>
      <title>Re: Databricks Serverless: Package import fails from notebook in subfolder after wheel installation</title>
      <link>https://community.databricks.com/t5/data-engineering/databricks-serverless-package-import-fails-from-notebook-in/m-p/122777#M46865</link>
      <description>&lt;P&gt;&lt;SPAN&gt;It appears that there is a pre-installed package called datalake_utils available within Databricks. I had to rename my package to something else, and it worked like a charm.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 25 Jun 2025 08:20:16 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/databricks-serverless-package-import-fails-from-notebook-in/m-p/122777#M46865</guid>
      <dc:creator>lezwon</dc:creator>
      <dc:date>2025-06-25T08:20:16Z</dc:date>
    </item>
  </channel>
</rss>

