Hi @Geoff, The error message ModuleNotFoundError: No module named 'test_lib' indicates that Python cannot find the module test_lib. This could be due to several reasons:
- File Location: The Python file test_lib.py needs to be in the same directory as your Jupyter notebook or in a directory that’s included in sys.path. You mentioned that test_lib.py is in a subfolder. If that’s the case, you need to include the subfolder in the path when importing the module. For example, if test_lib.py is in a subfolder named subfolder, you would import it like this:
from subfolder.test_lib import square
- Jupyter Kernel: The Jupyter Notebook might be using a different Python kernel, which could have a different sys.path. You can check the Python executable being used by the Jupyter kernel with the following code:
import sys print(sys.executable)
- Asset Bundles: If you’re using Databricks Asset Bundles, there might be some specific configurations needed. I recommend checking the Databricks Asset Bundles documentation for more details.
The part of the error message with None,Map(),Map(),List(),List(),Map() seems unrelated to the ModuleNotFoundError. It might be part of a different error message or log, possibly related to the Asset Bundles.
Remember to replace 'subfolder' with the actual name of your subfolder. If these suggestions don’t solve your issue, could you provide more details about your folder structure and how you’re running the notebook? That would help in giving more specific advice.