-
Notifications
You must be signed in to change notification settings - Fork 909
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
[KED-2897] kedro pipeline pull
doesn't work if requirements.txt
contains -r
or -c
entries
#913
Comments
It also doesn't clean up (i.e. you're left with the exploded pipeline as a side effect), even though the command failed. |
…o-develop Merge master into develop via merge-master-to-develop
kedro pipeline pull
doesn't work if requirements.txt
contains -r
or -c
entrieskedro pipeline pull
doesn't work if requirements.txt
contains -r
or -c
entries
Hi @deepyaman, I am confused by how you managed to get this error through the steps you describe and unable to reproduce it myself. It sounds to me like you are dealing with a src/project_name/pipelines/pipeline_name/requirements.txt file rather than src/requirements.txt file - is that right? I would indeed expect there to be a problem with |
Hi @AntonyMilneQB! This issue occurs with |
Ahhhh yes I see. You are completely right, thank you for the bug report. The issue only occurs when you're pulling a pipeline that was packaged with requirements, which is why I didn't see it before. Here's full steps to reproduce: yes spaceflights | kedro new -s spaceflights
cd spaceflights
echo -r blah.txt >> src/requirements.txt
# This will be fine
kedro pipeline package data_science
kedro pipeline pull src/dist/data_science-0.1-py3-none-any.whl
# This will not be fine
echo pandas > src/spaceflights/pipelines/data_science/requirements.txt
kedro pipeline package data_science
kedro pipeline pull src/dist/data_science-0.1-py3-none-any.whl |
This will be fixed in 0.17.6. Thank you @deepyaman! |
Description
kedro pipeline pull
doesn't work ifrequirements.txt
contains-r
or-c
entries.requirements.txt
gets copied without modification torequirements.in
if it doesn't already exist, including the-r
/-c
flags.Context
I have a constraints file, and I have to work around it if I want to be able to pull in packages.
Steps to Reproduce
-c constraints.txt
or-r more-requirements.txt
tosrc/requirements.txt
kedro pipeline pull
somethingExpected Result
It should process the linked constraints/requirements.
Actual Result
https://github.com/quantumblacklabs/kedro/blob/0.17.5/kedro/framework/cli/pipeline.py#L1107 results in an error:
Your Environment
Include as many relevant details about the environment in which you experienced the bug:
pip show kedro
orkedro -V
): kedro, version 0.17.5python -V
): Python 3.7.11The text was updated successfully, but these errors were encountered: