Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

'kedro package' and 'kedro test' don't work #3137

Closed
abhishek-nigam opened this issue Oct 6, 2023 · 2 comments
Closed

'kedro package' and 'kedro test' don't work #3137

abhishek-nigam opened this issue Oct 6, 2023 · 2 comments
Labels
Community Issue/PR opened by the open-source community

Comments

@abhishek-nigam
Copy link

Description

  • Sub-Issue 1

I was following the Kedro spaceflights tutorial and in the section on Package a Kedro project, it mentions to run the command kedro package. When I tried that it failed with the following error message:

Usage: kedro [OPTIONS] COMMAND [ARGS]...
Try 'kedro -h' for help.

Error: No such command 'package'.
  • Sub-Issue 2

I was reading through Kedro concepts. It at the end, it mentions that we can run kedro test to run tests using pytest, but when I ran it in the above spaceflights projects, it gave a similar error as above saying that there is no such command as 'test'.

Context

I was working through the spaceflights tutorial.

Steps to Reproduce

Initialize a new Kedro project using spaceflights starter and run kedro package and kedro test.

Expected Result

  • Sub-issue 1
    To generate a .whl file packaging the pipeline

  • Sub-issue 2
    To run test cases using pytest

Actual Result

Please refer to description

Your Environment

  • Kedro version used (pip show kedro or kedro -V): v0.18.13
  • Python version used (python -V): 3.10.13
  • Operating system and version: PopOS (based on Ubuntu 22.04 LTS)
@astrojuanlu
Copy link
Member

Hello @abhishek-nigam ! The "no such command" indicates that probably you weren't running those commands from the root of the directory. Can you please confirm?

See #2541 for discussion.

@astrojuanlu astrojuanlu added the Community Issue/PR opened by the open-source community label Oct 6, 2023
@abhishek-nigam
Copy link
Author

You're right! I think I made the mistake of not running the command from project root. Sorry about that. When I try both commands now from the project root, they work. Closing this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Community Issue/PR opened by the open-source community
Projects
Archived in project
Development

No branches or pull requests

2 participants