<?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: How to resolve &amp;quot;cannot import name 'Iterable' from 'collections'&amp;quot; error? in Get Started Discussions</title>
    <link>https://community.databricks.com/t5/get-started-discussions/how-to-resolve-quot-cannot-import-name-iterable-from-collections/m-p/141318#M11152</link>
    <description>&lt;OL&gt;&lt;LI&gt;&lt;P&gt;Go to Compute → Your Cluster / Job Compute&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;Change Databricks Runtime to:&lt;BR /&gt;Databricks Runtime 13.3 LTS&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;Re-run your job with the same container.&lt;/P&gt;&lt;/LI&gt;&lt;/OL&gt;</description>
    <pubDate>Sat, 06 Dec 2025 16:23:50 GMT</pubDate>
    <dc:creator>Poorva21</dc:creator>
    <dc:date>2025-12-06T16:23:50Z</dc:date>
    <item>
      <title>How to resolve "cannot import name 'Iterable' from 'collections'" error?</title>
      <link>https://community.databricks.com/t5/get-started-discussions/how-to-resolve-quot-cannot-import-name-iterable-from-collections/m-p/111063#M9066</link>
      <description>&lt;P&gt;I'm running a DBR/Spark job using a container. I've set docker_image.url to `&lt;SPAN&gt;docker.io/databricksruntime/standard:13.3-LTS`, as well as the Spark env var `DATABRICKS_RUNTIME_VERSION=13.3`. At runtime, however, I'm encountering this error:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;ImportError: cannot import name 'Iterable' from 'collections' (/usr/lib/python3.10/collections/__init__.py)&lt;BR /&gt;Traceback (most recent call last):&lt;BR /&gt;File "/databricks/python_shell/scripts/db_ipykernel_launcher.py", line 18, in &amp;lt;module&amp;gt;&lt;BR /&gt;from dbruntime.MLWorkloadsInstrumentation import set_up_ml_workloads_instrumentation&lt;BR /&gt;File "/databricks/python_shell/dbruntime/MLWorkloadsInstrumentation/__init__.py", line 1, in &amp;lt;module&amp;gt;&lt;BR /&gt;from dbruntime.dbutils import stderr&lt;BR /&gt;File "/databricks/python_shell/dbruntime/dbutils.py", line 6, in &amp;lt;module&amp;gt;&lt;BR /&gt;from collections import namedtuple, Iterable&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;I also noticed that DBR's UI reports the compute as "Single node: m5.large · Spot · DBR: 11.3 LTS (includes Apache Spark 3.3.0, Scala 2.12) · auto". Note that the Compute has v11.3-LTS, although my Spark workflow uses a container with version 13.3-LTS. This version mismatch seems odd.&lt;/P&gt;&lt;P&gt;Googling around, I see it looks like there's some nuance to Python version (&lt;A href="https://github.com/tctianchi/pyvenn/issues/19" target="_blank"&gt;https://github.com/tctianchi/pyvenn/issues/19&lt;/A&gt;). Apparently the "from collections import Iterable" is supposed to be changed to "from collections.abc import Iterable". The code itself is coming from DBR, not ours, however.&lt;/P&gt;&lt;P&gt;I suspect there's some problem in how I've configured the job; any pointers on version/container selection are appreciated.&lt;/P&gt;</description>
      <pubDate>Mon, 24 Feb 2025 17:05:44 GMT</pubDate>
      <guid>https://community.databricks.com/t5/get-started-discussions/how-to-resolve-quot-cannot-import-name-iterable-from-collections/m-p/111063#M9066</guid>
      <dc:creator>mrstevegross</dc:creator>
      <dc:date>2025-02-24T17:05:44Z</dc:date>
    </item>
    <item>
      <title>Re: How to resolve "cannot import name 'Iterable' from 'collections'" error?</title>
      <link>https://community.databricks.com/t5/get-started-discussions/how-to-resolve-quot-cannot-import-name-iterable-from-collections/m-p/141310#M11151</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/142679"&gt;@mrstevegross&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P data-start="1336" data-end="1412"&gt;You &lt;STRONG data-start="1340" data-end="1411"&gt;must match the container image version to the cluster’s DBR version&lt;/STRONG&gt;.&lt;/P&gt;
