module not found error when loading from script #895
BenedictusAryo
started this conversation in
Idea
Replies: 1 comment 2 replies
-
Hi @BenedictusAryo, Looks like the documentation is a bit out of date here. The problem is that the project's from kedro.framework.session import KedroSession
from kedro.framework.startup import bootstrap_project
from pathlib import Path
def main():
# Do other things
# Run kedro pipeline
metadata = bootstrap_project(Path.cwd())
with KedroSession.create(metadata.package_name) as session:
session.run()
if __name__ == "__main__":
main() I'll update the docs accordingly. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi QB teams,
I just recently discovered kedro and I'm excited to test it to my project
I tried the pandas iris tutorial and having no issue when running from cli
But, when I create python script inside the project root folder and using the KedroSession as mentioned in: Lifecycle management with KedroSession
I got ModuleNotFoundError: No module named 'kedro_iris'
here's the asciinema record
do I overlooked something?
kedro version:
Thanks
Beta Was this translation helpful? Give feedback.
All reactions