<?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: How to deploy a python script with dependencies by dbx? in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/how-to-deploy-a-python-script-with-dependencies-by-dbx/m-p/35062#M25747</link>
    <description>&lt;P&gt;Hi @Di Lin​&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>Wed, 07 Sep 2022 12:57:28 GMT</pubDate>
    <dc:creator>Vidula</dc:creator>
    <dc:date>2022-09-07T12:57:28Z</dc:date>
    <item>
      <title>How to deploy a python script with dependencies by dbx?</title>
      <link>https://community.databricks.com/t5/data-engineering/how-to-deploy-a-python-script-with-dependencies-by-dbx/m-p/35059#M25744</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm quite new here. I'm trying to perform a deployment of python file with dbx command. The file contains libraries to be installed. How may I deploy the file (together with its dependencies) to databricks?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here are the commands I currently run:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;`dbx deploy --job=Sample-Training-Job-File --no-rebuild`&lt;/P&gt;&lt;P&gt;`dbx launch --job=Sample-Training-Job-File --trace`&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And my `Sample-Training-Job-File` is specified in the `depployment.yml` as follows. This is a databricks in Azure.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;```&lt;/P&gt;&lt;P&gt;environments:&lt;/P&gt;&lt;P&gt;  default:&lt;/P&gt;&lt;P&gt;    strict_path_adjustment_policy: true&lt;/P&gt;&lt;P&gt;    jobs:&lt;/P&gt;&lt;P&gt;      - name: "Sample-Training-Job-File"&lt;/P&gt;&lt;P&gt;        new_cluster:&lt;/P&gt;&lt;P&gt;          spark_version: "10.4.x-scala2.12"&lt;/P&gt;&lt;P&gt;          num_workers: 1&lt;/P&gt;&lt;P&gt;          node_type_id: "Standard_DS3_v2"&lt;/P&gt;&lt;P&gt;        spark_python_task:&lt;/P&gt;&lt;P&gt;              python_file: "file://sample/training_file.py"&lt;/P&gt;&lt;P&gt;```&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you. &lt;/P&gt;</description>
      <pubDate>Tue, 09 Aug 2022 02:48:05 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/how-to-deploy-a-python-script-with-dependencies-by-dbx/m-p/35059#M25744</guid>
      <dc:creator>dslin</dc:creator>
      <dc:date>2022-08-09T02:48:05Z</dc:date>
    </item>
    <item>
      <title>Re: How to deploy a python script with dependencies by dbx?</title>
      <link>https://community.databricks.com/t5/data-engineering/how-to-deploy-a-python-script-with-dependencies-by-dbx/m-p/35060#M25745</link>
      <description>&lt;P&gt;@Di Lin​&amp;nbsp;are you facing any errors while using this code?&lt;/P&gt;</description>
      <pubDate>Tue, 09 Aug 2022 15:30:23 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/how-to-deploy-a-python-script-with-dependencies-by-dbx/m-p/35060#M25745</guid>
      <dc:creator>Prabakar</dc:creator>
      <dc:date>2022-08-09T15:30:23Z</dc:date>
    </item>
    <item>
      <title>Re: How to deploy a python script with dependencies by dbx?</title>
      <link>https://community.databricks.com/t5/data-engineering/how-to-deploy-a-python-script-with-dependencies-by-dbx/m-p/35061#M25746</link>
      <description>Hi Prabakar,&lt;BR /&gt;Yes, I would have import error if I deploy the code this way. Because the packages (e.g. mlflow, sklearn) are not installed.</description>
      <pubDate>Tue, 09 Aug 2022 16:40:29 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/how-to-deploy-a-python-script-with-dependencies-by-dbx/m-p/35061#M25746</guid>
      <dc:creator>dslin</dc:creator>
      <dc:date>2022-08-09T16:40:29Z</dc:date>
    </item>
    <item>
      <title>Re: How to deploy a python script with dependencies by dbx?</title>
      <link>https://community.databricks.com/t5/data-engineering/how-to-deploy-a-python-script-with-dependencies-by-dbx/m-p/35062#M25747</link>
      <description>&lt;P&gt;Hi @Di Lin​&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>Wed, 07 Sep 2022 12:57:28 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/how-to-deploy-a-python-script-with-dependencies-by-dbx/m-p/35062#M25747</guid>
      <dc:creator>Vidula</dc:creator>
      <dc:date>2022-09-07T12:57:28Z</dc:date>
    </item>
  </channel>
</rss>

