hey folks - I've got a python module named database sitting in the same repo as my kedro project. I can't seem to get it recognized. tried using hooks, altering the PYTHONPATH but nothing. just ModuleNotFoundError. any idea how I can overcome?
◦ mypipeline/ ( file in here is where I am importing database
06/06/2023, 6:05 AM
hi @charles ! The PYTHONPATH trick should work, but it’s not very sustainable. however, in your tree database/ would be a package, not a module (that would be database.py)
this is more of a Python question, nothing here is specific to Kedro
06/06/2023, 1:27 PM
PYTHONPATH isn't working. I pip install the package now. Works locally. In our container I can import the package from the python interpreter but the kedro pipeline itself is giving ModuleNotFound. What could be going on here?
06/06/2023, 1:43 PM
trick works for me with the same structure you have