<?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: %sh fails to install mdbtools locally in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/sh-fails-to-install-mdbtools-locally/m-p/91523#M38186</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/115314"&gt;@KacperG&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;Most likely the job is using different privileges than you.&lt;/P&gt;&lt;P&gt;In your command -S needs to be specified before apt-get. Have you tried running:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;%sh
sudo -S apt-get -y install mdbtools&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If it is just a typo, here are the options:&lt;/P&gt;&lt;P&gt;1.Try to run the command without sudo&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="filipniziol_0-1727162716235.png" style="width: 400px;"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/11446i936B7F4435A7C4D7/image-size/medium?v=v2&amp;amp;px=400" role="button" title="filipniziol_0-1727162716235.png" alt="filipniziol_0-1727162716235.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;2. Provide the password like that:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;%sh
echo 'your_password' | sudo -S apt-get -y install mdbtools&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;3. Install mdbtools locally from source:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;%sh
wget https://github.com/mdbtools/mdbtools/releases/download/v0.9.3/mdbtools-0.9.3.tar.gz
tar -xzf mdbtools-0.9.3.tar.gz
cd mdbtools-0.9.3
./configure --prefix=$HOME/mdbtools
make
make install&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 24 Sep 2024 07:27:31 GMT</pubDate>
    <dc:creator>filipniziol</dc:creator>
    <dc:date>2024-09-24T07:27:31Z</dc:date>
    <item>
      <title>%sh fails to install mdbtools locally</title>
      <link>https://community.databricks.com/t5/data-engineering/sh-fails-to-install-mdbtools-locally/m-p/91515#M38183</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;I have a notebook that uses mdbtools:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;%sh
sudo apt-get -y -S install mdbtools&lt;/LI-CODE&gt;&lt;P&gt;However, when I want to run it locally it returns error:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;sudo: a terminal is required to read the password; either use the -S option to read from standard input or configure an askpass helper
sudo: a password is required&lt;/LI-CODE&gt;&lt;P&gt;This error doesn't occur when it's ran on job cluster.&lt;BR /&gt;&lt;BR /&gt;Any idea why and how to fix it, so I can debug it locally?&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 24 Sep 2024 06:26:20 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/sh-fails-to-install-mdbtools-locally/m-p/91515#M38183</guid>
      <dc:creator>KacperG</dc:creator>
      <dc:date>2024-09-24T06:26:20Z</dc:date>
    </item>
    <item>
      <title>Re: %sh fails to install mdbtools locally</title>
      <link>https://community.databricks.com/t5/data-engineering/sh-fails-to-install-mdbtools-locally/m-p/91523#M38186</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/115314"&gt;@KacperG&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;Most likely the job is using different privileges than you.&lt;/P&gt;&lt;P&gt;In your command -S needs to be specified before apt-get. Have you tried running:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;%sh
sudo -S apt-get -y install mdbtools&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If it is just a typo, here are the options:&lt;/P&gt;&lt;P&gt;1.Try to run the command without sudo&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="filipniziol_0-1727162716235.png" style="width: 400px;"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/11446i936B7F4435A7C4D7/image-size/medium?v=v2&amp;amp;px=400" role="button" title="filipniziol_0-1727162716235.png" alt="filipniziol_0-1727162716235.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;2. Provide the password like that:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;%sh
echo 'your_password' | sudo -S apt-get -y install mdbtools&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;3. Install mdbtools locally from source:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;%sh
wget https://github.com/mdbtools/mdbtools/releases/download/v0.9.3/mdbtools-0.9.3.tar.gz
tar -xzf mdbtools-0.9.3.tar.gz
cd mdbtools-0.9.3
./configure --prefix=$HOME/mdbtools
make
make install&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 24 Sep 2024 07:27:31 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/sh-fails-to-install-mdbtools-locally/m-p/91523#M38186</guid>
      <dc:creator>filipniziol</dc:creator>
      <dc:date>2024-09-24T07:27:31Z</dc:date>
    </item>
  </channel>
</rss>

