Open davidmosca opened 5 months ago
You need to install the project dependencies to run a project. (which could be pandas, pyspark etc depending what you have selected).
The steps should be
kedro new
cd <project_name>
pip install -r . or pip install -e .
kedro run
If this solve the issue please close the ticket.
I see that the docs are confusing, you need to have a pipeline in order to run kedro run
.
kedro new --name=testproject --tools=lint,docs,pyspark --example=n
mean you are not selecting any example, thus you have no pipeline/nodes and the error, can you change it to --example=y
instead?
I see. I don't have a pipeline, I was just following the installation instructions in sequence. The docs would benefit from clarifying that a pipeline is needed. Once I have built one, I will try again. In the meantime, you can close the ticket. Thanks.
Thanks for opening this issue @davidmosca and sorry you had a bumpy first experience.
I don't think this is only a docs issue: if there are no pipelines defined, kedro run
should clearly say so:
> kedro run
No pipelines defined, use `kedro pipeline create` to create one
> echo $status
1
Then I don't know. I just followed the installation instructions sequentially with tools 1,2,4,5,7. kedro info
returns the expected message.
If anything, there are 2 issues here:
You have selected no project tools
To skip the interactive flow you can run `kedro new` with
kedro new --name=<your-project-name> --tools=<your-project-tools> --example=<yes/no>
Consider adding some warning about an empty project.
Hey is this issue still open, since I want to work on it
Hi @doshi-kevin , go ahead!
Hey @astrojuanlu, could you tell me which changes are yet to be applied? Since I see no change in the documentation, I am getting a different error message upon running the command kedro run.
Description
After having installed Kedro as per the instructions (https://docs.kedro.org/en/stable/get_started/new_project.html#run-the-new-project), I get an error message when I execute
kedro run
.Context
This bug prevents me from completing the installation of Kedro.
Steps to Reproduce
activate the kedro environment:
conda activate myenv
execute kedro:kedro run
Expected Result
The execution should complete without errors.
Actual Result
The run fails and the the stack trace shows an error message.
Your Environment
pip show kedro
orkedro -V
): 0.19.3python -V
): 3.11.8