3 weeks ago
Has anyone else had a problem today (2026-09-04) with imports from fastai?
The error message points to a problem with the underlying fastcore package:
AttributeError: 'Function' object attribute '__doc__' is read-onlyI'm getting the same error using fastai versions 2.8.5 and 2.8.8.
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.
2 weeks ago
I actually managed to fix it by rolling back my databricks runtime and adding a pinned install of `plum-dispatch` (apparently some people in my team had previously had this issue and found a fix, but it's something that periodically happens).
DBR 17.3 and `plum-dispatch==2.7.0` worked for me.
As a side note, @GuyBourne 's response above is very similar to what I got when I asked Copilot about the error. It would be really helpful if people indicated when they used AI to assist in their answer.
3 weeks ago
3 weeks ago
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.
I guess filing a support ticket is my best bet...
3 weeks ago
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?
3 weeks ago
This is what I was referring to:
https://github.com/AnswerDotAI/fastcore/issues/927
was your version pinned?
3 weeks ago
Thanks for pointing to that issue, but I'm really not sure it's related to this error?
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.
2 weeks ago
I’m seeing the same issue today—seems like the recent compute runtime update may be related. Hopefully someone from the fastai/Databricks side can confirm.
2 weeks ago
I actually managed to fix it by rolling back my databricks runtime and adding a pinned install of `plum-dispatch` (apparently some people in my team had previously had this issue and found a fix, but it's something that periodically happens).
DBR 17.3 and `plum-dispatch==2.7.0` worked for me.
As a side note, @GuyBourne 's response above is very similar to what I got when I asked Copilot about the error. It would be really helpful if people indicated when they used AI to assist in their answer.
2 weeks ago
Hi @barnabywalker, glad you found a fix whilst the versions are out of sync.
I've run into the fastcore / CPython issue a few times before, so I was surprised that pinning it on the older runtime didn't resolve it.
And yes, I did use an AI assistant to help shape the response. Fair feedback on making that explicit, I’ll include a note when I’ve used AI to assist in future answers.