Hi there - loving the look of kedro. I've been w...
# questions
e
Hi there - loving the look of kedro. I've been working through the spaceflights tutorial, but am stuck on an exception at...
Copy code
kedro run --nodes=preprocess_companies_node,preprocess_shuttles_node
I get this:
Copy code
DatasetError: An exception occurred when parsing config for dataset 'companies':
Class 'pandas.CSVDataset' not found, is this a typo?
Hint: If you are trying to use a dataset from `kedro-datasets`, make sure that the package is installed in your current environment. You can do so by running `pip install kedro-datasets` or `pip install 
kedro-datasets[<dataset-group>]` to install `kedro-datasets` along with related dependencies for the specific dataset group.
But I've installed kedro-datasets Am on Python 3.10 - I noticed requirements had these lines:
Copy code
kedro-datasets[pandas-csvdataset, pandas-exceldataset, pandas-parquetdataset]>=3.0; python_version >= "3.9"
kedro-datasets[pandas.CSVDataset, pandas.ExcelDataset, pandas.ParquetDataset]>=1.0; python_version < "3.9"
I don't know if the tutorial is out of date? Or is this something else?
h
Someone will reply to you shortly. In the meantime, this might help:
d
So this looks correct, I have sneaking suspicion the issue will be different python installations / venvs I typically debug this by typing
which kedro
and which
pip
to make sure I’m talking to the right bits
e
That's great info... you are right it was. Thank you. A note to the documentation folk at kedro - I did find it quite circular/confusing setting up a venv before the project was created. That probably led me into the wormhole of the python mismatches. kedro got installed globally, and then the project locally was reading kedro from the global install rather than from the venv... and the python versions mismatched. I imagine a few might end up in the same situation
👀 1
d
In the future we’ll update the docs so we use uv everywhere, this is starting to fix most of the problems people have in python here https://github.com/astral-sh/uv
🙌 1
j
A note to the documentation folk at kedro - I did find it quite circular/confusing setting up a venv before the project was created.
a long standing issue... dropped a comment here https://github.com/kedro-org/kedro/discussions/4274