<?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: DLT - Importing Python Package in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/dlt-importing-python-package/m-p/82434#M36650</link>
    <description>&lt;P&gt;yes, I did, the pipeline would work for seconds and then fails with the same error "&lt;SPAN&gt;No module named 'eventlog_utils'". And that's why it's confusing because I tried this on another pipeline with different setup/functions and it works fine!&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 08 Aug 2024 17:16:50 GMT</pubDate>
    <dc:creator>YS1</dc:creator>
    <dc:date>2024-08-08T17:16:50Z</dc:date>
    <item>
      <title>DLT - Importing Python Package</title>
      <link>https://community.databricks.com/t5/data-engineering/dlt-importing-python-package/m-p/82290#M36598</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I'm creating a DLT pipeline where I read a Kafka stream, perform transformations using UDFs, and save the data in multiple tables. When I define the functions directly in the same notebook, the code works fine. However, if I move the code into a Python file and try to import it as a package, the pipeline fails with the following error:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="YS1_1-1723071739598.png" style="width: 400px;"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/10215i7F7F88C748E0985B/image-size/medium/is-moderation-mode/true?v=v2&amp;amp;px=400" role="button" title="YS1_1-1723071739598.png" alt="YS1_1-1723071739598.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I've tried renaming the files and changing their locations -although the pipeline and the package are in the same directory-&lt;/P&gt;&lt;P&gt;Despite these efforts, nothing worked. Here is how I'm trying to import the module:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="YS1_0-1723071683421.png" style="width: 400px;"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/10214iD005ED034C7440AE/image-size/medium/is-moderation-mode/true?v=v2&amp;amp;px=400" role="button" title="YS1_0-1723071683421.png" alt="YS1_0-1723071683421.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Any insights or solutions would be greatly appreciated!&lt;/P&gt;</description>
      <pubDate>Wed, 07 Aug 2024 23:05:34 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/dlt-importing-python-package/m-p/82290#M36598</guid>
      <dc:creator>YS1</dc:creator>
      <dc:date>2024-08-07T23:05:34Z</dc:date>
    </item>
    <item>
      <title>Re: DLT - Importing Python Package</title>
      <link>https://community.databricks.com/t5/data-engineering/dlt-importing-python-package/m-p/82381#M36629</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/83285"&gt;@YS1&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Have you added the python file in the Pipeline settings, in the list of source code?&amp;nbsp;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Slash_1-1723118449935.png" style="width: 400px;"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/10237i31FC787B1B5EEE7B/image-size/medium/is-moderation-mode/true?v=v2&amp;amp;px=400" role="button" title="Slash_1-1723118449935.png" alt="Slash_1-1723118449935.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 08 Aug 2024 12:01:11 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/dlt-importing-python-package/m-p/82381#M36629</guid>
      <dc:creator>szymon_dybczak</dc:creator>
      <dc:date>2024-08-08T12:01:11Z</dc:date>
    </item>
    <item>
      <title>Re: DLT - Importing Python Package</title>
      <link>https://community.databricks.com/t5/data-engineering/dlt-importing-python-package/m-p/82434#M36650</link>
      <description>&lt;P&gt;yes, I did, the pipeline would work for seconds and then fails with the same error "&lt;SPAN&gt;No module named 'eventlog_utils'". And that's why it's confusing because I tried this on another pipeline with different setup/functions and it works fine!&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 08 Aug 2024 17:16:50 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/dlt-importing-python-package/m-p/82434#M36650</guid>
      <dc:creator>YS1</dc:creator>
      <dc:date>2024-08-08T17:16:50Z</dc:date>
    </item>
  </channel>
</rss>

