<?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: Cannot install TA-LIB via cluster libraries in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/cannot-install-ta-lib-via-cluster-libraries/m-p/21428#M14602</link>
    <description>&lt;P&gt;Hi Vivian,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the quick reply.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I install it manually using the notebook it shows up in pip-list but if I detach and re-attach it goes away.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I believe it does require other packages however we are already installing them though the cluster library I believe. If it needed a package that prevented the wheel from installing we would see an error right?&lt;/P&gt;</description>
    <pubDate>Mon, 21 Nov 2022 18:49:11 GMT</pubDate>
    <dc:creator>Kash</dc:creator>
    <dc:date>2022-11-21T18:49:11Z</dc:date>
    <item>
      <title>Cannot install TA-LIB via cluster libraries</title>
      <link>https://community.databricks.com/t5/data-engineering/cannot-install-ta-lib-via-cluster-libraries/m-p/21424#M14598</link>
      <description>&lt;P&gt;Hi there,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I can't seem to find a way to install Ta-lib on a databricks server. I can manually install it in the notebook using the code below but if we detach the notebook then I have to install it again. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please let me know if you've found a fix for this.&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;K&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;%sh
wget &lt;A href="http://phoenixnap.dl.sourceforge.net/project/ta-lib/ta-lib/0.4.0/ta-lib-0.4.0-src.tar.gz" target="test_blank"&gt;http://phoenixnap.dl.sourceforge.net/project/ta-lib/ta-lib/0.4.0/ta-lib-0.4.0-src.tar.gz&lt;/A&gt; \
  &amp;amp;&amp;amp; sudo tar -xzf ta-lib-0.4.0-src.tar.gz \
  &amp;amp;&amp;amp; sudo rm ta-lib-0.4.0-src.tar.gz \
  &amp;amp;&amp;amp; cd ta-lib/ \
  &amp;amp;&amp;amp; sudo ./configure --prefix=/usr \
  &amp;amp;&amp;amp; sudo make \
  &amp;amp;&amp;amp; sudo make install \
  &amp;amp;&amp;amp; cd ~ \
  &amp;amp;&amp;amp; sudo rm -rf ta-lib/ \
  &amp;amp;&amp;amp; pip install ta-lib&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 21 Nov 2022 13:52:41 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/cannot-install-ta-lib-via-cluster-libraries/m-p/21424#M14598</guid>
      <dc:creator>Kash</dc:creator>
      <dc:date>2022-11-21T13:52:41Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot install TA-LIB via cluster libraries</title>
      <link>https://community.databricks.com/t5/data-engineering/cannot-install-ta-lib-via-cluster-libraries/m-p/21425#M14599</link>
      <description>&lt;P&gt;Hi @Avkash Kana​&amp;nbsp;, Have you tried uploading the library to DBFS and installing it on the cluster from there? You can click on the libraries tab on the cluster UI and add your library there.&lt;/P&gt;&lt;P&gt;&lt;A href="https://docs.databricks.com/libraries/workspace-libraries.html#reference-an-uploaded-jar-python-egg-or-python-wheel" target="test_blank"&gt;https://docs.databricks.com/libraries/workspace-libraries.html#reference-an-uploaded-jar-python-egg-or-python-wheel&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 21 Nov 2022 14:10:11 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/cannot-install-ta-lib-via-cluster-libraries/m-p/21425#M14599</guid>
      <dc:creator>Vivian_Wilfred</dc:creator>
      <dc:date>2022-11-21T14:10:11Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot install TA-LIB via cluster libraries</title>
      <link>https://community.databricks.com/t5/data-engineering/cannot-install-ta-lib-via-cluster-libraries/m-p/21426#M14600</link>
      <description>&lt;P&gt;Hi Vivian,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the note. I tried that and it shows the package was installed but when I try to import talib in the notebook it says no module names 'talib'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any thoughts on what might be happening?&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;K&lt;/P&gt;</description>
      <pubDate>Mon, 21 Nov 2022 17:08:02 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/cannot-install-ta-lib-via-cluster-libraries/m-p/21426#M14600</guid>
      <dc:creator>Kash</dc:creator>
      <dc:date>2022-11-21T17:08:02Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot install TA-LIB via cluster libraries</title>
      <link>https://community.databricks.com/t5/data-engineering/cannot-install-ta-lib-via-cluster-libraries/m-p/21427#M14601</link>
      <description>&lt;P&gt;@Avkash Kana​&amp;nbsp;Can you run a &lt;I&gt;%sh pip list &lt;/I&gt;on a notebook attached to the cluster and check if the library is shown there?&lt;/P&gt;&lt;P&gt;Does it require any other dependencies to work? Please share the error trace when you import.&lt;/P&gt;</description>
      <pubDate>Mon, 21 Nov 2022 18:02:40 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/cannot-install-ta-lib-via-cluster-libraries/m-p/21427#M14601</guid>
      <dc:creator>Vivian_Wilfred</dc:creator>
      <dc:date>2022-11-21T18:02:40Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot install TA-LIB via cluster libraries</title>
      <link>https://community.databricks.com/t5/data-engineering/cannot-install-ta-lib-via-cluster-libraries/m-p/21428#M14602</link>
      <description>&lt;P&gt;Hi Vivian,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the quick reply.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I install it manually using the notebook it shows up in pip-list but if I detach and re-attach it goes away.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I believe it does require other packages however we are already installing them though the cluster library I believe. If it needed a package that prevented the wheel from installing we would see an error right?&lt;/P&gt;</description>
      <pubDate>Mon, 21 Nov 2022 18:49:11 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/cannot-install-ta-lib-via-cluster-libraries/m-p/21428#M14602</guid>
      <dc:creator>Kash</dc:creator>
      <dc:date>2022-11-21T18:49:11Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot install TA-LIB via cluster libraries</title>
      <link>https://community.databricks.com/t5/data-engineering/cannot-install-ta-lib-via-cluster-libraries/m-p/21429#M14603</link>
      <description>&lt;P&gt;@Avkash Kana​&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please create an init script (see below) and attach the script to the cluster. This should resolve your issue. &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;%python
