<?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: Issue in importing librosa library while using databricks runtime engine 11.2 in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/issue-in-importing-librosa-library-while-using-databricks/m-p/20036#M13516</link>
    <description>&lt;P&gt;Thank you werners. Just figured that out and had an init script to sort out the issue. Below steps helped me to solve the issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;dbutils.fs.mkdirs("dbfs:/cluster-init/scripts/")&lt;/P&gt;&lt;P&gt;dbutils.fs.put("/cluster-init/scripts/libsndfile-install.sh","""&lt;/P&gt;&lt;P&gt;#!/bin/bash&lt;/P&gt;&lt;P&gt;apt-get --yes install libsndfile1&lt;/P&gt;&lt;P&gt;""", True)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and added init script for the cluster as&lt;/P&gt;&lt;P&gt;dbfs:/cluster-init/scripts/libsndfile-install.sh&lt;/P&gt;</description>
    <pubDate>Tue, 29 Nov 2022 16:25:40 GMT</pubDate>
    <dc:creator>Chandru</dc:creator>
    <dc:date>2022-11-29T16:25:40Z</dc:date>
    <item>
      <title>Issue in importing librosa library while using databricks runtime engine 11.2</title>
      <link>https://community.databricks.com/t5/data-engineering/issue-in-importing-librosa-library-while-using-databricks/m-p/20034#M13514</link>
      <description>&lt;P&gt;I have installed the library via PyPI on the cluster. When we import the package on notebook, getting the following error&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;import librosa&lt;/P&gt;&lt;P&gt;OSError: cannot load library 'libsndfile.so': libsndfile.so: cannot open shared object file: No such file or directory&lt;/P&gt;</description>
      <pubDate>Tue, 29 Nov 2022 14:08:09 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/issue-in-importing-librosa-library-while-using-databricks/m-p/20034#M13514</guid>
      <dc:creator>Chandru</dc:creator>
      <dc:date>2022-11-29T14:08:09Z</dc:date>
    </item>
    <item>
      <title>Re: Issue in importing librosa library while using databricks runtime engine 11.2</title>
      <link>https://community.databricks.com/t5/data-engineering/issue-in-importing-librosa-library-while-using-databricks/m-p/20035#M13515</link>
      <description>&lt;P&gt;it seems the linux OS is missing the  &lt;A href="https://libsndfile.so" alt="https://libsndfile.so" target="_blank"&gt;libsndfile&lt;/A&gt; package.&lt;/P&gt;&lt;P&gt;This is apparently a dependency of librosa.&lt;/P&gt;&lt;P&gt;This can be done by using an init script:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://docs.databricks.com/clusters/init-scripts.html#cluster-scoped-init-scripts" target="test_blank"&gt;https://docs.databricks.com/clusters/init-scripts.html#cluster-scoped-init-scripts&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 29 Nov 2022 16:20:36 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/issue-in-importing-librosa-library-while-using-databricks/m-p/20035#M13515</guid>
      <dc:creator>-werners-</dc:creator>
      <dc:date>2022-11-29T16:20:36Z</dc:date>
    </item>
    <item>
      <title>Re: Issue in importing librosa library while using databricks runtime engine 11.2</title>
      <link>https://community.databricks.com/t5/data-engineering/issue-in-importing-librosa-library-while-using-databricks/m-p/20036#M13516</link>
      <description>&lt;P&gt;Thank you werners. Just figured that out and had an init script to sort out the issue. Below steps helped me to solve the issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;dbutils.fs.mkdirs("dbfs:/cluster-init/scripts/")&lt;/P&gt;&lt;P&gt;dbutils.fs.put("/cluster-init/scripts/libsndfile-install.sh","""&lt;/P&gt;&lt;P&gt;#!/bin/bash&lt;/P&gt;&lt;P&gt;apt-get --yes install libsndfile1&lt;/P&gt;&lt;P&gt;""", True)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and added init script for the cluster as&lt;/P&gt;&lt;P&gt;dbfs:/cluster-init/scripts/libsndfile-install.sh&lt;/P&gt;</description>
      <pubDate>Tue, 29 Nov 2022 16:25:40 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/issue-in-importing-librosa-library-while-using-databricks/m-p/20036#M13516</guid>
      <dc:creator>Chandru</dc:creator>
      <dc:date>2022-11-29T16:25:40Z</dc:date>
    </item>
    <item>
      <title>Re: Issue in importing librosa library while using databricks runtime engine 11.2</title>
      <link>https://community.databricks.com/t5/data-engineering/issue-in-importing-librosa-library-while-using-databricks/m-p/79433#M35760</link>
      <description>&lt;P&gt;If anybody ends up here after 2024: the init file must now be placed in the workspace for the cluster to accept it.&lt;/P&gt;&lt;P&gt;So in Workspace, use Create/File to create the init script.&lt;/P&gt;&lt;P&gt;Then add it to the cluster config in&lt;BR /&gt;Compute - Your cluster - Advanced Config - init scripts&lt;/P&gt;</description>
      <pubDate>Fri, 19 Jul 2024 14:02:27 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/issue-in-importing-librosa-library-while-using-databricks/m-p/79433#M35760</guid>
      <dc:creator>Flo</dc:creator>
      <dc:date>2024-07-19T14:02:27Z</dc:date>
    </item>
  </channel>
</rss>

