Thanks a lot, Sebastian! I’ll take a look and try to configure PyCharm for debugging.
However, I’d like to run a project using my own code, and I’m a little bit frustrated for not achieving it. This is what happens:
- I have Kedro 0.17.0 version.
- I do “kedro new” and create a project called “example”.
- Inside of “pipelines” folder, I add a new folder called “pipeline”, with an init.py, nodes.py and pipeline.py.
- I code a super basic pipeline, with only one node, without input and an output which is a static csv which is referenced in the catalog (so I can check if the node has run succesfully).
- When I do all that, if I write “kedro run” in the command line, the pipeline runs succesfully.
- However, I cannot reproduce it running the run.py inside my IDE (which is still Spyder, although I will change to PyCharm).
The code in run.py is the following:
“”“Application entry point.”""
from pathlib import Path
from kedro.framework.session import KedroSession
def run_package():
# Entry point for running a Kedro project packaged with kedro package
# using python -m <project_package>.run
command.
package_name = Path(file).resolve().parent.name
with KedroSession.create(package_name) as session:
session.run()
if name == “main”:
run_package()
The error is “ModuleNotFoundError: No module named ‘example’”. I have tried changing the path, with os.chdir and other things but I wasn’t lucky enough. I will appreciate a lot some help because I don’t want to run my pipelines only from the command line, if possible. Thanks!