<?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 Deploy model to AWS Sagemaker: ModuleNotFoundError: No module named 'docker' in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/deploy-model-to-aws-sagemaker-modulenotfounderror-no-module/m-p/3250#M371</link>
    <description>&lt;P&gt;Greetings, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When trying to run the following command: &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;%sh
mlflow sagemaker build-and-push-container&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;I get the following error:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;/databricks/python3/lib/python3.9/site-packages/click/core.py:2309: UserWarning: Virtualenv support is still experimental and may be changed in a future release without warning.
  value = self.callback(ctx, self, value)
2023/06/12 16:22:04 INFO mlflow.models.docker_utils: Building docker image with name mlflow-pyfunc
Traceback (most recent call last):
  File "/databricks/python3/bin/mlflow", line 8, in &amp;lt;module&amp;gt;
    sys.exit(cli())
  File "/databricks/python3/lib/python3.9/site-packages/click/core.py", line 1128, in __call__
    return self.main(*args, **kwargs)
  File "/databricks/python3/lib/python3.9/site-packages/click/core.py", line 1053, in main
    rv = self.invoke(ctx)
  File "/databricks/python3/lib/python3.9/site-packages/click/core.py", line 1659, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "/databricks/python3/lib/python3.9/site-packages/click/core.py", line 1659, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "/databricks/python3/lib/python3.9/site-packages/click/core.py", line 1395, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/databricks/python3/lib/python3.9/site-packages/click/core.py", line 754, in invoke
    return __callback(*args, **kwargs)
  File "/databricks/python3/lib/python3.9/site-packages/mlflow/sagemaker/cli.py", line 605, in build_and_push_container
    mlflow.models.docker_utils._build_image(
  File "/databricks/python3/lib/python3.9/site-packages/mlflow/models/docker_utils.py", line 224, in _build_image
    _build_image_from_context(context_dir=cwd, image_name=image_name)
  File "/databricks/python3/lib/python3.9/site-packages/mlflow/models/docker_utils.py", line 228, in _build_image_from_context
    import docker
ModuleNotFoundError: No module named 'docker'&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;I installed docker by running the following command:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;%pip install docker&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;But the error still persists. Please note that I am running the above code in a Databricks notebook. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Using the UI, I have also tried installing docker from Databricks' built-in package manager -- again to no avail.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could I please get some assistance figuring this out?&lt;/P&gt;</description>
    <pubDate>Mon, 12 Jun 2023 16:29:36 GMT</pubDate>
    <dc:creator>Nikhil3107</dc:creator>
    <dc:date>2023-06-12T16:29:36Z</dc:date>
    <item>
      <title>Deploy model to AWS Sagemaker: ModuleNotFoundError: No module named 'docker'</title>
      <link>https://community.databricks.com/t5/data-engineering/deploy-model-to-aws-sagemaker-modulenotfounderror-no-module/m-p/3250#M371</link>
      <description>&lt;P&gt;Greetings, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When trying to run the following command: &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;%sh
mlflow sagemaker build-and-push-container&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;I get the following error:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;/databricks/python3/lib/python3.9/site-packages/click/core.py:2309: UserWarning: Virtualenv support is still experimental and may be changed in a future release without warning.
  value = self.callback(ctx, self, value)
2023/06/12 16:22:04 INFO mlflow.models.docker_utils: Building docker image with name mlflow-pyfunc
Traceback (most recent call last):
  File "/databricks/python3/bin/mlflow", line 8, in &amp;lt;module&amp;gt;
    sys.exit(cli())
  File "/databricks/python3/lib/python3.9/site-packages/click/core.py", line 1128, in __call__
    return self.main(*args, **kwargs)
  File "/databricks/python3/lib/python3.9/site-packages/click/core.py", line 1053, in main
    rv = self.invoke(ctx)
  File "/databricks/python3/lib/python3.9/site-packages/click/core.py", line 1659, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "/databricks/python3/lib/python3.9/site-packages/click/core.py", line 1659, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "/databricks/python3/lib/python3.9/site-packages/click/core.py", line 1395, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/databricks/python3/lib/python3.9/site-packages/click/core.py", line 754, in invoke
    return __callback(*args, **kwargs)
  File "/databricks/python3/lib/python3.9/site-packages/mlflow/sagemaker/cli.py", line 605, in build_and_push_container
    mlflow.models.docker_utils._build_image(
  File "/databricks/python3/lib/python3.9/site-packages/mlflow/models/docker_utils.py", line 224, in _build_image
    _build_image_from_context(context_dir=cwd, image_name=image_name)
  File "/databricks/python3/lib/python3.9/site-packages/mlflow/models/docker_utils.py", line 228, in _build_image_from_context
    import docker
ModuleNotFoundError: No module named 'docker'&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;I installed docker by running the following command:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;%pip install docker&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;But the error still persists. Please note that I am running the above code in a Databricks notebook. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Using the UI, I have also tried installing docker from Databricks' built-in package manager -- again to no avail.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could I please get some assistance figuring this out?&lt;/P&gt;</description>
      <pubDate>Mon, 12 Jun 2023 16:29:36 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/deploy-model-to-aws-sagemaker-modulenotfounderror-no-module/m-p/3250#M371</guid>
      <dc:creator>Nikhil3107</dc:creator>
      <dc:date>2023-06-12T16:29:36Z</dc:date>
    </item>
    <item>
      <title>Re: Deploy model to AWS Sagemaker: ModuleNotFoundError: No module named 'docker'</title>
      <link>https://community.databricks.com/t5/data-engineering/deploy-model-to-aws-sagemaker-modulenotfounderror-no-module/m-p/3252#M373</link>
      <description>&lt;P&gt;1 Driver&lt;/P&gt;&lt;P&gt;128&amp;nbsp;GB Memory,&amp;nbsp;32&amp;nbsp;CoresRuntime&lt;/P&gt;&lt;P&gt;12.2.x-cpu-ml-scala2.12&lt;/P&gt;&lt;P&gt;Unity Catalog&lt;/P&gt;&lt;P&gt;g4dn.8xlarge&lt;/P&gt;&lt;P&gt;5.7&amp;nbsp;DBU/h&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Runtime version: 12.2 LTS ML (includes Apache Spark 3.3.2, Scala 2.12)&lt;/P&gt;</description>
      <pubDate>Wed, 14 Jun 2023 14:30:48 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/deploy-model-to-aws-sagemaker-modulenotfounderror-no-module/m-p/3252#M373</guid>
      <dc:creator>Nikhil3107</dc:creator>
      <dc:date>2023-06-14T14:30:48Z</dc:date>
    </item>
  </channel>
</rss>

