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

Sabahat Zubair

12/15/2023, 12:08 PM
Hi team, I am setting up kedro for the first time for a project, and I'm facing some issues in installations. Basically my environment and all the requirements (
requirements.txt, pyproject.toml, and kedro environment settings
) are all on "`0.18.3`" But when I try to run my desired notebook with commands, I face this issue Any ways I can fix this? I am unable to run my required pipeline
j

Juan Luis

12/15/2023, 12:11 PM
hi @Sabahat Zubair! if I understand correctly, you were onboarded to an existing project and you installed Kedro for the first time, right?
what you can try to do is to install the Kedro version from the error message instead of the latest one:
Copy code
pip install "kedro==0.18.3"
s

Sabahat Zubair

12/15/2023, 12:23 PM
I tried this already... but doesnt work
Another thing, when I try to run a kedro command from the terminal, it gives me this error -> Missing required keys ['kedro init version'] from 'pyproject.toml'
Yet when I add this to the toml file, and run the notebook, it gives me the error "unrecognised parameter"
would it be possible to huddle over this?
m

Merel

12/15/2023, 12:40 PM
@Sabahat Zubair Is the version of Kedro in the notebook the same as the one installed in your environment?
s

Sabahat Zubair

12/15/2023, 12:45 PM
yes
m

Merel

12/15/2023, 12:48 PM
And what’s the error message you get when you do
pip install "kedro==0.18.3"
?
s

Sabahat Zubair

12/15/2023, 12:50 PM
There's no error message -> its tells me requirements already satisfied, but when I do a kedro run, or try to check the kedro version, it gives me an error
Like i'm not sure where the version 0.19.1 is coming from, all my installs from my files and ones Ive done manually for notebook, kedro environment are for 0.18.3
Could we maybe have a call to troubleshoot?
s

Sajid Alam

12/15/2023, 12:53 PM
Maybe try doing this in a new python environment, to avoid any conflicts with existing packages or dependencies.
j

Juan Luis

12/15/2023, 12:53 PM
also @Sabahat Zubair have a look at the internal Slack :)
s

Sabahat Zubair

12/15/2023, 12:53 PM
@Sabahat Zubair I have tried this multiple times, creating new environments and re-installing the requirements
@Juan Luis that's where I started out and was referred here 🙂
j

Juan Luis

12/15/2023, 12:54 PM
I know, but we're having an internal call and I'm inviting you there 🙏🏼
m

Marc Gris

12/15/2023, 12:56 PM
just out of curiosity in your notebook could you
Copy code
import sys 
print(sys.prefix) 
Print(sys.path) 

!pip show kedro
It really looks like your notebook runs “on” the wrong kernel… 😉
s

Sabahat Zubair

12/15/2023, 12:57 PM
@Juan Luis hey, where? I cant see the call, my bad 👀
j

Juan Luis

12/15/2023, 12:57 PM
reaching out in private