<?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: Container Service Docker images fail when a pip package is installed in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/container-service-docker-images-fail-when-a-pip-package-is/m-p/64264#M32510</link>
    <description>&lt;P&gt;I found the culprit: &lt;FONT face="courier new,courier"&gt;--ignore-installed&lt;FONT face="arial,helvetica,sans-serif"&gt; upgraded matplotlib too much, and broke it.&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 21 Mar 2024 09:51:43 GMT</pubDate>
    <dc:creator>JohanS</dc:creator>
    <dc:date>2024-03-21T09:51:43Z</dc:date>
    <item>
      <title>Container Service Docker images fail when a pip package is installed</title>
      <link>https://community.databricks.com/t5/data-engineering/container-service-docker-images-fail-when-a-pip-package-is/m-p/64255#M32505</link>
      <description>&lt;P&gt;I'm building my own Docker images to use for a cluster. The problem is that the only image I seem to be able to run is the official base image "databricksruntime/python:13.3-LTS". If I install a pip package, I get the following on standard error:&lt;/P&gt;&lt;PRE&gt;/databricks/spark/scripts/setup_driver_env.sh: line 43: R: command not found&lt;BR /&gt;ANTLR Tool version 4.8 used for code generation does not match the current runtime version 4.9.3&lt;BR /&gt;ANTLR Tool version 4.8 used for code generation does not match the current runtime version 4.9.3&lt;BR /&gt;ANTLR Tool version 4.8 used for code generation does not match the current runtime version 4.9.3&lt;BR /&gt;ANTLR Tool version 4.8 used for code generation does not match the current runtime version 4.9.3&lt;BR /&gt;Thu Mar 21 08:01:25 2024 Connection to spark from PID 1270&lt;BR /&gt;Thu Mar 21 08:01:25 2024 Initialized gateway on port 44991&lt;BR /&gt;Thu Mar 21 08:01:26 2024 Connected to spark.&lt;BR /&gt;Traceback (most recent call last):&lt;BR /&gt;File "/databricks/python_shell/scripts/db_ipykernel_launcher.py", line 86, in &amp;lt;module&amp;gt;&lt;BR /&gt;app.shell.run_line_magic("matplotlib", "inline")&lt;BR /&gt;File "/databricks/python/lib/python3.10/site-packages/IPython/core/interactiveshell.py", line 2480, in run_line_magic&lt;BR /&gt;result = fn(*args, **kwargs)&lt;BR /&gt;File "/databricks/python/lib/python3.10/site-packages/IPython/core/magics/pylab.py", line 99, in matplotlib&lt;BR /&gt;gui, backend = self.shell.enable_matplotlib(args.gui.lower() if isinstance(args.gui, str) else args.gui)&lt;BR /&gt;File "/databricks/python/lib/python3.10/site-packages/IPython/core/interactiveshell.py", line 3658, in enable_matplotlib&lt;BR /&gt;gui, backend = pt.find_gui_and_backend(gui, self.pylab_gui_select)&lt;BR /&gt;File "/databricks/python/lib/python3.10/site-packages/IPython/core/pylabtools.py", line 320, in find_gui_and_backend&lt;BR /&gt;import matplotlib&lt;BR /&gt;File "/databricks/python/lib/python3.10/site-packages/matplotlib/__init__.py", line 161, in &amp;lt;module&amp;gt;&lt;BR /&gt;from . import _api, _version, cbook, _docstring, rcsetup&lt;BR /&gt;File "/databricks/python/lib/python3.10/site-packages/matplotlib/cbook/__init__.py", line 32, in &amp;lt;module&amp;gt;&lt;BR /&gt;from matplotlib._api.deprecation import (&lt;BR /&gt;ImportError: cannot import name 'mplDeprecation' from 'matplotlib._api.deprecation' (/databricks/python/lib/python3.10/site-packages/matplotlib/_api/deprecation.py)&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;This is my pretty minimal Dockerfile, and without the last line it works fine.&lt;/P&gt;&lt;PRE&gt;# syntax = docker/dockerfile:1.2&lt;BR /&gt;FROM databricksruntime/python:13.3-LTS&lt;BR /&gt;COPY my_code /my_code&lt;BR /&gt;RUN --mount=type=secret,id=pip_conf,dst=/root/.pip/pip.conf /databricks/python3/bin/pip install --ignore-installed my-package[extras]==1.2.3&lt;/PRE&gt;</description>
      <pubDate>Thu, 21 Mar 2024 08:08:30 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/container-service-docker-images-fail-when-a-pip-package-is/m-p/64255#M32505</guid>
      <dc:creator>JohanS</dc:creator>
      <dc:date>2024-03-21T08:08:30Z</dc:date>
    </item>
    <item>
      <title>Re: Container Service Docker images fail when a pip package is installed</title>
      <link>https://community.databricks.com/t5/data-engineering/container-service-docker-images-fail-when-a-pip-package-is/m-p/64264#M32510</link>
      <description>&lt;P&gt;I found the culprit: &lt;FONT face="courier new,courier"&gt;--ignore-installed&lt;FONT face="arial,helvetica,sans-serif"&gt; upgraded matplotlib too much, and broke it.&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 21 Mar 2024 09:51:43 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/container-service-docker-images-fail-when-a-pip-package-is/m-p/64264#M32510</guid>
      <dc:creator>JohanS</dc:creator>
      <dc:date>2024-03-21T09:51:43Z</dc:date>
    </item>
  </channel>
</rss>

