This answer quotes ChatGPT
It looks like you imported a module called cfg into your code, but Python can't find it, so ModuleNotFoundError is raised.
This may be because the path to your code file is not in Python's search path, or because you did not install dependencies properly.
To solve this problem, you can try the following steps:
1. Make sure your cfg module is installed correctly. You can try to install the module using the pip command in the terminal, such as pip install cfg.
2. Make sure that the path to your code file has been added to Python's search path. You can add this path to Python's search path using the sys.path.append() method, such as sys.path.append('/path/to/your/code').
3. If you write your own cfg module, you need to make sure that the module's file name is cfg.py and that the folder in which the file resides has been added to Python's search path.