question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Spaceflight tutorial adding kedro[pandas.CSVDataSet,pandas.ExcelDataSet]==0.17.4

See original GitHub issue

Description

When going through the tutorial, I followed the instructions on this page: https://kedro.readthedocs.io/en/stable/03_tutorial/02_tutorial_template.html. However, what ended up happening is that adding the above line to requiremenst.txt did not work as when I ran kedro build-reqs it looked in requirements.in and rebuilt requirements.txt to what it was before I made the update. Should requirements.in be updated here instead?

Context

Trying to get up to speed with kedro

Steps to Reproduce

  1. Replacve the line that has kedro==0.17.4 in requirements.txt in /src of whatever directory you choose for the spaceflight tutorial with kedro[pandas.CSVDataSet,pandas.ExcelDataSet]==0.17.4
  2. Run kedro build-reqs
  3. See that the update you made to requirements.txt is no longer present

Expected Result

Update made to requirements.txt should not be removed.

Actual Result

Update to requirements.txt is not removed

Your Environment

Include as many relevant details about the environment in which you experienced the bug:

kedro, version 0.17.4 Python 3.8.2

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

3reactions
andrewMcK1commented, Jun 29, 2021

Thanks @andrewMcK1 this is a bug in our docs - you should make the change to requirements.in instead.

Happy to do that 😃 Will submit a PR

2reactions
andrewMcK1commented, Jun 30, 2021

I actually think the documentation here is correct. Following the tutorial exactly, you will not have a requirements.in file to begin with - just a requirements.txt file. The line should be added to that initial requirements.txt; running kedro build-docs will then generate the requirements.in file (by copying and pasting the requirements.txt file to it). Only once requirements.in exists should that be where you change dependencies. This is explained fully here.

We know this is a very confusing flow for users and are hoping to improve it 🙂 But I think if you follow the tutorial precisely, it will all work as it should.

Ah yes you’re right - I must have run kedro build-reqs previously and hence the presence of requirements.in. Thanks for the clarification

Read more comments on GitHub >

github_iconTop Results From Across the Web

Spaceflight tutorial adding kedro[pandas.CSVDataSet ...
Description When going through the tutorial, I followed the instructions on this page: ... Spaceflight tutorial adding kedro[pandas.
Read more >
Kedro spaceflights tutorial — Kedro 0.18.4 documentation
Create a new project and install project dependencies. Configure credentials and any other sensitive/personal content, and logging. Set up the data. Add data...
Read more >
Basics of Space Flight - Solar System Exploration
Basics of Space Flight is a tutorial designed primarily as a quick training guide for mission operations people. But teachers, college and high-school ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found