Library Import from notebook gives ModuleNotFound
Hi Team,
Im trying to run a Kedro pipeline from a Dataiku Recipe
I have uploaded my kedro pipeline into the libraries section of my project.
When im trying run main() , it says module not found error but the module exists. Could you please help ?
Operating system used: Windows 10
Answers
-
Alexandru Dataiker, Dataiku DSS Core Designer, Dataiku DSS ML Practitioner, Dataiku DSS Adv Designer, Registered Posts: 1,215 Dataiker
Hi,
From the screenshots shared, I don't see any ___init__.py files in your subfolders.
As noted :
https://doc.dataiku.com/dss/latest/python/reusing-code.html#sharing-python-code-within-a-project
Don’t forget that if you create subfolders in a Python source folder, each folder must have a
<span class="pre">__init__.py</span>
file in order to be a valid Python modulePlease try adding ___init___.py files in your subfolders and let us know if you are still seeing this issue.
Thanks