https://kedro.org/ logo
#questions
Title
# questions
j

Joshua Beirer

08/14/2023, 10:35 PM
Hi guys (new to Kedro), am I right to assume that the command
kedro pipeline create
from the docs is outdated?
d

Deepyaman Datta

08/14/2023, 10:36 PM
Sorry, what do you mean by outdated? It's not, to the best of my knowledge, but if you find something where the docs seem incorrect, please do elaborate.
j

Joshua Beirer

08/14/2023, 10:58 PM
Nevermind, the issue was that I was not calling it from the root directory of the project, the error that one gets is a bit counterintuitive
Error: No such command 'pipeline'.
d

Deepyaman Datta

08/14/2023, 11:00 PM
Ah; yeah, it's because there is a set of commands such as
pipeline
that are only available in the context of a project, while there are other commands (e.g.
new
) that can be run from anywhere. Wonder if we can catch some of these project commands being called from outside of a project context and provide better error messages. In any case, glad you figured it out!
j

Joshua Beirer

08/14/2023, 11:01 PM
That would be great, thanks!
d

datajoely

08/15/2023, 8:30 AM
I wrote something that would do this nicely a long time ago, never had a chance to contribute it back https://github.com/datajoely/kedro-rich/blob/bc0313f0bd909a52abbcd730a4995d211082dded/kedro_rich/utilities/kedro_override_utils.py#L164
❤️ 1
j

Juan Luis

08/15/2023, 9:54 AM
thanks for bringing this up @Joshua Beirer, here's the issue https://github.com/kedro-org/kedro/issues/1831
❤️ 1
6 Views