nbdev_build_lib – TypeError: __init__() missing 2 required positional arguments: ‘cfg_path’ and ‘cfg_name’

Solution for nbdev_build_lib – TypeError: __init__() missing 2 required positional arguments: ‘cfg_path’ and ‘cfg_name’
is Given Below:

I want to generate a report from a Jupyter notebook using nbdev. I’m following the tutorial in https://nbdev.fast.ai/tutorial.html#Build-lib.

But at the step when I nbdev_build_lib on the terminal, I get TypeError: __init__() missing 2 required positional arguments: 'cfg_path' and 'cfg_name'

Using nbdev-1.1.19

I’m using Macbook Air with M1 chip. macOS Bigsur 11.4