AttributeError: type object 'Config' has no attribute 'find'

Hello,

I have started getting this error on github. Amy idea how to resolve it?

Check we are starting with clean git checkout

511++ git status --porcelain -uno
512+ [[ -n ‘’ ]]
513+ echo ‘Trying to strip out notebooks’
514+ nbdev_clean
515Trying to strip out notebooks
516Traceback (most recent call last):
517 File “/opt/hostedtoolcache/Python/3.10.18/x64/bin/nbdev_clean”, line 8, in
518 sys.exit(nbdev_clean())
519 File “/opt/hostedtoolcache/Python/3.10.18/x64/lib/python3.10/site-packages/fastcore/script.py”, line 119, in _f
520 return tfunc(**merge(args, args_from_prog(func, xtra)))
521 File “/opt/hostedtoolcache/Python/3.10.18/x64/lib/python3.10/site-packages/nbdev/clean.py”, line 143, in nbdev_clean
522 if fname is None: fname = get_config().nbs_path
523 File “/opt/hostedtoolcache/Python/3.10.18/x64/lib/python3.10/site-packages/nbdev/config.py”, line 200, in get_config
524 cfg_file = _nbdev_config_file(cfg_name, path)
525 File “/opt/hostedtoolcache/Python/3.10.18/x64/lib/python3.10/site-packages/nbdev/config.py”, line 186, in _nbdev_config_file
526 return getattr(Config.find(cfg_name), ‘config_file’, cfg_path/cfg_name)
527AttributeError: type object ‘Config’ has no attribute ‘find’

Hello,

The error happens because your nbdev version is outdated or incompatible. Fix it by upgrading nbdev with:

pip install --upgrade nbdev

Best Regard,
garima