kedro not importing installed module when pipeline is run #1220
meaningfromdata
started this conversation in
Idea
Replies: 1 comment 5 replies
-
Hello @meaningfromdata! If you do |
Beta Was this translation helpful? Give feedback.
5 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm trying to use some great expectations functions in my kedro pipeline by creating data validation nodes (I know there's a kedro hook but want to try this way first). I've pip installed great expectations into the conda environment with kedro and have been able to import great expectations in other non-kedro test code I've written in this environment without a problem. However, when I run the project pipeline from the project root folder with "kedro run" I am getting a "ModuleNotFoundError".
great_expectations is installed in the site-packages directory (Anaconda3\envs\project_env\lib\site-packages) for this environment and this directory appears when I print sys.path from the environment. Also, the import works fine when I run it from the nodes.py file in the kedro project. It seems that it's only when I run the pipeline that the import failure occurs. Any help getting this module imported without issue would be appreciated. I am using kedro 0.17.6 with Python 3.7.11
Beta Was this translation helpful? Give feedback.
All reactions