<?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: fastai import in databricks broken in Machine Learning</title>
    <link>https://community.databricks.com/t5/machine-learning/fastai-import-in-databricks-broken/m-p/167559#M4691</link>
    <description>&lt;P&gt;Thank you for the reply Guy, I'm not actually sure whether the change is down to runtime version now - I've tried importing from fastai using various runtimes (18.2.9, 17.3.20, 19.6.3), using a node with or without GPU, and using an ML and a non-ML runtime.&lt;/P&gt;&lt;P&gt;I guess filing a support ticket is my best bet...&lt;/P&gt;</description>
    <pubDate>Fri, 04 Sep 2026 15:59:22 GMT</pubDate>
    <dc:creator>barnabywalker</dc:creator>
    <dc:date>2026-09-04T15:59:22Z</dc:date>
    <item>
      <title>fastai import in databricks broken</title>
      <link>https://community.databricks.com/t5/machine-learning/fastai-import-in-databricks-broken/m-p/167548#M4689</link>
      <description>&lt;P&gt;Has anyone else had a problem today (2026-09-04) with imports from fastai?&lt;/P&gt;&lt;P&gt;The error message points to a problem with the underlying fastcore package:&lt;/P&gt;&lt;LI-CODE lang="python"&gt;AttributeError: 'Function' object attribute '__doc__' is read-only&lt;/LI-CODE&gt;&lt;P&gt;I'm getting the same error using fastai versions 2.8.5 and 2.8.8.&lt;/P&gt;&lt;P&gt;The only change I can see is in the compute event logs, my 'Compute is using release 18.3.6' compared to 18.3.5 yesterday.&lt;/P&gt;</description>
      <pubDate>Fri, 04 Sep 2026 14:47:47 GMT</pubDate>
      <guid>https://community.databricks.com/t5/machine-learning/fastai-import-in-databricks-broken/m-p/167548#M4689</guid>
      <dc:creator>barnabywalker</dc:creator>
      <dc:date>2026-09-04T14:47:47Z</dc:date>
    </item>
    <item>
      <title>Re: fastai import in databricks broken</title>
      <link>https://community.databricks.com/t5/machine-learning/fastai-import-in-databricks-broken/m-p/167552#M4690</link>
      <description>&lt;DIV class=""&gt;This error pattern, 'Function' object attribute '__doc__' is read-only, is a&amp;nbsp;&lt;STRONG&gt;known upstream issue in fastcore&lt;/STRONG&gt;&amp;nbsp;related to how it monkey-patches Python built-in function objects.&amp;nbsp;The&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class=""&gt;fastcore&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;library attempts to set&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class=""&gt;__doc__&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;on built-in&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class=""&gt;Function&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;(C-level) objects, which CPython does not allow. This can surface when:&lt;/DIV&gt;&lt;OL class=""&gt;&lt;LI&gt;A&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;minor CPython patch&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;is included in the new runtime (e.g., 3.12.x → 3.12.y), tightening attribute-setting behaviour on built-in types.&lt;/LI&gt;&lt;LI&gt;A&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;different library version&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;in the runtime environment changes the import order or triggers a different code path in fastcore's initialisation.&lt;/LI&gt;&lt;/OL&gt;&lt;DIV class=""&gt;Since you confirmed the only visible change is the runtime release (18.3.5 → 18.3.6), a CPython micro-version bump or a change in a transitive dependency is the most probable trigger.&lt;/DIV&gt;&lt;H3&gt;Recommended next steps&lt;/H3&gt;&lt;OL class=""&gt;&lt;LI&gt;&lt;STRONG&gt;Check the Python micro-version&lt;/STRONG&gt;: Run&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class=""&gt;import sys; print(sys.version)&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;on both 18.3.5 and 18.3.6 clusters to confirm whether the CPython patch level changed.&lt;/LI&gt;&lt;LI&gt;&lt;STRONG&gt;Pin to a working runtime&lt;/STRONG&gt;: If you need an immediate fix, pin your cluster to 18.3.5 while investigating.&lt;/LI&gt;&lt;LI&gt;&lt;STRONG&gt;Check fastcore's GitHub issues&lt;/STRONG&gt;: The&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;A class="" href="https://github.com/fastai/fastcore/issues" target="_blank" rel="noopener noreferrer"&gt;fastcore issue tracker&lt;/A&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;has had similar&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class=""&gt;__doc__&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;read-only reports tied to specific Python versions.&lt;/LI&gt;&lt;LI&gt;&lt;STRONG&gt;File a support ticket&lt;/STRONG&gt;: Since this appears to be a regression introduced by the 18.3.6 maintenance release, filing a Databricks support ticket referencing the runtime change would help the Runtime team investigate whether a CPython or dependency change is responsible.&lt;/LI&gt;&lt;/OL&gt;</description>
      <pubDate>Fri, 04 Sep 2026 15:30:55 GMT</pubDate>
      <guid>https://community.databricks.com/t5/machine-learning/fastai-import-in-databricks-broken/m-p/167552#M4690</guid>
      <dc:creator>GuyBourne</dc:creator>
      <dc:date>2026-09-04T15:30:55Z</dc:date>
    </item>
    <item>
      <title>Re: fastai import in databricks broken</title>
      <link>https://community.databricks.com/t5/machine-learning/fastai-import-in-databricks-broken/m-p/167559#M4691</link>
      <description>&lt;P&gt;Thank you for the reply Guy, I'm not actually sure whether the change is down to runtime version now - I've tried importing from fastai using various runtimes (18.2.9, 17.3.20, 19.6.3), using a node with or without GPU, and using an ML and a non-ML runtime.&lt;/P&gt;&lt;P&gt;I guess filing a support ticket is my best bet...&lt;/P&gt;</description>
      <pubDate>Fri, 04 Sep 2026 15:59:22 GMT</pubDate>
      <guid>https://community.databricks.com/t5/machine-learning/fastai-import-in-databricks-broken/m-p/167559#M4691</guid>
      <dc:creator>barnabywalker</dc:creator>
      <dc:date>2026-09-04T15:59:22Z</dc:date>
    </item>
    <item>
      <title>Re: fastai import in databricks broken</title>
      <link>https://community.databricks.com/t5/machine-learning/fastai-import-in-databricks-broken/m-p/167562#M4692</link>
      <description>&lt;P&gt;Also, I couldn't find any other issues with the same problem with setting __doc__ on read-only built-in types in the fastcore issue tracker. If you found any, would you mind linking to them?&lt;/P&gt;</description>
      <pubDate>Fri, 04 Sep 2026 16:11:39 GMT</pubDate>
      <guid>https://community.databricks.com/t5/machine-learning/fastai-import-in-databricks-broken/m-p/167562#M4692</guid>
      <dc:creator>barnabywalker</dc:creator>
      <dc:date>2026-09-04T16:11:39Z</dc:date>
    </item>
    <item>
      <title>Re: fastai import in databricks broken</title>
      <link>https://community.databricks.com/t5/machine-learning/fastai-import-in-databricks-broken/m-p/167604#M4696</link>
      <description>&lt;P&gt;This is what I was referring to:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;A href="https://github.com/AnswerDotAI/fastcore/issues/927" rel="noopener" target="_blank"&gt;https://github.com/AnswerDotAI/fastcore/issues/927&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;was your version pinned?&lt;/P&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;</description>
      <pubDate>Fri, 04 Sep 2026 19:08:42 GMT</pubDate>
      <guid>https://community.databricks.com/t5/machine-learning/fastai-import-in-databricks-broken/m-p/167604#M4696</guid>
      <dc:creator>GuyBourne</dc:creator>
      <dc:date>2026-09-04T19:08:42Z</dc:date>
    </item>
    <item>
      <title>Re: fastai import in databricks broken</title>
      <link>https://community.databricks.com/t5/machine-learning/fastai-import-in-databricks-broken/m-p/167616#M4697</link>
      <description>&lt;P&gt;Thanks for pointing to that issue, but I'm really not sure it's related to this error?&lt;/P&gt;&lt;P&gt;I pinned the fastai version to 2.8.5, which was the version that worked yesterday, and tried different runtimes. It didn't work for any of them, so not sure what the problem is here.&lt;/P&gt;</description>
      <pubDate>Fri, 04 Sep 2026 21:36:38 GMT</pubDate>
      <guid>https://community.databricks.com/t5/machine-learning/fastai-import-in-databricks-broken/m-p/167616#M4697</guid>
      <dc:creator>barnabywalker</dc:creator>
      <dc:date>2026-09-04T21:36:38Z</dc:date>
    </item>
  </channel>
</rss>