&lt;H3 data-start="1414" data-end="1462"&gt;Option 1 — Run the job on a DBR 13.3 cluster&lt;/H3&gt;
&lt;UL data-start="1463" data-end="1544"&gt;
&lt;LI data-start="1463" data-end="1503"&gt;
&lt;P data-start="1465" data-end="1503"&gt;Create a compute &lt;STRONG data-start="1482" data-end="1503"&gt;with DBR 13.3 LTS&lt;/STRONG&gt;&lt;/P&gt;
&lt;/LI&gt;
&lt;LI data-start="1504" data-end="1544"&gt;
&lt;P data-start="1506" data-end="1544"&gt;Use your container &lt;CODE data-start="1525" data-end="1544"&gt;standard:13.3-LTS&lt;/CODE&gt;&lt;/P&gt;
&lt;/LI&gt;
&lt;/UL&gt;
&lt;P data-start="1546" data-end="1580"&gt;This is the correct configuration.&lt;/P&gt;
&lt;H3 data-start="1582" data-end="1618"&gt;Option 2 — Keep DBR 11.3 cluster&lt;/H3&gt;
&lt;P data-start="1619" data-end="1661"&gt;Then the container &lt;STRONG data-start="1634" data-end="1660"&gt;must also use DBR 11.3&lt;/STRONG&gt;:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;DIV class="contain-inline-size rounded-2xl corner-superellipse/1.1 relative bg-token-sidebar-surface-primary"&gt;
&lt;DIV class="sticky top-9"&gt;
&lt;DIV class="absolute end-0 bottom-0 flex h-9 items-center pe-2"&gt;
&lt;DIV class="bg-token-bg-elevated-secondary text-token-text-secondary flex items-center gap-4 rounded-sm px-2 font-sans text-xs"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;DIV class="overflow-y-auto p-4" dir="ltr"&gt;&lt;CODE class="whitespace-pre!"&gt;&lt;SPAN&gt;docker.io/databricksruntime/standard:11.3-LTS&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;P data-start="1718" data-end="1785"&gt;And remove your &lt;CODE data-start="1734" data-end="1762"&gt;DATABRICKS_RUNTIME_VERSION&lt;/CODE&gt; override&lt;/P&gt;</description>
      <pubDate>Sat, 06 Dec 2025 09:38:28 GMT</pubDate>
      <guid>https://community.databricks.com/t5/get-started-discussions/how-to-resolve-quot-cannot-import-name-iterable-from-collections/m-p/141310#M11151</guid>
      <dc:creator>Saritha_S</dc:creator>
      <dc:date>2025-12-06T09:38:28Z</dc:date>
    </item>
    <item>
      <title>Re: How to resolve "cannot import name 'Iterable' from 'collections'" error?</title>
      <link>https://community.databricks.com/t5/get-started-discussions/how-to-resolve-quot-cannot-import-name-iterable-from-collections/m-p/141318#M11152</link>
      <description>&lt;OL&gt;&lt;LI&gt;&lt;P&gt;Go to Compute → Your Cluster / Job Compute&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;Change Databricks Runtime to:&lt;BR /&gt;Databricks Runtime 13.3 LTS&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;Re-run your job with the same container.&lt;/P&gt;&lt;/LI&gt;&lt;/OL&gt;</description>
      <pubDate>Sat, 06 Dec 2025 16:23:50 GMT</pubDate>
      <guid>https://community.databricks.com/t5/get-started-discussions/how-to-resolve-quot-cannot-import-name-iterable-from-collections/m-p/141318#M11152</guid>
      <dc:creator>Poorva21</dc:creator>
      <dc:date>2025-12-06T16:23:50Z</dc:date>
    </item>
  </channel>
</rss>