dbutils.fs.put("/databricks/scripts/ta-lib-install.sh","""
#!/bin/bash
/databricks/python/bin/pip install --upgrade numpy
wget &lt;A href="http://phoenixnap.dl.sourceforge.net/project/ta-lib/ta-lib/0.4.0/ta-lib-0.4.0-src.tar.gz" target="test_blank"&gt;http://phoenixnap.dl.sourceforge.net/project/ta-lib/ta-lib/0.4.0/ta-lib-0.4.0-src.tar.gz&lt;/A&gt; \
 &amp;amp;&amp;amp; sudo tar -xzf ta-lib-0.4.0-src.tar.gz \
 &amp;amp;&amp;amp; sudo rm ta-lib-0.4.0-src.tar.gz \
 &amp;amp;&amp;amp; cd ta-lib/ \
 &amp;amp;&amp;amp; sudo ./configure --prefix=/usr \
 &amp;amp;&amp;amp; sudo make \
 &amp;amp;&amp;amp; sudo make install \
 &amp;amp;&amp;amp; cd ~ \
 &amp;amp;&amp;amp; sudo rm -rf ta-lib/ \
 &amp;amp;&amp;amp; pip install ta-lib""", True)&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;How to:&amp;nbsp;https://docs.databricks.com/clusters/init-scripts.html#configure-a-cluster-scoped-init-script-using-the-ui&lt;/P&gt;</description>
      <pubDate>Mon, 21 Nov 2022 20:21:13 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/cannot-install-ta-lib-via-cluster-libraries/m-p/21429#M14603</guid>
      <dc:creator>Vivian_Wilfred</dc:creator>
      <dc:date>2022-11-21T20:21:13Z</dc:date>
    </item>
  </channel>
</rss>

