<?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 Issue with Private PyPI Mirror Package Dependencies Installation in Get Started Discussions</title>
    <link>https://community.databricks.com/t5/get-started-discussions/issue-with-private-pypi-mirror-package-dependencies-installation/m-p/67030#M7708</link>
    <description>&lt;P&gt;I'm encountering an issue with the installation of Python packages from a &lt;A href="https://jfrog.com/artifactory/" target="_blank" rel="noopener"&gt;Private PyPI mirror&lt;/A&gt;, specifically when the package&amp;nbsp;contains dependencies and the installation is on Databricks clusters -&amp;nbsp;&lt;A href="https://docs.databricks.com/en/libraries/cluster-libraries.html" target="_blank" rel="noopener"&gt;Cluster libraries | Databricks on AWS&lt;/A&gt;. Initially, everything worked smoothly, with packages being installed and executed as expected - no dependencies. However, as my package evolved and a more complex version was deployed to Artifactory, which includes dependencies specified in the &lt;STRONG&gt;&lt;EM&gt;install_requires&lt;/EM&gt;&lt;/STRONG&gt; parameter within &lt;EM&gt;&lt;STRONG&gt;setup.py&amp;nbsp;&lt;/STRONG&gt;&lt;/EM&gt;of the package, the installation fails.&amp;nbsp;The package dependencies from Public &lt;A href="https://pypi.org/" target="_blank" rel="noopener"&gt;PyPi&lt;/A&gt; are not being resolved, resulting in errors like the following:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;ERROR: Could not find a version that satisfies the requirement package_x==1.2.3 (from versions: none).&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It seems that the installation process in the cluster might be using the parameter &lt;EM&gt;&lt;STRONG&gt;index-url &lt;/STRONG&gt;&lt;/EM&gt;instead of &lt;EM&gt;&lt;STRONG&gt;extra-index-url&lt;/STRONG&gt;&lt;/EM&gt;. Interestingly, in a notebook context -&amp;nbsp;&lt;A href="https://docs.databricks.com/en/libraries/notebooks-python-libraries.html" target="_blank" rel="noopener"&gt;Notebook-scoped Python libraries | Databricks on AWS&lt;/A&gt;, when installing the same package with &lt;STRONG&gt;&lt;EM&gt;extra-index-url&lt;/EM&gt;&lt;/STRONG&gt;, the installation proceeds without any issues.&lt;/P&gt;&lt;P&gt;This inconsistency is proving to be quite challenging, particularly as projects become more complex and reliant on external dependencies.&lt;/P&gt;&lt;P&gt;I'm reaching out to the community for any insights or assistance in resolving this matter. If anyone has encountered a similar issue or has suggestions for potential workarounds, I would greatly appreciate your input.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 23 Apr 2024 08:08:14 GMT</pubDate>
    <dc:creator>hugodscarvalho</dc:creator>
    <dc:date>2024-04-23T08:08:14Z</dc:date>
    <item>
      <title>Issue with Private PyPI Mirror Package Dependencies Installation</title>
      <link>https://community.databricks.com/t5/get-started-discussions/issue-with-private-pypi-mirror-package-dependencies-installation/m-p/67030#M7708</link>
      <description>&lt;P&gt;I'm encountering an issue with the installation of Python packages from a &lt;A href="https://jfrog.com/artifactory/" target="_blank" rel="noopener"&gt;Private PyPI mirror&lt;/A&gt;, specifically when the package&amp;nbsp;contains dependencies and the installation is on Databricks clusters -&amp;nbsp;&lt;A href="https://docs.databricks.com/en/libraries/cluster-libraries.html" target="_blank" rel="noopener"&gt;Cluster libraries | Databricks on AWS&lt;/A&gt;. Initially, everything worked smoothly, with packages being installed and executed as expected - no dependencies. However, as my package evolved and a more complex version was deployed to Artifactory, which includes dependencies specified in the &lt;STRONG&gt;&lt;EM&gt;install_requires&lt;/EM&gt;&lt;/STRONG&gt; parameter within &lt;EM&gt;&lt;STRONG&gt;setup.py&amp;nbsp;&lt;/STRONG&gt;&lt;/EM&gt;of the package, the installation fails.&amp;nbsp;The package dependencies from Public &lt;A href="https://pypi.org/" target="_blank" rel="noopener"&gt;PyPi&lt;/A&gt; are not being resolved, resulting in errors like the following:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;ERROR: Could not find a version that satisfies the requirement package_x==1.2.3 (from versions: none).&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It seems that the installation process in the cluster might be using the parameter &lt;EM&gt;&lt;STRONG&gt;index-url &lt;/STRONG&gt;&lt;/EM&gt;instead of &lt;EM&gt;&lt;STRONG&gt;extra-index-url&lt;/STRONG&gt;&lt;/EM&gt;. Interestingly, in a notebook context -&amp;nbsp;&lt;A href="https://docs.databricks.com/en/libraries/notebooks-python-libraries.html" target="_blank" rel="noopener"&gt;Notebook-scoped Python libraries | Databricks on AWS&lt;/A&gt;, when installing the same package with &lt;STRONG&gt;&lt;EM&gt;extra-index-url&lt;/EM&gt;&lt;/STRONG&gt;, the installation proceeds without any issues.&lt;/P&gt;&lt;P&gt;This inconsistency is proving to be quite challenging, particularly as projects become more complex and reliant on external dependencies.&lt;/P&gt;&lt;P&gt;I'm reaching out to the community for any insights or assistance in resolving this matter. If anyone has encountered a similar issue or has suggestions for potential workarounds, I would greatly appreciate your input.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 23 Apr 2024 08:08:14 GMT</pubDate>
      <guid>https://community.databricks.com/t5/get-started-discussions/issue-with-private-pypi-mirror-package-dependencies-installation/m-p/67030#M7708</guid>
      <dc:creator>hugodscarvalho</dc:creator>
      <dc:date>2024-04-23T08:08:14Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with Private PyPI Mirror Package Dependencies Installation</title>
      <link>https://community.databricks.com/t5/get-started-discussions/issue-with-private-pypi-mirror-package-dependencies-installation/m-p/68471#M7710</link>
      <description>&lt;P&gt;Hello &lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/9"&gt;@Retired_mod&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&lt;span class="lia-unicode-emoji" title=":white_heavy_check_mark:"&gt;✅&lt;/span&gt;Thank you for all the help and the multiple suggestions provided! I was able to successfully solve the issue based on the second option.&lt;/P&gt;&lt;P&gt;It turns out that our problem stemmed from an incorrectly configured JFrog Artifactory setup. Once we rectified this by utilizing a &lt;STRONG&gt;virtual repository&lt;/STRONG&gt; that &lt;STRONG&gt;combines both our local&lt;/STRONG&gt;&amp;nbsp;&lt;EM&gt;(private PyPI server for internal deployments)&lt;/EM&gt; and&lt;STRONG&gt; a remote&lt;/STRONG&gt; &lt;EM&gt;(proxy to public PyPI)&lt;/EM&gt; repository, our Databricks cluster installations became consistent, including the dependencies from public PyPI.&lt;/P&gt;&lt;P&gt;I really appreciate your support!&lt;/P&gt;</description>
      <pubDate>Tue, 07 May 2024 15:11:19 GMT</pubDate>
      <guid>https://community.databricks.com/t5/get-started-discussions/issue-with-private-pypi-mirror-package-dependencies-installation/m-p/68471#M7710</guid>
      <dc:creator>hugodscarvalho</dc:creator>
      <dc:date>2024-05-07T15:11:19Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with Private PyPI Mirror Package Dependencies Installation</title>
      <link>https://community.databricks.com/t5/get-started-discussions/issue-with-private-pypi-mirror-package-dependencies-installation/m-p/78435#M7711</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/98246"&gt;@hugodscarvalho&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;I am also at this point, where the transitive dependencies (available in jfrog) are not getting installed in my job cluster. Could you please elaborate a bit on what exactly needed to be changed in the JFrog setup for this to work. Would be a great help.&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;</description>
      <pubDate>Fri, 12 Jul 2024 05:06:17 GMT</pubDate>
      <guid>https://community.databricks.com/t5/get-started-discussions/issue-with-private-pypi-mirror-package-dependencies-installation/m-p/78435#M7711</guid>
      <dc:creator>Adiga</dc:creator>
      <dc:date>2024-07-12T05:06:17Z</dc:date>
    </item>
  </channel>
</rss>

